PHP Class Jackalope\NodeType\ItemDefinition

Inheritance: implements PHPCR\NodeType\ItemDefinitionInterface
Afficher le fichier Open project: jackalope/jackalope Class Usage Examples

Protected Properties

Свойство Type Description
$declaringNodeType string Name of the declaring node type.
$factory Jackalope\FactoryInterface The factory to instantiate objects
$isAutoCreated boolean Whether this item is autocreated.
$isMandatory boolean Whether this item is mandatory.
$isProtected boolean Whether this item is protected.
$name string Name of this node type.
$nodeTypeManager NodeTypeManager
$onParentVersion integer On parent version constant

Méthodes publiques

Méthode Description
__construct ( Jackalope\FactoryInterface $factory, array $definition, NodeTypeManager $nodeTypeManager ) Create a new item definition.
getDeclaringNodeType ( ) {@inheritDoc}
getName ( ) {@inheritDoc}
getOnParentVersion ( ) {@inheritDoc}
isAutoCreated ( ) {@inheritDoc}
isMandatory ( ) {@inheritDoc}
isProtected ( ) {@inheritDoc}

Méthodes protégées

Méthode Description
fromArray ( array $data ) Load item definition from an array.

Method Details

__construct() public méthode

TODO: document this format. Property and Node add more to this.
public __construct ( Jackalope\FactoryInterface $factory, array $definition, NodeTypeManager $nodeTypeManager )
$factory Jackalope\FactoryInterface the object factory
$definition array The property definition data as array
$nodeTypeManager NodeTypeManager

fromArray() protected méthode

Overwritten for property and node to add more information, with a call to this parent method for the common things.
protected fromArray ( array $data )
$data array An array with the fields required by ItemDefinition

getDeclaringNodeType() public méthode

{@inheritDoc}

getName() public méthode

{@inheritDoc}
public getName ( )

getOnParentVersion() public méthode

{@inheritDoc}
public getOnParentVersion ( )

isAutoCreated() public méthode

{@inheritDoc}
public isAutoCreated ( )

isMandatory() public méthode

{@inheritDoc}
public isMandatory ( )

isProtected() public méthode

{@inheritDoc}
public isProtected ( )

Property Details

$declaringNodeType protected_oe property

Name of the declaring node type.
protected string $declaringNodeType
Résultat string

$factory protected_oe property

The factory to instantiate objects
protected FactoryInterface,Jackalope $factory
Résultat Jackalope\FactoryInterface

$isAutoCreated protected_oe property

Whether this item is autocreated.
protected bool $isAutoCreated
Résultat boolean

$isMandatory protected_oe property

Whether this item is mandatory.
protected bool $isMandatory
Résultat boolean

$isProtected protected_oe property

Whether this item is protected.
protected bool $isProtected
Résultat boolean

$name protected_oe property

Name of this node type.
protected string $name
Résultat string

$nodeTypeManager protected_oe property

protected NodeTypeManager,Jackalope\NodeType $nodeTypeManager
Résultat NodeTypeManager

$onParentVersion protected_oe property

On parent version constant
protected int $onParentVersion
Résultat integer