Property | Type | Description | |
---|---|---|---|
$contentHandler | Content handler. | ||
$locationGateway | Gateway for handling location data. | ||
$locationMapper | Location locationMapper. | ||
$objectStateHandler | Object state handler. | ||
$treeHandler | Tree handler. |
Method | Description | |
---|---|---|
__construct ( |
Construct from userGateway. | |
changeMainLocation ( mixed $contentId, mixed $locationId ) | Changes main location of content identified by given $contentId to location identified by given $locationId. | |
copySubtree ( mixed $sourceId, mixed $destinationParentId ) : eZ\Publish\SPI\Persistence\Content\Location | Copy location object identified by $sourceId, into destination identified by $destinationParentId. | |
create ( eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct ) : eZ\Publish\SPI\Persistence\Content\Location | Creates a new location rooted at $location->parentId. | |
hide ( mixed $id ) | Sets a location to be hidden, and it self + all children to invisible. | |
load ( integer $locationId ) : eZ\Publish\SPI\Persistence\Content\Location | Loads the data for the location identified by $locationId. | |
loadByRemoteId ( string $remoteId ) : eZ\Publish\SPI\Persistence\Content\Location | Loads the data for the location identified by $remoteId. | |
loadLocationsByContent ( integer $contentId, integer $rootLocationId = null ) : eZ\Publish\SPI\Persistence\Content\Location[] | Loads all locations for $contentId, optionally limited to a sub tree identified by $rootLocationId. | |
loadParentLocationsForDraftContent ( $contentId ) | ||
loadSubtreeIds ( integer $locationId ) : array | Loads the subtree ids of the location identified by $locationId. | |
markSubtreeModified ( integer | string $locationId, integer $timestamp = null ) | Marks the given nodes and all ancestors as modified. | |
move ( mixed $sourceId, mixed $destinationParentId ) : boolean | Moves location identified by $sourceId into new parent identified by $destinationParentId. | |
removeSubtree ( mixed $locationId ) : boolean | Removes all Locations under and including $locationId. | |
setSectionForSubtree ( mixed $locationId, mixed $sectionId ) | 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. | |
unHide ( mixed $id ) | Sets a location to be unhidden, and self + children to visible unless a parent is hiding the tree. | |
update ( eZ\Publish\SPI\Persistence\Content\Location\UpdateStruct $location, integer $locationId ) | Updates an existing location. |
Method | Description | |
---|---|---|
getDefaultContentStates ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState[] | Returns an array of default content states with content state group id as key. | |
getParentPathString ( string $pathString ) : string | Returns parent path string for a path string. | |
setContentStates ( eZ\Publish\SPI\Persistence\Content $content, array $contentStates ) |
public __construct ( |
||
$locationGateway | ||
$locationMapper | ||
$contentHandler | ||
$objectStateHandler | ||
$treeHandler | ||
return |
public changeMainLocation ( mixed $contentId, mixed $locationId ) | ||
$contentId | mixed | |
$locationId | mixed |
public copySubtree ( mixed $sourceId, mixed $destinationParentId ) : eZ\Publish\SPI\Persistence\Content\Location | ||
$sourceId | mixed | |
$destinationParentId | mixed | |
return | eZ\Publish\SPI\Persistence\Content\Location | the newly created Location. |
public create ( eZ\Publish\SPI\Persistence\Content\Location\CreateStruct $createStruct ) : eZ\Publish\SPI\Persistence\Content\Location | ||
$createStruct | eZ\Publish\SPI\Persistence\Content\Location\CreateStruct | |
return | eZ\Publish\SPI\Persistence\Content\Location |
protected getDefaultContentStates ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState[] | ||
return | eZ\Publish\SPI\Persistence\Content\ObjectState[] |
protected getParentPathString ( string $pathString ) : string | ||
$pathString | string | |
return | string |
public loadByRemoteId ( string $remoteId ) : eZ\Publish\SPI\Persistence\Content\Location | ||
$remoteId | string | |
return | eZ\Publish\SPI\Persistence\Content\Location |
public loadLocationsByContent ( integer $contentId, integer $rootLocationId = null ) : eZ\Publish\SPI\Persistence\Content\Location[] | ||
$contentId | integer | |
$rootLocationId | integer | |
return | eZ\Publish\SPI\Persistence\Content\Location[] |
public loadParentLocationsForDraftContent ( $contentId ) |
public loadSubtreeIds ( integer $locationId ) : array | ||
$locationId | integer | |
return | array | Location ids are in the index, Content ids in the value. |
public removeSubtree ( mixed $locationId ) : boolean | ||
$locationId | mixed | |
return | boolean |
protected setContentStates ( eZ\Publish\SPI\Persistence\Content $content, array $contentStates ) | ||
$content | eZ\Publish\SPI\Persistence\Content | |
$contentStates | array |
public setSectionForSubtree ( mixed $locationId, mixed $sectionId ) | ||
$locationId | mixed | |
$sectionId | mixed |
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content $contentHandler | ||
return |
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationGateway | ||
return |
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationMapper | ||
return |
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState $objectStateHandler | ||
return |