PHP Класс Neos\ContentRepository\Domain\Model\AbstractNodeData

NOTE: This class is not supposed to be subclassed by userland code. If this API is modified, make sure to also implement the additional methods inside NodeData, NodeTemplate and Node and keep NodeInterface in sync!
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$accessRoles array List of role names which are required to access this node at all
$contentObjectProxy ContentObjectProxy An optional object which is used as a content container alternative to $properties
$creationDateTime DateTimeInterface
$hidden boolean If this node is hidden, it is not shown in a public place
$hiddenAfterDateTime DateTimeInterface If set, this node is automatically hidden after the specified date / time
$hiddenBeforeDateTime DateTimeInterface If set, this node is automatically hidden before the specified date / time
$hiddenInIndex boolean If this node should be hidden in indexes, such as a website navigation
$lastModificationDateTime DateTimeInterface
$lastPublicationDateTime DateTimeInterface
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$nodeType string The name of the node type of this node
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$properties array Properties of this Node

Открытые методы

Метод Описание
__construct ( ) Constructs this node data container
getAccessRoles ( ) : array Returns the names of defined access roles
getContentObject ( ) : object Returns the content object of this node (if any).
getCreationDateTime ( ) : DateTime
getHiddenAfterDateTime ( ) : DateTime Returns the date and time after which this node will be automatically hidden.
getHiddenBeforeDateTime ( ) : DateTime Returns the date and time before which this node will be automatically hidden.
getLastModificationDateTime ( ) : DateTime
getLastPublicationDateTime ( ) : DateTime
getNodeType ( ) : NodeType Returns the node type of this node.
getProperties ( ) : array Returns all properties of this node.
getProperty ( string $propertyName ) : mixed Returns the specified property.
getPropertyNames ( ) : array Returns the names of all properties of this node.
getWorkspace ( ) : Workspace Returns the workspace this node is contained in
hasProperty ( string $propertyName ) : boolean If this node has a property with the given name.
isHidden ( ) : boolean Returns the current state of the hidden flag
isHiddenInIndex ( ) : boolean If this node should be hidden in indexes
removeProperty ( string $propertyName ) : void Removes the specified property.
setAccessRoles ( array $accessRoles ) : void Sets the roles which are required to access this node
setContentObject ( object $contentObject ) : void Sets a content object for this node.
setHidden ( boolean $hidden ) : void Sets the "hidden" flag for this node.
setHiddenAfterDateTime ( DateTimeInterface $dateTime = null ) : void Sets the date and time when this node should be automatically hidden
setHiddenBeforeDateTime ( DateTimeInterface $dateTime = null ) : void Sets the date and time when this node becomes potentially visible.
setHiddenInIndex ( boolean $hidden ) : void Sets if this node should be hidden in indexes, such as a site navigation.
setLastPublicationDateTime ( DateTimeInterface $lastPublicationDateTime = null ) : void
setNodeType ( NodeType $nodeType ) : void Sets the node type of this node.
setProperty ( string $propertyName, mixed $value ) : void Sets the specified property.
unsetContentObject ( ) : void Unsets the content object of this node.

Защищенные методы

Метод Описание
addOrUpdate ( ) : void By default this method does not do anything.
persistRelatedEntities ( mixed $value ) Checks if a property value contains an entity and persists it.
updateContentObject ( object $contentObject ) : void By default this method does not do anything.

Описание методов

__construct() публичный Метод

Constructs this node data container
public __construct ( )

addOrUpdate() защищенный Метод

For persisted nodes (PersistedNodeInterface) this updates the node in the node repository, for new nodes this method will add the respective node to the repository.
protected addOrUpdate ( ) : void
Результат void

getAccessRoles() публичный Метод

Returns the names of defined access roles
public getAccessRoles ( ) : array
Результат array

getContentObject() публичный Метод

Returns the content object of this node (if any).
public getContentObject ( ) : object
Результат object The content object or NULL if none was set

getCreationDateTime() публичный Метод

public getCreationDateTime ( ) : DateTime
Результат DateTime

getHiddenAfterDateTime() публичный Метод

Returns the date and time after which this node will be automatically hidden.
public getHiddenAfterDateTime ( ) : DateTime
Результат DateTime Date after which this node will be hidden

getHiddenBeforeDateTime() публичный Метод

Returns the date and time before which this node will be automatically hidden.
public getHiddenBeforeDateTime ( ) : DateTime
Результат DateTime Date before this node will be hidden or NULL if no such time was set

getLastModificationDateTime() публичный Метод

public getLastModificationDateTime ( ) : DateTime
Результат DateTime

getLastPublicationDateTime() публичный Метод

public getLastPublicationDateTime ( ) : DateTime
Результат DateTime

getNodeType() публичный Метод

Returns the node type of this node.
public getNodeType ( ) : NodeType
Результат NodeType

getProperties() публичный Метод

If the node has a content object attached, the properties will be fetched there.
public getProperties ( ) : array
Результат array Property values, indexed by their name

getProperty() публичный Метод

If the node has a content object attached, the property will be fetched there if it is gettable.
public getProperty ( string $propertyName ) : mixed
$propertyName string Name of the property
Результат mixed value of the property

