메소드 |
설명 |
|
changeMainLocation ( mixed $contentId, mixed $locationId, mixed $versionNo, mixed $parentLocationId ) |
Changes main location of content identified by given $contentId to location identified by given $locationId. |
|
cleanupTrash ( ) |
Removes every entries in the trash. |
|
countLocationsByContentId ( integer $contentId ) : integer |
Returns how many locations given content object identified by $contentId has. |
|
create ( eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct, array $parentNode ) : eZ\Publish\SPI\Persistence\Content\Location |
Creates a new location in given $parentNode. |
|
createLocationsFromNodeAssignments ( mixed $contentId, mixed $versionNo ) |
Create locations from node assignments. |
|
createNodeAssignment ( eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct, mixed $parentNodeId, integer $type = self::NODE_ASSIGNMENT_OP_CODE_CREATE_NOP ) |
Create an entry in the node assignment table. |
|
deleteNodeAssignment ( integer $contentId, integer $versionNo = null ) |
Deletes node assignment for given $contentId and $versionNo. |
|
getBasicNodeData ( mixed $nodeId ) : array |
Returns an array with basic node data. |
|
getBasicNodeDataByRemoteId ( mixed $remoteId ) : array |
Returns an array with basic node data for the node with $remoteId. |
|
getChildren ( mixed $locationId ) : array |
Returns data for the first level children of the location identified by given $locationId. |
|
getFallbackMainNodeData ( mixed $contentId, mixed $locationId ) : array |
Returns id of the next in line node to be set as a new main node. |
|
getSubtreeContent ( mixed $sourceId, boolean $onlyIds = false ) : array |
Find all content in the given subtree. |
|
hideSubtree ( string $pathString ) |
Sets a location to be hidden, and it self + all children to invisible. |
|
listTrashed ( integer $offset, integer $limit, array $sort = null ) : array |
Lists trashed items. |
|
loadLocationDataByContent ( integer $contentId, integer $rootLocationId = null ) : array |
Loads data for all Locations for $contentId, optionally only in the
subtree starting at $rootLocationId. |
|
loadParentLocationsDataForDraftContent ( mixed $contentId ) : array |
Loads data for all parent Locations for unpublished Content by given $contentId. |
|
loadTrashByLocation ( mixed $locationId ) : array |
Loads trash data specified by location ID. |
|
moveSubtreeNodes ( array $fromPathString, array $toPathString ) |
Update path strings to move nodes in the ezcontentobject_tree table. |
|
removeElementFromTrash ( integer $id ) |
Removes trashed element identified by $id from trash. |
|
removeLocation ( mixed $locationId ) |
Deletes ezcontentobject_tree row for given $locationId (node_id). |
|
setSectionForSubtree ( mixed $pathString, mixed $sectionId ) : boolean |
Set section on all content objects in the subtree. |
|
swap ( mixed $locationId1, mixed $locationId2 ) : boolean |
Swaps the content object being pointed to by a location object. |
|
trashLocation ( mixed $locationId ) : boolean |
Sends a single location identified by given $locationId to the trash. |
|
unHideSubtree ( string $pathString ) |
Sets a location to be unhidden, and self + children to visible unless a parent is hiding the tree. |
|
untrashLocation ( mixed $locationId, mixed $newParentId = null ) : eZ\Publish\SPI\Persistence\Content\Location |
Returns a trashed location to normal state. |
|
update ( eZ\Publish\SPI\Persistence\Content\Location\UpdateStruct $location, integer $locationId ) |
Updates an existing location. |
|
updateLocationsContentVersionNo ( mixed $contentId, mixed $versionNo ) |
Updates all Locations of content identified with $contentId with $versionNo. |
|
updateNodeAssignment ( integer $contentObjectId, integer $oldParent, integer $newParent, integer $opcode ) |
Update node assignment table. |
|
updatePathIdentificationString ( mixed $locationId, mixed $parentLocationId, string $text ) |
Updates path identification string for given $locationId. |
|
updateSubtreeModificationTime ( string $pathString, integer | null $timestamp = null ) |
Updated subtree modification time for all nodes on path. |
|