Свойство | Тип | Описание | |
---|---|---|---|
$contentHandler | Content handler. | ||
$locationGateway | Gateway for handling location data. | ||
$locationMapper | Location locationMapper. | ||
$objectStateHandler | Object state handler. | ||
$treeHandler | Tree handler. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | ||
Результат |
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 | |
Результат | 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 | |
Результат | eZ\Publish\SPI\Persistence\Content\Location |
protected getDefaultContentStates ( ) : eZ\Publish\SPI\Persistence\Content\ObjectState[] | ||
Результат | eZ\Publish\SPI\Persistence\Content\ObjectState[] |
protected getParentPathString ( string $pathString ) : string | ||
$pathString | string | |
Результат | string |
public loadByRemoteId ( string $remoteId ) : eZ\Publish\SPI\Persistence\Content\Location | ||
$remoteId | string | |
Результат | eZ\Publish\SPI\Persistence\Content\Location |
public loadLocationsByContent ( integer $contentId, integer $rootLocationId = null ) : eZ\Publish\SPI\Persistence\Content\Location[] | ||
$contentId | integer | |
$rootLocationId | integer | |
Результат | eZ\Publish\SPI\Persistence\Content\Location[] |
public loadParentLocationsForDraftContent ( $contentId ) |
public loadSubtreeIds ( integer $locationId ) : array | ||
$locationId | integer | |
Результат | array | Location ids are in the index, Content ids in the value. |
public removeSubtree ( mixed $locationId ) : boolean | ||
$locationId | mixed | |
Результат | 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 | ||
Результат |
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationGateway | ||
Результат |
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationMapper | ||
Результат |
protected Handler,eZ\Publish\Core\Persistence\Legacy\Content\ObjectState $objectStateHandler | ||
Результат |