PHP Class Jackalope\NodeType\NodeTypeDefinition

Inheritance: implements PHPCR\NodeType\NodeTypeDefinitionInterface
Mostra file Open project: jackalope/jackalope Class Usage Examples

Protected Properties

Property Type Description
$declaredNodeDefinitions ArrayObject
$declaredPropertyDefinitions ArrayObject
$declaredSuperTypeNames array
$factory Jackalope\FactoryInterface The factory to instantiate objects
$hasOrderableChildNodes boolean
$isAbstract boolean
$isMixin boolean Whether this is a mixin node type (otherwise it's a primary node type).
$isQueryable boolean
$name string The name of this node type definition.
$nodeTypeManager NodeTypeManager
$primaryItemName string Name of the primary item of this node type.
$valueConverter PHPCR\Util\ValueConverter

Public Methods

Method Description
__construct ( Jackalope\FactoryInterface $factory, NodeTypeManager $nodeTypeManager, $nodetype = null ) Create a new node type definition.
getDeclaredChildNodeDefinitions ( ) {@inheritDoc}
getDeclaredPropertyDefinitions ( ) {@inheritDoc}
getDeclaredSupertypeNames ( ) {@inheritDoc}
getName ( ) {@inheritDoc}
getPrimaryItemName ( ) {@inheritDoc}
hasOrderableChildNodes ( ) {@inheritDoc}
isAbstract ( ) {@inheritDoc}
isMixin ( ) {@inheritDoc}
isQueryable ( ) {@inheritDoc}

Protected Methods

Method Description
fromArray ( array $data ) Reads the node type definition from an array
fromNodeTypeDefinition ( PHPCR\NodeType\NodeTypeDefinitionInterface $ntd ) Read the node type definition from another NodeTypeDefinition
fromXml ( DOMElement $node ) Reads the node type definition from an xml element

Method Details

__construct() public method

Optionally initializes the data from XML, an array or another NodeTypeDefinition.
public __construct ( Jackalope\FactoryInterface $factory, NodeTypeManager $nodeTypeManager, $nodetype = null )
$factory Jackalope\FactoryInterface the object factory
$nodeTypeManager NodeTypeManager
$nodetype Either by XML or by NodeTypeDefinition or null for an empty definition

fromArray() protected method

Reads the node type definition from an array
protected fromArray ( array $data )
$data array an array with key-value information

fromNodeTypeDefinition() protected method

Read the node type definition from another NodeTypeDefinition
protected fromNodeTypeDefinition ( PHPCR\NodeType\NodeTypeDefinitionInterface $ntd )
$ntd PHPCR\NodeType\NodeTypeDefinitionInterface The node type definition to copy information from

fromXml() protected method

Reads the node type definition from an xml element
protected fromXml ( DOMElement $node )
$node DOMElement The dom element to read information from

getDeclaredChildNodeDefinitions() public method

{@inheritDoc}

getDeclaredPropertyDefinitions() public method

{@inheritDoc}

getDeclaredSupertypeNames() public method

{@inheritDoc}

getName() public method

{@inheritDoc}
public getName ( )

getPrimaryItemName() public method

{@inheritDoc}
public getPrimaryItemName ( )

hasOrderableChildNodes() public method

{@inheritDoc}

isAbstract() public method

{@inheritDoc}
public isAbstract ( )

isMixin() public method

{@inheritDoc}
public isMixin ( )

isQueryable() public method

{@inheritDoc}
public isQueryable ( )

Property Details

$declaredNodeDefinitions protected_oe property

protected ArrayObject $declaredNodeDefinitions
return ArrayObject

$declaredPropertyDefinitions protected_oe property

protected ArrayObject $declaredPropertyDefinitions
return ArrayObject

$declaredSuperTypeNames protected_oe property

protected array $declaredSuperTypeNames
return array

$factory protected_oe property

The factory to instantiate objects
protected FactoryInterface,Jackalope $factory
return Jackalope\FactoryInterface

$hasOrderableChildNodes protected_oe property

protected bool $hasOrderableChildNodes
return boolean

$isAbstract protected_oe property

protected bool $isAbstract
return boolean

$isMixin protected_oe property

Whether this is a mixin node type (otherwise it's a primary node type).
protected bool $isMixin
return boolean

$isQueryable protected_oe property

protected bool $isQueryable
return boolean

$name protected_oe property

The name of this node type definition.
protected string $name
return string

$nodeTypeManager protected_oe property

protected NodeTypeManager,Jackalope\NodeType $nodeTypeManager
return NodeTypeManager

$primaryItemName protected_oe property

Name of the primary item of this node type.
protected string $primaryItemName
return string

$valueConverter protected_oe property

protected ValueConverter,PHPCR\Util $valueConverter
return PHPCR\Util\ValueConverter