Jackalope\NodeType\NodeTypeManager::registerNodeTypesCnd PHP Метод

registerNodeTypesCnd() публичный Метод

{@inheritDoc}
public registerNodeTypesCnd ( $cnd, $allowUpdate )
    public function registerNodeTypesCnd($cnd, $allowUpdate)
    {
        //set fetched from backend to false to allow to load the new types from backend
        $fetched = $this->fetchedAllFromBackend;
        $this->fetchedAllFromBackend = false;
        $this->objectManager->registerNodeTypesCnd($cnd, $allowUpdate);
        //parse out type names and fetch types to return definitions of the new nodes
        preg_match_all('/\\[([^\\]]*)\\]/', $cnd, $names);
        $types = array();
        foreach ($names[1] as $name) {
            $types[$name] = $this->getNodeType($name);
        }
        $this->fetchedAllFromBackend = $fetched;
        return $types;
    }