Property | Type | Description | |
---|---|---|---|
$contentService | eZ\Publish\API\Repository\ContentService | Content service. | |
$locationService | eZ\Publish\API\Repository\LocationService | Location service. | |
$trashService | eZ\Publish\API\Repository\TrashService | Trash service. |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\TrashService $trashService ) | Construct controller. | |
copySubtree ( string $locationPath, |
Copies a subtree to a new destination. | |
createLocation ( mixed $contentId, |
Creates a new location for object with id $contentId. | |
deleteSubtree ( string $locationPath ) : eZ\Publish\Core\REST\Server\Values\NoContent | Deletes a location. | |
loadLocation ( string $locationPath ) : |
Loads a location. | |
loadLocationByRemoteId ( |
Loads a location by remote ID. | |
loadLocationChildren ( string $locationPath, |
Loads child locations of a location. | |
loadLocationsForContent ( mixed $contentId, |
Loads all locations for content object. | |
moveSubtree ( string $locationPath, |
Moves a subtree to a new location. | |
redirectLocation ( |
Loads the location for a given ID (x)or remote ID. | |
swapLocation ( string $locationPath, |
Swaps a location with another one. | |
updateLocation ( string $locationPath, |
Updates a location. |
Method | Description | |
---|---|---|
extractLocationIdFromPath ( string $path ) : mixed | Extracts and returns an item id from a path, e.g. /1/2/58 => 58. |
public __construct ( eZ\Publish\API\Repository\LocationService $locationService, eZ\Publish\API\Repository\ContentService $contentService, eZ\Publish\API\Repository\TrashService $trashService ) | ||
$locationService | eZ\Publish\API\Repository\LocationService | |
$contentService | eZ\Publish\API\Repository\ContentService | |
$trashService | eZ\Publish\API\Repository\TrashService |
public copySubtree ( string $locationPath, |
||
$locationPath | string | |
$request | ||
return |
public createLocation ( mixed $contentId, |
||
$contentId | mixed | |
$request | ||
return |
public deleteSubtree ( string $locationPath ) : eZ\Publish\Core\REST\Server\Values\NoContent | ||
$locationPath | string | |
return | eZ\Publish\Core\REST\Server\Values\NoContent |
public loadLocation ( string $locationPath ) : |
||
$locationPath | string | |
return |
public loadLocationByRemoteId ( |
||
$request | ||
return |
public loadLocationChildren ( string $locationPath, |
||
$locationPath | string | |
$request | ||
return |
public loadLocationsForContent ( mixed $contentId, |
||
$contentId | mixed | |
$request | ||
return |
public moveSubtree ( string $locationPath, |
||
$locationPath | string | |
$request | ||
return | | \eZ\Publish\Core\REST\Server\Values\NoContent |
public redirectLocation ( |
||
$request | ||
return |
public swapLocation ( string $locationPath, |
||
$locationPath | string | |
$request | ||
return | eZ\Publish\Core\REST\Server\Values\NoContent |
public updateLocation ( string $locationPath, |
||
$locationPath | string | |
$request | ||
return |
protected ContentService,eZ\Publish\API\Repository $contentService | ||
return | eZ\Publish\API\Repository\ContentService |
protected LocationService,eZ\Publish\API\Repository $locationService | ||
return | eZ\Publish\API\Repository\LocationService |