Свойство | Тип | Описание | |
---|---|---|---|
$factory | Jackalope\FactoryInterface | The factory to instantiate objects. | |
$fetchedAllFromBackend | boolean | Methods like hasNodeType() need to fetch all node types. Others like getNodeType() do not need all, but just the requested one. Unless we need all, we only load specific ones and cache them. | |
$mixinTypes | array | Cache of already fetched mixin node type instances. | |
$namespaceRegistry | PHPCR\NamespaceRegistryInterface | ||
$nodeTree | array | Array of arrays with the super type as key and its sub types as values. | |
$objectManager | |||
$primaryTypes | array | Cache of already fetched primary node type instances. |
Метод | Описание | |
---|---|---|
__construct ( Jackalope\FactoryInterface $factory, |
Create the node type manager for a session. | |
createNodeDefinitionTemplate ( ) | {@inheritDoc} | |
createNodeTypeTemplate ( $ntd = null ) | {@inheritDoc} | |
createPropertyDefinitionTemplate ( ) | {@inheritDoc} | |
getAllNodeTypes ( ) | {@inheritDoc} | |
getDeclaredSubtypes ( string $nodeTypeName ) : array | Helper method for node types: Returns the declared subtypes of a given nodename. | |
getIterator ( ) : Iterator | Provide Traversable interface: redirect to getAllNodeTypes | |
getMixinNodeTypes ( ) | {@inheritDoc} | |
getNodeType ( $nodeTypeName ) | {@inheritDoc} | |
getPrimaryNodeTypes ( ) | {@inheritDoc} | |
getSubtypes ( string $nodeTypeName ) : array | Helper method for NodeType: Returns all sub types of a node and their sub types. | |
hasNodeType ( $name ) | {@inheritDoc} | |
registerNodeType ( PHPCR\NodeType\NodeTypeDefinitionInterface $ntd, $allowUpdate ) | {@inheritDoc} | |
registerNodeTypes ( array $definitions, $allowUpdate ) | {@inheritDoc} | |
registerNodeTypesCnd ( $cnd, $allowUpdate ) | {@inheritDoc} | |
unregisterNodeType ( $name ) | {@inheritDoc} | |
unregisterNodeTypes ( array $names ) | {@inheritDoc} |
Метод | Описание | |
---|---|---|
addNodeType ( PHPCR\NodeType\NodeTypeInterface $nodeType ) | Stores the node type in our internal structures (flat && tree) | |
createNodeType ( PHPCR\NodeType\NodeTypeDefinitionInterface $ntd, boolean $allowUpdate ) : |
Internally create a node type object | |
fetchNodeTypes ( string $name = null ) | Fetch a node type from backend. |
Метод | Описание | |
---|---|---|
addToNodeTree ( PHPCR\NodeType\NodeTypeInterface $nodetype ) | Adds the declared super types of a node type to the tree to be able to fetch the sub types of those super types later on. |
public __construct ( Jackalope\FactoryInterface $factory, |
||
$factory | Jackalope\FactoryInterface | |
$objectManager | ||
$namespaceRegistry | PHPCR\NamespaceRegistryInterface |
protected addNodeType ( PHPCR\NodeType\NodeTypeInterface $nodeType ) | ||
$nodeType | PHPCR\NodeType\NodeTypeInterface | The nodetype to add |
public createNodeDefinitionTemplate ( ) |
protected createNodeType ( PHPCR\NodeType\NodeTypeDefinitionInterface $ntd, boolean $allowUpdate ) : |
||
$ntd | PHPCR\NodeType\NodeTypeDefinitionInterface | |
$allowUpdate | boolean | whether updating the definition is to be allowed or not |
Результат | the new node type |
public createNodeTypeTemplate ( $ntd = null ) |
public createPropertyDefinitionTemplate ( ) |
protected fetchNodeTypes ( string $name = null ) | ||
$name | string | type name to fetch. defaults to null which will fetch all nodes. |
public getDeclaredSubtypes ( string $nodeTypeName ) : array | ||
$nodeTypeName | string | |
Результат | array | with the names of the subnode types pointing to the node type instances |
public getIterator ( ) : Iterator | ||
Результат | Iterator | over all node types |
public getSubtypes ( string $nodeTypeName ) : array | ||
$nodeTypeName | string | |
Результат | array | with the names of the subnode types pointing to the node type instances |
public registerNodeType ( PHPCR\NodeType\NodeTypeDefinitionInterface $ntd, $allowUpdate ) | ||
$ntd | PHPCR\NodeType\NodeTypeDefinitionInterface |
public registerNodeTypes ( array $definitions, $allowUpdate ) | ||
$definitions | array |
public registerNodeTypesCnd ( $cnd, $allowUpdate ) |
public unregisterNodeTypes ( array $names ) | ||
$names | array |
protected FactoryInterface,Jackalope $factory | ||
Результат | Jackalope\FactoryInterface |
protected bool $fetchedAllFromBackend | ||
Результат | boolean |
protected array $mixinTypes | ||
Результат | array |
protected NamespaceRegistryInterface,PHPCR $namespaceRegistry | ||
Результат | PHPCR\NamespaceRegistryInterface |
protected array $nodeTree | ||
Результат | array |
protected ObjectManager,Jackalope $objectManager | ||
Результат |
protected array $primaryTypes | ||
Результат | array |