PHP Class Neos\Neos\Ui\Domain\Model\Changes\AbstractCreate

Inheritance: extends Neos\Neos\Ui\Domain\Model\AbstractChange
Afficher le fichier Open project: neos/neos-ui

Protected Properties

Свойство Type Description
$data array Incoming data from creationDialog
$initialProperties array A set of properties, that will be saved with the new node
$name string | null An (optional) name that will be used for the new node path
$nodeService TYPO3\TYPO3CR\Domain\Service\NodeServiceInterface
$nodeType TYPO3\TYPO3CR\Domain\Model\NodeType The type of the node that will be created
$nodeTypeManager TYPO3\TYPO3CR\Domain\Service\NodeTypeManager
$parentDomAddress Neos\Neos\Ui\Domain\Model\RenderedNodeDomAddress The node dom address for the parent node of the created node
$siblingDomAddress Neos\Neos\Ui\Domain\Model\RenderedNodeDomAddress The node dom address for the referenced sibling node of the created node

Méthodes publiques

Méthode Description
canMerge ( Neos\Neos\Ui\Domain\Model\ChangeInterface $subsequentChange ) : boolean Checks whether this change can be merged with a subsequent change
getData ( ) : array Get the data
getInitialProperties ( ) : array Get the initial properties
getMode ( ) : string Get the insertion mode (before|after|into) that is represented by this change
getName ( ) : string | null Get the name
getNodeType ( ) : TYPO3\TYPO3CR\Domain\Model\NodeType Get the node type
getParentDomAddress ( ) : RenderedNodeDomAddress Get the parent node dom address
getSiblingDomAddress ( ) : RenderedNodeDomAddress Get the sibling node dom address
merge ( Neos\Neos\Ui\Domain\Model\ChangeInterface $subsequentChange ) : void Merges this change with a subsequent change
setData ( array $data ) Set the data
setInitialProperties ( array $initialProperties ) Set the initial properties
setName ( string $name ) Set the name
setNodeType ( string $nodeType ) Set the node type
setNodeType ( string | TYPO3\TYPO3CR\Domain\Model\NodeType $nodeType ) Set the node type
setParentDomAddress ( RenderedNodeDomAddress $parentDomAddress = null ) : void Set the parent node dom address
setSiblingDomAddress ( RenderedNodeDomAddress $siblingDomAddress = null ) : void Set the sibling node dom address

Méthodes protégées

Méthode Description
applyNodeCreationHandlers ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $node ) : void Apply nodeCreationHandlers
createNode ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $parent ) : TYPO3\TYPO3CR\Domain\Model\NodeInterface Creates a new node beneath $parent

Method Details

applyNodeCreationHandlers() protected méthode

Apply nodeCreationHandlers
protected applyNodeCreationHandlers ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $node ) : void
$node TYPO3\TYPO3CR\Domain\Model\NodeInterface
Résultat void

canMerge() public méthode

Checks whether this change can be merged with a subsequent change
public canMerge ( Neos\Neos\Ui\Domain\Model\ChangeInterface $subsequentChange ) : boolean
$subsequentChange Neos\Neos\Ui\Domain\Model\ChangeInterface
Résultat boolean

createNode() protected méthode

Creates a new node beneath $parent
protected createNode ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $parent ) : TYPO3\TYPO3CR\Domain\Model\NodeInterface
$parent TYPO3\TYPO3CR\Domain\Model\NodeInterface
Résultat TYPO3\TYPO3CR\Domain\Model\NodeInterface

getData() public méthode

Get the data
public getData ( ) : array
Résultat array

getInitialProperties() public méthode

Get the initial properties
public getInitialProperties ( ) : array
Résultat array

getMode() abstract public méthode

Get the insertion mode (before|after|into) that is represented by this change
abstract public getMode ( ) : string
Résultat string

getName() public méthode

Get the name
public getName ( ) : string | null
Résultat string | null

getNodeType() public méthode

Get the node type
public getNodeType ( ) : TYPO3\TYPO3CR\Domain\Model\NodeType
Résultat TYPO3\TYPO3CR\Domain\Model\NodeType

getParentDomAddress() public méthode

Get the parent node dom address
public getParentDomAddress ( ) : RenderedNodeDomAddress
Résultat Neos\Neos\Ui\Domain\Model\RenderedNodeDomAddress

getSiblingDomAddress() public méthode

Get the sibling node dom address
public getSiblingDomAddress ( ) : RenderedNodeDomAddress
Résultat Neos\Neos\Ui\Domain\Model\RenderedNodeDomAddress

merge() public méthode

Merges this change with a subsequent change
public merge ( Neos\Neos\Ui\Domain\Model\ChangeInterface $subsequentChange ) : void
$subsequentChange Neos\Neos\Ui\Domain\Model\ChangeInterface
Résultat void

setData() public méthode

Set the data
public setData ( array $data )
$data array

setInitialProperties() public méthode

Set the initial properties
public setInitialProperties ( array $initialProperties )
$initialProperties array

setName() public méthode

Set the name
public setName ( string $name )
$name string

setNodeType() public méthode

Set the node type
public setNodeType ( string $nodeType )
$nodeType string

setNodeType() public méthode

Set the node type
public setNodeType ( string | TYPO3\TYPO3CR\Domain\Model\NodeType $nodeType )
$nodeType string | TYPO3\TYPO3CR\Domain\Model\NodeType

setParentDomAddress() public méthode

Set the parent node dom address
public setParentDomAddress ( RenderedNodeDomAddress $parentDomAddress = null ) : void
$parentDomAddress Neos\Neos\Ui\Domain\Model\RenderedNodeDomAddress
Résultat void

setSiblingDomAddress() public méthode

Set the sibling node dom address
public setSiblingDomAddress ( RenderedNodeDomAddress $siblingDomAddress = null ) : void
$siblingDomAddress Neos\Neos\Ui\Domain\Model\RenderedNodeDomAddress
Résultat void

Property Details

$data protected_oe property

Incoming data from creationDialog
protected array $data
Résultat array

$initialProperties protected_oe property

A set of properties, that will be saved with the new node
protected array $initialProperties
Résultat array

$name protected_oe property

An (optional) name that will be used for the new node path
protected string|null $name
Résultat string | null

$nodeService protected_oe property

protected NodeServiceInterface,TYPO3\TYPO3CR\Domain\Service $nodeService
Résultat TYPO3\TYPO3CR\Domain\Service\NodeServiceInterface

$nodeType protected_oe property

The type of the node that will be created
protected NodeType,TYPO3\TYPO3CR\Domain\Model $nodeType
Résultat TYPO3\TYPO3CR\Domain\Model\NodeType

$nodeTypeManager protected_oe property

protected NodeTypeManager,TYPO3\TYPO3CR\Domain\Service $nodeTypeManager
Résultat TYPO3\TYPO3CR\Domain\Service\NodeTypeManager

$parentDomAddress protected_oe property

The node dom address for the parent node of the created node
protected RenderedNodeDomAddress,Neos\Neos\Ui\Domain\Model $parentDomAddress
Résultat Neos\Neos\Ui\Domain\Model\RenderedNodeDomAddress

$siblingDomAddress protected_oe property

The node dom address for the referenced sibling node of the created node
protected RenderedNodeDomAddress,Neos\Neos\Ui\Domain\Model $siblingDomAddress
Résultat Neos\Neos\Ui\Domain\Model\RenderedNodeDomAddress