Property | Type | Description | |
---|---|---|---|
$domainMapper | |||
$permissionsCriterionHandler | |||
$repository | |||
$searchHandler | eZ\Publish\SPI\Search\Handler | ||
$settings | array |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Search\Handler $searchHandler, |
Setups service with reference to repository object that created it & corresponding handler. | |
findContent ( eZ\Publish\API\Repository\Values\Content\Query $query, array $languageFilter = [], boolean $filterOnUserPermissions = true ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | Finds content objects for the given query. | |
findContentInfo ( eZ\Publish\API\Repository\Values\Content\Query $query, array $languageFilter = [], boolean $filterOnUserPermissions = true ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | Finds contentInfo objects for the given query. | |
findLocations ( eZ\Publish\API\Repository\Values\Content\LocationQuery $query, array $languageFilter = [], boolean $filterOnUserPermissions = true ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | Finds Locations for the given query. | |
findSingle ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $filter, array $languageFilter = [], boolean $filterOnUserPermissions = true ) : eZ\Publish\API\Repository\Values\Content\Content | Performs a query for a single content object. | |
suggest ( string $prefix, string[] $fieldPaths = [], integer $limit = 10, eZ\Publish\API\Repository\Values\Content\Query\Criterion $filter = null ) | Suggests a list of values for the given prefix. |
Method | Description | |
---|---|---|
internalFindContentInfo ( eZ\Publish\API\Repository\Values\Content\Query $query, array $languageFilter = [], boolean $filterOnUserPermissions = true ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | Finds SPI content info objects for the given query. | |
validateContentCriteria ( array $criteria, string $argumentName ) | Checks that $criteria does not contain Location criterions. | |
validateContentSortClauses ( eZ\Publish\API\Repository\Values\Content\Query $query ) | Checks that $query does not contain Location sort clauses. |
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Search\Handler $searchHandler, |
||
$repository | eZ\Publish\API\Repository\Repository | |
$searchHandler | eZ\Publish\SPI\Search\Handler | |
$domainMapper | ||
$permissionsCriterionHandler | ||
$settings | array |
public findContent ( 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 | Configuration for specifying prioritized languages query will be performed on.
Currently supports: array("languages" => array(
useAlwaysAvailable defaults to true to avoid exceptions on missing translations. |
$filterOnUserPermissions | boolean | if true only the objects which the user is allowed to read are returned. |
return | eZ\Publish\API\Repository\Values\Content\Search\SearchResult |
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 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. |
return | eZ\Publish\API\Repository\Values\Content\Search\SearchResult |
public findLocations ( eZ\Publish\API\Repository\Values\Content\LocationQuery $query, array $languageFilter = [], boolean $filterOnUserPermissions = true ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | ||
$query | eZ\Publish\API\Repository\Values\Content\LocationQuery | |
$languageFilter | array | Configuration for specifying prioritized languages query will be performed on.
Currently supports: array("languages" => array(
useAlwaysAvailable defaults to true to avoid exceptions on missing translations |
$filterOnUserPermissions | boolean | if true only the objects which is the user allowed to read are returned. |
return | eZ\Publish\API\Repository\Values\Content\Search\SearchResult |
public findSingle ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $filter, array $languageFilter = [], boolean $filterOnUserPermissions = true ) : eZ\Publish\API\Repository\Values\Content\Content | ||
$filter | eZ\Publish\API\Repository\Values\Content\Query\Criterion | |
$languageFilter | array | Configuration for specifying prioritized languages query will be performed on.
Currently supports: array("languages" => array(
useAlwaysAvailable defaults to true to avoid exceptions on missing translations. |
$filterOnUserPermissions | boolean | if true only the objects which is the user allowed to read are returned. |
return | eZ\Publish\API\Repository\Values\Content\Content |
protected internalFindContentInfo ( 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 defaults to true to avoid exceptions on missing translations. |
$filterOnUserPermissions | boolean | if true only the objects which is the user allowed to read are returned. |
return | eZ\Publish\API\Repository\Values\Content\Search\SearchResult | With "raw" SPI contentInfo objects in result |
protected validateContentCriteria ( array $criteria, string $argumentName ) | ||
$criteria | array | |
$argumentName | string |
protected validateContentSortClauses ( eZ\Publish\API\Repository\Values\Content\Query $query ) | ||
$query | eZ\Publish\API\Repository\Values\Content\Query |
protected DomainMapper,eZ\Publish\Core\Repository\Helper $domainMapper | ||
return |
protected PermissionsCriterionHandler,eZ\Publish\Core\Repository $permissionsCriterionHandler | ||
return |
protected Repository,eZ\Publish\Core\Repository $repository | ||
return |
protected Handler,eZ\Publish\SPI\Search $searchHandler | ||
return | eZ\Publish\SPI\Search\Handler |