getPropertyNames() публичный Метод

Returns the names of all properties of this node.
public getPropertyNames ( ) : array
Результат array Property names

getWorkspace() абстрактный публичный Метод

Returns the workspace this node is contained in
abstract public getWorkspace ( ) : Workspace
Результат Workspace

hasProperty() публичный Метод

If the node has a content object attached, the property will be checked there.
public hasProperty ( string $propertyName ) : boolean
$propertyName string Name of the property to test for
Результат boolean

isHidden() публичный Метод

Returns the current state of the hidden flag
public isHidden ( ) : boolean
Результат boolean

isHiddenInIndex() публичный Метод

If this node should be hidden in indexes
public isHiddenInIndex ( ) : boolean
Результат boolean

persistRelatedEntities() защищенный Метод

Checks if a property value contains an entity and persists it.
protected persistRelatedEntities ( mixed $value )
$value mixed

removeProperty() публичный Метод

If the node has a content object attached, the property will not be removed on that object if it exists.
public removeProperty ( string $propertyName ) : void
$propertyName string Name of the property
Результат void

setAccessRoles() публичный Метод

Sets the roles which are required to access this node
public setAccessRoles ( array $accessRoles ) : void
$accessRoles array
Результат void

setContentObject() публичный Метод

Sets a content object for this node.
public setContentObject ( object $contentObject ) : void
$contentObject object The content object
Результат void

setHidden() публичный Метод

Sets the "hidden" flag for this node.
public setHidden ( boolean $hidden ) : void
$hidden boolean If TRUE, this Node will be hidden
Результат void

setHiddenAfterDateTime() публичный Метод

Sets the date and time when this node should be automatically hidden
public setHiddenAfterDateTime ( DateTimeInterface $dateTime = null ) : void
$dateTime DateTimeInterface Date after which this node should be hidden or NULL if no such time was set
Результат void

setHiddenBeforeDateTime() публичный Метод

Sets the date and time when this node becomes potentially visible.
public setHiddenBeforeDateTime ( DateTimeInterface $dateTime = null ) : void
$dateTime DateTimeInterface Date before this node should be hidden
Результат void

setHiddenInIndex() публичный Метод

Sets if this node should be hidden in indexes, such as a site navigation.
public setHiddenInIndex ( boolean $hidden ) : void
$hidden boolean TRUE if it should be hidden, otherwise FALSE
Результат void

setLastPublicationDateTime() публичный Метод

public setLastPublicationDateTime ( DateTimeInterface $lastPublicationDateTime = null ) : void
$lastPublicationDateTime DateTimeInterface
Результат void

setNodeType() публичный Метод

Sets the node type of this node.
public setNodeType ( NodeType $nodeType ) : void
$nodeType NodeType
Результат void

setProperty() публичный Метод

If the node has a content object attached, the property will be set there if it is settable.
public setProperty ( string $propertyName, mixed $value ) : void
$propertyName string Name of the property
$value mixed Value of the property
Результат void

unsetContentObject() публичный Метод

Unsets the content object of this node.
public unsetContentObject ( ) : void
Результат void

updateContentObject() защищенный Метод

For persisted nodes (PersistedNodeInterface) this updates the content object via the PersistenceManager
protected updateContentObject ( object $contentObject ) : void
$contentObject object
Результат void

Описание свойств

$accessRoles защищенное свойство

List of role names which are required to access this node at all
protected array $accessRoles
Результат array

$contentObjectProxy защищенное свойство

An optional object which is used as a content container alternative to $properties
protected ContentObjectProxy,Neos\ContentRepository\Domain\Model $contentObjectProxy
Результат ContentObjectProxy

$creationDateTime защищенное свойство

protected DateTimeInterface $creationDateTime
Результат DateTimeInterface

$hidden защищенное свойство

If this node is hidden, it is not shown in a public place
protected bool $hidden
Результат boolean

$hiddenAfterDateTime защищенное свойство

If set, this node is automatically hidden after the specified date / time
protected DateTimeInterface $hiddenAfterDateTime
Результат DateTimeInterface

$hiddenBeforeDateTime защищенное свойство

If set, this node is automatically hidden before the specified date / time
protected DateTimeInterface $hiddenBeforeDateTime
Результат DateTimeInterface

$hiddenInIndex защищенное свойство

If this node should be hidden in indexes, such as a website navigation
protected bool $hiddenInIndex
Результат boolean

$lastModificationDateTime защищенное свойство

protected DateTimeInterface $lastModificationDateTime
Результат DateTimeInterface

$lastPublicationDateTime защищенное свойство

protected DateTimeInterface $lastPublicationDateTime
Результат DateTimeInterface

$nodeDataRepository защищенное свойство

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
Результат Neos\ContentRepository\Domain\Repository\NodeDataRepository

$nodeType защищенное свойство

The name of the node type of this node
protected string $nodeType
Результат string

$nodeTypeManager защищенное свойство

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Результат Neos\ContentRepository\Domain\Service\NodeTypeManager

$persistenceManager защищенное свойство

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
Результат Neos\Flow\Persistence\PersistenceManagerInterface

$properties защищенное свойство

Properties of this Node
protected array $properties
Результат array