프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
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 |
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 |
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 |