Свойство | Тип | Описание | |
---|---|---|---|
$service | eZ\Publish\API\Repository\LocationService | Aggregated service. | |
$signalDispatcher | SignalDispatcher. |
Метод | Описание | |
---|---|---|
__construct ( eZ\Publish\API\Repository\LocationService $service, |
Constructor. | |
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. |
public __construct ( eZ\Publish\API\Repository\LocationService $service, |
||
$service | eZ\Publish\API\Repository\LocationService | |
$signalDispatcher |
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 |
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 LocationService,eZ\Publish\API\Repository $service | ||
Результат | eZ\Publish\API\Repository\LocationService |