class CreateNodePrivilegeSubject extends NodePrivilegeSubject (View source)

A create node privilege subject

Properties

protected $node from  NodePrivilegeSubject
protected $joinPoint from  NodePrivilegeSubject
protected $creationNodeType

Methods

__construct(Node $node, NodeType|null $creationNodeType = null, JoinPointInterface|null $joinPoint = null)

No description

Node
getNode()

No description

JoinPointInterface|null
getJoinPoint()

No description

bool
hasCreationNodeType()

No description

NodeType|null
getCreationNodeType()

No description

Details

__construct(Node $node, NodeType|null $creationNodeType = null, JoinPointInterface|null $joinPoint = null)

No description

Parameters

Node $node

The node we will check privileges for

NodeType|null $creationNodeType

The node type of the new child node, to check if this is type is allowed as new child node under the given parent node

JoinPointInterface|null $joinPoint

If we intercept node operations, this joinpoint represents the method called on the node and holds a reference to the node we will check privileges for

Node getNode()

No description

Return Value

Node

JoinPointInterface|null getJoinPoint()

No description

Return Value

JoinPointInterface|null

bool hasCreationNodeType()

No description

Return Value

bool

NodeType|null getCreationNodeType()

No description

Return Value

NodeType|null