public function getDeclaredSubtypes($nodeTypeName) { // OPTIMIZE: any way to avoid loading all nodes at this point? $this->fetchNodeTypes(); if (empty($this->nodeTree[$nodeTypeName])) { return array(); } return $this->nodeTree[$nodeTypeName]; }