eZ\Publish\Core\Repository\SearchService::findContentInfo PHP Метод

findContentInfo() публичный Метод

Finds contentInfo objects for the given query.
См. также: SearchServiceInterface::findContentInfo()
С версии: 5.4.5
public findContentInfo ( eZ\Publish\API\Repository\Values\Content\Query $query, array $languageFilter = [], boolean $filterOnUserPermissions = true ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult
$query eZ\Publish\API\Repository\Values\Content\Query
$languageFilter array - a map of filters for the returned fields. Currently supports: array("languages" => array(,..), "useAlwaysAvailable" => bool) useAlwaysAvailable defaults to true to avoid exceptions on missing translations.
$filterOnUserPermissions boolean if true (default) only the objects which is the user allowed to read are returned.
Результат eZ\Publish\API\Repository\Values\Content\Search\SearchResult
    public function findContentInfo(Query $query, array $languageFilter = array(), $filterOnUserPermissions = true)
    {
        $result = $this->internalFindContentInfo($query, $languageFilter, $filterOnUserPermissions);
        foreach ($result->searchHits as $hit) {
            $hit->valueObject = $this->domainMapper->buildContentInfoDomainObject($hit->valueObject);
        }
        return $result;
    }