Свойство | Type | Description | |
---|---|---|---|
$factory | Jackalope\FactoryInterface | The factory to instantiate objects | |
$inTransaction | boolean | ||
$namespaces | null | ArrayObject | Using an ArrayObject here so that we can pass this into the NodeProcessor by reference more elegantly | |
$valueConverter | PHPCR\Util\ValueConverter | ||
$workspaceName | string |
Méthode | Description | |
---|---|---|
__construct ( Jackalope\FactoryInterface $factory, Doctrine\DBAL\Connection $conn ) | ||
beginTransaction ( ) | {@inheritDoc} | |
cloneFrom ( $srcWorkspace, $srcAbsPath, $destAbsPath, $removeExisting ) | {@inheritDoc} | |
commitTransaction ( ) | {@inheritDoc} | |
copyNode ( $srcAbsPath, $dstAbsPath, $srcWorkspace = null ) | {@inheritDoc} | |
createWorkspace ( $name, $srcWorkspace = null ) | {@inheritDoc} | |
deleteNodeImmediately ( $path ) | {@inheritDoc} | |
deleteNodes ( array $operations ) | {@inheritDoc} | |
deleteProperties ( array $operations ) | {@inheritDoc} | |
deletePropertyImmediately ( $path ) | {@inheritDoc} | |
deleteWorkspace ( $name ) | {@inheritDoc} | |
finishSave ( ) | {@inheritDoc} | |
getAccessibleWorkspaceNames ( ) | {@inheritDoc} | |
getBinaryStream ( $path ) | {@inheritDoc} | |
getConnection ( ) : Doctrine\DBAL\Connection | ||
getNamespaces ( ) | {@inheritDoc} | |
getNode ( $path ) | {@inheritDoc} | |
getNodeByIdentifier ( $uuid ) | {@inheritDoc} | |
getNodePathForIdentifier ( $uuid, $workspace = null ) | {@inheritDoc} | |
getNodeTypes ( $nodeTypes = [] ) | {@inheritDoc} | |
getNodes ( $paths ) | {@inheritDoc} | |
getNodesByIdentifier ( $identifiers ) | {@inheritDoc} | |
getProperty ( $path ) | {@inheritDoc} | |
getReferences ( $path, $name = null ) | {@inheritDoc} | |
getRepositoryDescriptors ( ) | {@inheritDoc} | |
getSupportedQueryLanguages ( ) | {@inheritDoc} | |
getWeakReferences ( $path, $name = null ) | {@inheritDoc} | |
login ( PHPCR\CredentialsInterface $credentials = null, $workspaceName = null ) | {@inheritDoc} | |
logout ( ) | {@inheritDoc} | |
moveNodeImmediately ( $srcAbsPath, $dstAbspath ) | {@inheritDoc} | |
moveNodes ( array $operations ) | {@inheritDoc} | |
prepareSave ( ) | {@inheritDoc} | |
query ( |
{@inheritDoc} | |
registerNamespace ( $prefix, $uri ) | {@inheritDoc} | |
registerNodeTypes ( $types, $allowUpdate ) | {@inheritDoc} | |
reorderChildren ( |
{@inheritDoc} | |
rollbackSave ( ) | {@inheritDoc} | |
rollbackTransaction ( ) | {@inheritDoc} | |
setCheckLoginOnServer ( $bool ) | Configure whether to check if we are logged in before doing a request. | |
setNodeTypeManager ( $nodeTypeManager ) | {@inheritDoc} | |
setTransactionTimeout ( integer $seconds ) | Sets the default transaction timeout | |
setUuidGenerator ( Closure $generator ) | Set the UUID generator to use. If not set, the phpcr-utils UUIDHelper will be used. | |
storeNodes ( array $operations ) | {@inheritDoc} | |
unregisterNamespace ( $prefix ) | {@inheritDoc} | |
updateNode ( |
{@inheritDoc} | |
updateProperties ( |
Méthode | Description | |
---|---|---|
assertLoggedIn ( ) | Ensure that we are currently logged in, executing the login in case we did lazy login. | |
deleteNode ( string $path ) | TODO instead of calling the deletes separately, we should batch the delete query but careful with the caching! | |
deleteProperty ( $path ) | {@inheritDoc} | |
fetchUserNodeTypes ( ) : array | Fetch a user-defined node-type definition. | |
generateUuid ( ) : string | ||
getIdentifier ( string $path, |
Determine a UUID for the node at this path with these properties | |
getNamespacesObject ( ) : ArrayObject | Return the namespaces of the current session as a referenceable ArrayObject. | |
getUuidGenerator ( ) : callable | ||
mapPropertyFromElement ( DOMElement $propertyNode, stdClass $data ) | Map a property from the given property XML node to the given \stdClass node representation | |
moveNode ( $srcAbsPath, $dstAbsPath ) | Execute moving a single node | |
setNamespaces ( array | ArrayObject $namespaces ) | Set the namespaces property to an \ArrayObject instance | |
storeNode ( string $path, |
Make sure we have a uuid and a primaryType, then sync data into the database | |
workspaceExists ( $workspaceName ) | ||
xmlToColumns ( string $xml, array $propertyNames ) : stdClass | Convert the node XML to stdClass node representation containing only the given properties | |
xmlToProps ( string $xml ) : stdClass | Convert the node XML to stdClass node representation containing all properties |
Méthode | Description | |
---|---|---|
cleanIdentifierCache ( string $root ) | Clean all identifiers under path $root. | |
ensureNamespacesBackup ( ) | We need to create an in memory backup when we are inside a transaction so that we can efficiently restore the original state in the namespaces property in case of a rollback. | |
executeChunkedUpdate ( $query, array $params ) | Executes an UPDATE on DBAL while ensuring that we never try to send more than 999 parameters to SQLite | |
getJcrName ( string $path ) : array | ||
getNamespacePrefixes ( ) : array | Get the registered namespace prefixes | |
getNodeData ( array $row ) : stdClass | Convert a node result row to the stdClass representing all raw data. | |
getNodeProcessor ( ) : |
Return the node processor for processing nodes according to their node types. | |
getNodeReferences ( string $path, string $name = null, boolean $weakReference = false ) : array | ||
getNodesData ( array $rows ) : stdClass[] | Build the raw data for a list of database result rows, fetching the additional information in one single query. | |
getSystemIdForNode ( string $identifier, string $workspaceName = null ) : boolean | string | Get the database primary key for node. | |
initConnection ( ) | Initialize the dbal connection lazily | |
nestNode ( stdClass $ancestor, stdClass $node, array $nodeNames ) | Attach a node at a subpath under the ancestor node. | |
pathExists ( string $path, string $workspaceName = null ) : boolean | Determine if a path exists already. | |
propsToXML ( array $properties ) : array | Seperate properties array into an xml and binary data. | |
registerSqliteFunctions ( PDO $sqliteConnection ) : |
||
syncBinaryData ( $nodeId, $binaryData ) | ||
syncNode ( string $uuid, string $path, string $type, boolean $isNewNode, |
Actually write the node into the database | |
syncReferences ( array $referencesToUpdate ) |
public __construct ( Jackalope\FactoryInterface $factory, Doctrine\DBAL\Connection $conn ) | ||
$factory | Jackalope\FactoryInterface | |
$conn | Doctrine\DBAL\Connection |
protected assertLoggedIn ( ) |
public cloneFrom ( $srcWorkspace, $srcAbsPath, $destAbsPath, $removeExisting ) |
public copyNode ( $srcAbsPath, $dstAbsPath, $srcWorkspace = null ) |
public createWorkspace ( $name, $srcWorkspace = null ) |
protected deleteNode ( string $path ) | ||
$path | string | node path to delete |
public deleteNodes ( array $operations ) | ||
$operations | array |
public deleteProperties ( array $operations ) | ||
$operations | array |
protected fetchUserNodeTypes ( ) : array | ||
Résultat | array |
protected generateUuid ( ) : string | ||
Résultat | string | a universally unique id. |
public getConnection ( ) : Doctrine\DBAL\Connection | ||
Résultat | Doctrine\DBAL\Connection |
protected getIdentifier ( string $path, |
||
$path | string | |
$properties | ||
Résultat | string | a unique id |
protected getNamespacesObject ( ) : ArrayObject | ||
Résultat | ArrayObject |
public getNodePathForIdentifier ( $uuid, $workspace = null ) |
protected getUuidGenerator ( ) : callable | ||
Résultat | callable | a uuid generator function. |
public login ( PHPCR\CredentialsInterface $credentials = null, $workspaceName = null ) | ||
$credentials | PHPCR\CredentialsInterface |
protected mapPropertyFromElement ( DOMElement $propertyNode, stdClass $data ) | ||
$propertyNode | DOMElement | |
$data | stdClass |
protected moveNode ( $srcAbsPath, $dstAbsPath ) |
public moveNodeImmediately ( $srcAbsPath, $dstAbspath ) |
public reorderChildren ( |
||
$node |
public setCheckLoginOnServer ( $bool ) |
protected setNamespaces ( array | ArrayObject $namespaces ) | ||
$namespaces | array | ArrayObject |
public setTransactionTimeout ( integer $seconds ) | ||
$seconds | integer | The value of the timeout in seconds |
public setUuidGenerator ( Closure $generator ) | ||
$generator | Closure |
public updateNode ( |
||
$node |
public updateProperties ( |
||
$node | the node to update |
protected xmlToColumns ( string $xml, array $propertyNames ) : stdClass | ||
$xml | string | |
$propertyNames | array | |
Résultat | stdClass |
protected xmlToProps ( string $xml ) : stdClass | ||
$xml | string | |
Résultat | stdClass |
protected FactoryInterface,Jackalope $factory | ||
Résultat | Jackalope\FactoryInterface |
protected null|ArrayObject $namespaces | ||
Résultat | null | ArrayObject |
protected ValueConverter,PHPCR\Util $valueConverter | ||
Résultat | PHPCR\Util\ValueConverter |