Свойство | Тип | Описание | |
---|---|---|---|
$domainMapper | |||
$nameSchemaService | |||
$permissionsCriterionHandler | |||
$persistenceHandler | eZ\Publish\SPI\Persistence\Handler | ||
$repository | |||
$settings | array |
Метод | Описание | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Handler $handler, |
Setups service with reference to repository object that created it & corresponding handler. | |
copySubtree ( eZ\Publish\API\Repository\Values\Content\Location $subtree, eZ\Publish\API\Repository\Values\Content\Location $targetParentLocation ) : eZ\Publish\API\Repository\Values\Content\Location | Copies the subtree starting from $subtree as a new subtree of $targetLocation. | |
createLocation ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, eZ\Publish\API\Repository\Values\Content\LocationCreateStruct $locationCreateStruct ) : eZ\Publish\API\Repository\Values\Content\Location | Creates the new $location in the content repository for the given content. | |
deleteLocation ( eZ\Publish\API\Repository\Values\Content\Location $location ) | Deletes $location and all its descendants. | |
getLocationChildCount ( eZ\Publish\API\Repository\Values\Content\Location $location ) : integer | Returns the number of children which are readable by the current user of a location object. | |
hideLocation ( eZ\Publish\API\Repository\Values\Content\Location $location ) : eZ\Publish\API\Repository\Values\Content\Location | Hides the $location and marks invisible all descendants of $location. | |
loadLocation ( mixed $locationId ) : eZ\Publish\API\Repository\Values\Content\Location | Loads a location object from its $locationId. | |
loadLocationByRemoteId ( string $remoteId ) : eZ\Publish\API\Repository\Values\Content\Location | Loads a location object from its $remoteId. | |
loadLocationChildren ( eZ\Publish\API\Repository\Values\Content\Location $location, integer $offset, integer $limit = 25 ) : eZ\Publish\API\Repository\Values\Content\LocationList | Loads children which are readable by the current user of a location object sorted by sortField and sortOrder. | |
loadLocations ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, eZ\Publish\API\Repository\Values\Content\Location $rootLocation = null ) : eZ\Publish\API\Repository\Values\Content\Location[] | Loads the locations for the given content object. | |
moveSubtree ( eZ\Publish\API\Repository\Values\Content\Location $location, eZ\Publish\API\Repository\Values\Content\Location $newParentLocation ) | Moves the subtree to $newParentLocation. | |
newLocationCreateStruct ( mixed $parentLocationId ) : eZ\Publish\API\Repository\Values\Content\LocationCreateStruct | Instantiates a new location create class. | |
newLocationUpdateStruct ( ) : eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct | Instantiates a new location update class. | |
swapLocation ( eZ\Publish\API\Repository\Values\Content\Location $location1, eZ\Publish\API\Repository\Values\Content\Location $location2 ) | Swaps the contents held by $location1 and $location2. | |
unhideLocation ( eZ\Publish\API\Repository\Values\Content\Location $location ) : eZ\Publish\API\Repository\Values\Content\Location | Unhides the $location. | |
updateLocation ( eZ\Publish\API\Repository\Values\Content\Location $location, eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct $locationUpdateStruct ) : eZ\Publish\API\Repository\Values\Content\Location | Updates $location in the content repository. |
Метод | Описание | |
---|---|---|
searchChildrenLocations ( eZ\Publish\API\Repository\Values\Content\Location $location, integer $offset, integer $limit ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | Searches children locations of the provided parent location id. |
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Handler $handler, |
||
$repository | eZ\Publish\API\Repository\Repository | |
$handler | eZ\Publish\SPI\Persistence\Handler | |
$domainMapper | ||
$nameSchemaService | ||
$permissionsCriterionHandler | ||
$settings | array |
public copySubtree ( eZ\Publish\API\Repository\Values\Content\Location $subtree, eZ\Publish\API\Repository\Values\Content\Location $targetParentLocation ) : eZ\Publish\API\Repository\Values\Content\Location | ||
$subtree | eZ\Publish\API\Repository\Values\Content\Location | - the subtree denoted by the location to copy |
$targetParentLocation | eZ\Publish\API\Repository\Values\Content\Location | - the target parent location for the copy operation |
Результат | eZ\Publish\API\Repository\Values\Content\Location | The newly created location of the copied subtree |
public createLocation ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, eZ\Publish\API\Repository\Values\Content\LocationCreateStruct $locationCreateStruct ) : eZ\Publish\API\Repository\Values\Content\Location | ||
$contentInfo | eZ\Publish\API\Repository\Values\Content\ContentInfo | |
$locationCreateStruct | eZ\Publish\API\Repository\Values\Content\LocationCreateStruct | |
Результат | eZ\Publish\API\Repository\Values\Content\Location | the newly created Location |
public deleteLocation ( eZ\Publish\API\Repository\Values\Content\Location $location ) | ||
$location | eZ\Publish\API\Repository\Values\Content\Location |
public getLocationChildCount ( eZ\Publish\API\Repository\Values\Content\Location $location ) : integer | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
Результат | integer |
public hideLocation ( eZ\Publish\API\Repository\Values\Content\Location $location ) : eZ\Publish\API\Repository\Values\Content\Location | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
Результат | eZ\Publish\API\Repository\Values\Content\Location | $location, with updated hidden value |
public loadLocation ( mixed $locationId ) : eZ\Publish\API\Repository\Values\Content\Location | ||
$locationId | mixed | |
Результат | eZ\Publish\API\Repository\Values\Content\Location |
public loadLocationByRemoteId ( string $remoteId ) : eZ\Publish\API\Repository\Values\Content\Location | ||
$remoteId | string | |
Результат | eZ\Publish\API\Repository\Values\Content\Location |
public loadLocationChildren ( eZ\Publish\API\Repository\Values\Content\Location $location, integer $offset, integer $limit = 25 ) : eZ\Publish\API\Repository\Values\Content\LocationList | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
$offset | integer | the start offset for paging |
$limit | integer | the number of locations returned |
Результат | eZ\Publish\API\Repository\Values\Content\LocationList |
public loadLocations ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, eZ\Publish\API\Repository\Values\Content\Location $rootLocation = null ) : eZ\Publish\API\Repository\Values\Content\Location[] | ||
$contentInfo | eZ\Publish\API\Repository\Values\Content\ContentInfo | |
$rootLocation | eZ\Publish\API\Repository\Values\Content\Location | |
Результат | eZ\Publish\API\Repository\Values\Content\Location[] | An array of {@link Location} |
public moveSubtree ( eZ\Publish\API\Repository\Values\Content\Location $location, eZ\Publish\API\Repository\Values\Content\Location $newParentLocation ) | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
$newParentLocation | eZ\Publish\API\Repository\Values\Content\Location |
public newLocationCreateStruct ( mixed $parentLocationId ) : eZ\Publish\API\Repository\Values\Content\LocationCreateStruct | ||
$parentLocationId | mixed | the parent under which the new location should be created |
Результат | eZ\Publish\API\Repository\Values\Content\LocationCreateStruct |
public newLocationUpdateStruct ( ) : eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct | ||
Результат | eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct |
protected searchChildrenLocations ( eZ\Publish\API\Repository\Values\Content\Location $location, integer $offset, integer $limit ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
$offset | integer | |
$limit | integer | |
Результат | eZ\Publish\API\Repository\Values\Content\Search\SearchResult |
public swapLocation ( eZ\Publish\API\Repository\Values\Content\Location $location1, eZ\Publish\API\Repository\Values\Content\Location $location2 ) | ||
$location1 | eZ\Publish\API\Repository\Values\Content\Location | |
$location2 | eZ\Publish\API\Repository\Values\Content\Location |
public unhideLocation ( eZ\Publish\API\Repository\Values\Content\Location $location ) : eZ\Publish\API\Repository\Values\Content\Location | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
Результат | eZ\Publish\API\Repository\Values\Content\Location | $location, with updated hidden value |
public updateLocation ( eZ\Publish\API\Repository\Values\Content\Location $location, eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct $locationUpdateStruct ) : eZ\Publish\API\Repository\Values\Content\Location | ||
$location | eZ\Publish\API\Repository\Values\Content\Location | |
$locationUpdateStruct | eZ\Publish\API\Repository\Values\Content\LocationUpdateStruct | |
Результат | eZ\Publish\API\Repository\Values\Content\Location | the updated Location |
protected DomainMapper,eZ\Publish\Core\Repository\Helper $domainMapper | ||
Результат |
protected NameSchemaService,eZ\Publish\Core\Repository\Helper $nameSchemaService | ||
Результат |
protected PermissionsCriterionHandler,eZ\Publish\Core\Repository $permissionsCriterionHandler | ||
Результат |
protected Handler,eZ\Publish\SPI\Persistence $persistenceHandler | ||
Результат | eZ\Publish\SPI\Persistence\Handler |
protected Repository,eZ\Publish\Core\Repository $repository | ||
Результат |