Method | Description | |
---|---|---|
assertValidName ( string $name ) : boolean | Whether this node name conforms to the specification | |
cloneFrom ( string $srcWorkspace, string $srcAbsPath, string $destAbsPath, boolean $removeExisting ) | Clones the subgraph at the node srcAbsPath in srcWorkspace to the new location at destAbsPath in this workspace. | |
copyNode ( string $srcAbsPath, string $destAbsPath, string $srcWorkspace = null ) | Copies a Node from src (potentially from another workspace) to dst in the current workspace. | |
deleteNodeImmediately ( string $path ) | Deletes a node and the whole subtree under it outside of a transaction | |
deleteNodes ( array $operations ) | Perform a batch remove operation. | |
deleteProperties ( array $operations ) | Perform a batch remove operation. | |
deletePropertyImmediately ( string $path ) | Deletes a property outside of a transaction | |
finishSave ( ) | Called after everything internally is done in the save() method so the transport has a chance to do final stuff (or commit everything at once). | |
moveNodeImmediately ( string $srcAbsPath, string $dstAbsPath ) | Moves a node from src to dst outside of a transaction | |
moveNodes ( array $operations ) | Perform a batch of move operations in the order of the passed array | |
prepareSave ( ) | Called before any data is written. | |
registerNamespace ( string $prefix, string $uri ) | Register a new namespace. | |
reorderChildren ( |
Reorder the children of $node as the node said it needs them reordered. | |
rollbackSave ( ) | Called if a save operation caused an exception. | |
storeNodes ( array $operations ) | Store all nodes in the AddNodeOperations | |
unregisterNamespace ( string $prefix ) | Unregister an existing namespace. | |
updateNode ( |
Update a node and its children to match its corresponding node in the specified workspace | |
updateProperties ( |
Update the properties of a node |
public assertValidName ( string $name ) : boolean | ||
$name | string | The name to check |
return | boolean | always true, if the name is not valid a RepositoryException is thrown |
public cloneFrom ( string $srcWorkspace, string $srcAbsPath, string $destAbsPath, boolean $removeExisting ) | ||
$srcWorkspace | string | The workspace where the source node can be found |
$srcAbsPath | string | Absolute source path to the node |
$destAbsPath | string | Absolute destination path including the new node name |
$removeExisting | boolean | whether to remove a node with the same identifier if there exists one |
public copyNode ( string $srcAbsPath, string $destAbsPath, string $srcWorkspace = null ) | ||
$srcAbsPath | string | Absolute source path to the node |
$destAbsPath | string | Absolute destination path including the new node name |
$srcWorkspace | string | The workspace where the source node can be found or null for current workspace |
public deleteNodeImmediately ( string $path ) | ||
$path | string | Absolute path to the node |
public deleteNodes ( array $operations ) | ||
$operations | array |
public deleteProperties ( array $operations ) | ||
$operations | array |
public deletePropertyImmediately ( string $path ) | ||
$path | string | Absolute path to the property |
public finishSave ( ) |
public moveNodeImmediately ( string $srcAbsPath, string $dstAbsPath ) | ||
$srcAbsPath | string | Absolute source path to the node |
$dstAbsPath | string | Absolute destination path (must NOT include the new node name) |
public registerNamespace ( string $prefix, string $uri ) | ||
$prefix | string | The prefix to be mapped. |
$uri | string | The URI to be mapped. |
public reorderChildren ( |
||
$node | the node to reorder its children |
public rollbackSave ( ) |
public storeNodes ( array $operations ) | ||
$operations | array | the operations containing the nodes to store |
public unregisterNamespace ( string $prefix ) | ||
$prefix | string | The prefix to unregister. |
public updateNode ( |
||
$node | the node to update | |
$srcWorkspace | string | The workspace where the corresponding source node can be found |
public updateProperties ( |
||
$node | the node to update |