class CreateNodePrivilegeSubject extends NodePrivilegeSubject (View source)

A create node privilege subject

Properties

protected NodeInterface $node from  NodePrivilegeSubject
protected JoinPointInterface $joinPoint from  NodePrivilegeSubject
protected NodeType $creationNodeType

Methods

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

No description

JoinPointInterface
getJoinPoint()

No description

bool
hasCreationNodeType()

No description

getCreationNodeType()

No description

Details

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

No description

Parameters

NodeInterface $node

The node we will check privileges for

NodeType $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 $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

NodeInterface getNode()

No description

Return Value

NodeInterface

JoinPointInterface getJoinPoint()

No description

Return Value

JoinPointInterface

bool hasCreationNodeType()

No description

Return Value

bool

NodeType getCreationNodeType()

No description

Return Value

NodeType