Neos\ContentRepository\Security\Authorization\Privilege\Node\NodePrivilegeSubject::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Neos\Flow\Aop\JoinPointInterface $joinPoint = null )
$node Neos\ContentRepository\Domain\Model\NodeInterface The node we will check privileges for
$joinPoint Neos\Flow\Aop\JoinPointInterface 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
    public function __construct(NodeInterface $node, JoinPointInterface $joinPoint = null)
    {
        $this->node = $node;
        $this->joinPoint = $joinPoint;
    }

Usage Example

 /**
  * @param NodeInterface $node The parent node under which a new child shall be created
  * @param 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
  * @param JoinPointInterface $joinPoint Set, if created by a method interception. Usually the interception of the createNode() method, where the creation of new child nodes takes place
  */
 public function __construct(NodeInterface $node, NodeType $creationNodeType = null, JoinPointInterface $joinPoint = null)
 {
     $this->creationNodeType = $creationNodeType;
     parent::__construct($node, $joinPoint);
 }
All Usage Examples Of Neos\ContentRepository\Security\Authorization\Privilege\Node\NodePrivilegeSubject::__construct