public function loadLocations(ContentInfo $contentInfo, Location $rootLocation = null, array $prioritizedLanguages = 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);
    }
public function loadLocations(ContentInfo $contentInfo, Location $rootLocation = null, array $prioritizedLanguages = 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);
    }
public function loadLocations ( ContentInfo $ contentInfo , Location $ rootLocation = null , array $ prioritizedLanguages = 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 ) ; }
Loads the locations for the given content object.

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.

@throws \eZ\Publish\API\Repository\Exceptions\BadStateException if there is no published version yet

@param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo
@param \eZ\Publish\API\Repository\Values\Content\Location $rootLocation
@param string[]|null $prioritizedLanguages Used as prioritized language code on translated properties of returned object.

@return \eZ\Publish\API\Repository\Values\Content\Location[]
Loads the locations for the given content object .