public function getPlaceList(Location $location, $contentTypes, $languages = array())
    {
        $query = new Query();
        $query->filter = new Criterion\LogicalAnd(
            array(
                new Criterion\ContentTypeIdentifier($contentTypes),
                new Criterion\Subtree($location->pathString),
                new Criterion\LanguageCode($languages),
            )
        );
        $query->performCount = false;

        $searchResults = $this->searchService->findContentInfo($query);

        return $this->searchHelper->buildListFromSearchResult($searchResults);
    }
public function getPlaceList(Location $location, $contentTypes, $languages = array())
    {
        $query = new Query();
        $query->filter = new Criterion\LogicalAnd(
            array(
                new Criterion\ContentTypeIdentifier($contentTypes),
                new Criterion\Subtree($location->pathString),
                new Criterion\LanguageCode($languages),
            )
        );
        $query->performCount = false;

        $searchResults = $this->searchService->findContentInfo($query);

        return $this->searchHelper->buildListFromSearchResult($searchResults);
    }
public function getPlaceList ( Location $ location , $ contentTypes , $ languages = array ( ) ) { $ query = new Query ( ) ; $ query -> filter = new Criterion \ LogicalAnd ( array ( new Criterion \ ContentTypeIdentifier ( $ contentTypes ) , new Criterion \ Subtree ( $ location -> pathString ) , new Criterion \ LanguageCode ( $ languages ) , ) ) ; $ query -> performCount = false ; $ searchResults = $ this -> searchService -> findContentInfo ( $ query ) ; return $ this -> searchHelper -> buildListFromSearchResult ( $ searchResults ) ; }
Returns all places contained in a place_list.

@param \eZ\Publish\API\Repository\Values\Content\Location $location of a place_list
@param string|string[] $contentTypes to be retrieved
@param string|string[] $languages to be retrieved

@return \eZ\Publish\API\Repository\Values\Content\Content[]
Returns all places contained in a place_list .