Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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} |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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 |
protected createNodeType ( PHPCR\NodeType\NodeTypeDefinitionInterface $ntd, boolean $allowUpdate ) : |
||
$ntd | PHPCR\NodeType\NodeTypeDefinitionInterface | |
$allowUpdate | boolean | whether updating the definition is to be allowed or not |
return | the new node type |
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 | |
return | array | with the names of the subnode types pointing to the node type instances |
public getIterator ( ) : Iterator | ||
return | Iterator | over all node types |
public getSubtypes ( string $nodeTypeName ) : array | ||
$nodeTypeName | string | |
return | 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 | ||
return | Jackalope\FactoryInterface |
protected bool $fetchedAllFromBackend | ||
return | boolean |
protected array $mixinTypes | ||
return | array |
protected NamespaceRegistryInterface,PHPCR $namespaceRegistry | ||
return | PHPCR\NamespaceRegistryInterface |
protected array $nodeTree | ||
return | array |
protected ObjectManager,Jackalope $objectManager | ||
return |
protected array $primaryTypes | ||
return | array |