PHP 클래스 Jackalope\NodeType\NodeProcessor
- Validates properties
- Auto-generates property values
- Generates extra node addition operations that follow from the node definition.
Adapted from the jackalope-doctrine-dbal implementation:
https://github.com/jackalope/jackalope-doctrine-dbal/blob/31cca1d1fb7fbe56423fa34478e15ce6d93313fd/src/Jackalope/Transport/DoctrineDBAL/Client.php
파일 보기
프로젝트 열기: jackalope/jackalope
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
__construct ( string $userId, array $namespaces = [], boolean $autoLastModified = true ) |
|
|
process ( PHPCR\NodeInterface $node ) : Jackalope\Transport\AddNodeOperation[] |
Process the given node and return eventual extra operations determined from the node. |
|
비공개 메소드들
메소드 |
설명 |
|
assertValidProperty ( PHPCR\PropertyInterface $property ) |
Validation if all the data is correct before writing it into the database. |
|
processNodeWithType ( PHPCR\NodeInterface $node, NodeType $nodeTypeDefinition ) : Jackalope\Transport\AddNodeOperation[] |
Validate this node with the nodetype and generate not yet existing
autogenerated properties as necessary. |
|
validateNamespace ( string $name ) |
Ensure that, if a namespace with an alias is passed,
that the alias is registered. |
|
메소드 상세
public __construct ( string $userId, array $namespaces = [], boolean $autoLastModified = true ) |
$userId |
string |
ID of the connected user |
$namespaces |
array |
List of namespaces in the current session. Keys are prefix, values are URI. |
$autoLastModified |
boolean |
Whether the last modified property should be updated automatically |
Process the given node and return eventual extra operations determined from the node.
public process ( PHPCR\NodeInterface $node ) : Jackalope\Transport\AddNodeOperation[] |
$node |
PHPCR\NodeInterface |
|
리턴 |
Jackalope\Transport\AddNodeOperation[] |
Additional operations that the client must execute for autocreated nodes. |