PHP Class Jackalope\NodeType\NodeType

In Jackalope, the only information stored and thus available at instantiation is the list of declared supertype names, child node type names and property definition instances acquired from the NodeTypeDefinition. All other information in this class is deduced from this when requested.
Inheritance: extends NodeTypeDefinition, implements PHPCR\NodeType\NodeTypeInterface
Datei anzeigen Open project: jackalope/jackalope Class Usage Examples

Protected Properties

Property Type Description
$childNodeDefinitions array Cache of the aggregated child node definitions from this type and all its super type so they need to be gathered and instantiated only once.
$declaredSupertypes array Cache of the declared super NodeType instances so they need to be instantiated only once.
$propertyDefinitions array Cache of the collected property definitions so they need to be instantiated only once.
$superTypeNames array Cache of the aggregated super node type names so they need to be aggregated only once.
$superTypes PHPCR\NodeType\NodeTypeInterface[] Cache of the aggregated super NodeType instances so they need to be instantiated only once.

Public Methods

Method Description
canAddChildNode ( $childNodeName, $nodeTypeName = null, $throw = false ) {@inheritDoc}
canRemoveNode ( $nodeName, $throw = false ) {@inheritDoc}
canRemoveProperty ( $propertyName, $throw = false ) {@inheritDoc}
canSetProperty ( $propertyName, $value, $throw = false ) {@inheritDoc}
getChildNodeDefinitions ( ) {@inheritDoc}
getDeclaredSubtypes ( ) {@inheritDoc}
getDeclaredSupertypes ( ) {@inheritDoc}
getPropertyDefinitions ( ) {@inheritDoc}
getSubtypes ( ) {@inheritDoc}
getSupertypeNames ( ) {@inheritDoc}
getSupertypes ( ) {@inheritDoc}
isNodeType ( $nodeTypeName ) {@inheritDoc}

Method Details

canAddChildNode() public method

{@inheritDoc}
public canAddChildNode ( $childNodeName, $nodeTypeName = null, $throw = false )

canRemoveNode() public method

{@inheritDoc}
public canRemoveNode ( $nodeName, $throw = false )

canRemoveProperty() public method

{@inheritDoc}
public canRemoveProperty ( $propertyName, $throw = false )

canSetProperty() public method

{@inheritDoc}
public canSetProperty ( $propertyName, $value, $throw = false )

getChildNodeDefinitions() public method

{@inheritDoc}

getDeclaredSubtypes() public method

{@inheritDoc}
public getDeclaredSubtypes ( )

getDeclaredSupertypes() public method

{@inheritDoc}

getPropertyDefinitions() public method

{@inheritDoc}

getSubtypes() public method

{@inheritDoc}
public getSubtypes ( )

getSupertypeNames() public method

{@inheritDoc}
public getSupertypeNames ( )

getSupertypes() public method

{@inheritDoc}
public getSupertypes ( )

isNodeType() public method

{@inheritDoc}
public isNodeType ( $nodeTypeName )

Property Details

$childNodeDefinitions protected_oe property

Cache of the aggregated child node definitions from this type and all its super type so they need to be gathered and instantiated only once.
protected array $childNodeDefinitions
return array

$declaredSupertypes protected_oe property

Cache of the declared super NodeType instances so they need to be instantiated only once.
protected array $declaredSupertypes
return array

$propertyDefinitions protected_oe property

Cache of the collected property definitions so they need to be instantiated only once.
protected array $propertyDefinitions
return array

$superTypeNames protected_oe property

Cache of the aggregated super node type names so they need to be aggregated only once.
protected array $superTypeNames
return array

$superTypes protected_oe property

Cache of the aggregated super NodeType instances so they need to be instantiated only once.
protected NodeTypeInterface[],PHPCR\NodeType $superTypes
return PHPCR\NodeType\NodeTypeInterface[]