eZ\Publish\Core\REST\Client\LocationService::loadLocations PHP Méthode

loadLocations() public méthode

If a $rootLocation is given, only locations that belong to this location are returned. The location list is also filtered by permissions on reading locations.
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
Résultat eZ\Publish\API\Repository\Values\Content\Location[]
    public function loadLocations(ContentInfo $contentInfo, Location $rootLocation = null)
    {
        $values = $this->requestParser->parse('object', $contentInfo->id);
        $response = $this->client->request('GET', $this->requestParser->generate('objectLocations', array('object' => $values['object'])), new Message(array('Accept' => $this->outputVisitor->getMediaType('LocationList'))));
        return $this->inputDispatcher->parse($response);
    }