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

Inheritance: extends Neos\Neos\Ui\Domain\Model\AbstractChange
Show file Open project: neos/neos-ui

Protected Properties

Property 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

Public Methods

Method 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

Protected Methods

Method 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 method

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

canMerge() public method

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
return boolean

createNode() protected method

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
return TYPO3\TYPO3CR\Domain\Model\NodeInterface

getData() public method

Get the data
public getData ( ) : array
return array

getInitialProperties() public method

Get the initial properties
public getInitialProperties ( ) : array
return array

getMode() abstract public method

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

getName() public method

Get the name
public getName ( ) : string | null
return string | null

getNodeType() public method

Get the node type
public getNodeType ( ) : TYPO3\TYPO3CR\Domain\Model\NodeType
return TYPO3\TYPO3CR\Domain\Model\NodeType

getParentDomAddress() public method

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

getSiblingDomAddress() public method

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

merge() public method

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

setData() public method

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

setInitialProperties() public method

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

setName() public method

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

setNodeType() public method

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

setNodeType() public method

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

setParentDomAddress() public method

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

setSiblingDomAddress() public method

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

Property Details

$data protected property

Incoming data from creationDialog
protected array $data
return array

$initialProperties protected property

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

$name protected property

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

$nodeService protected property

protected NodeServiceInterface,TYPO3\TYPO3CR\Domain\Service $nodeService
return TYPO3\TYPO3CR\Domain\Service\NodeServiceInterface

$nodeType protected property

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

$nodeTypeManager protected property

protected NodeTypeManager,TYPO3\TYPO3CR\Domain\Service $nodeTypeManager
return TYPO3\TYPO3CR\Domain\Service\NodeTypeManager

$parentDomAddress protected property

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

$siblingDomAddress protected property

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