PHP 클래스 eZ\Publish\Core\Repository\SearchService

상속: implements eZ\Publish\API\Repository\SearchService
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$domainMapper eZ\Publish\Core\Repository\Helper\DomainMapper
$permissionsCriterionHandler PermissionsCriterionHandler
$repository Repository
$searchHandler eZ\Publish\SPI\Search\Handler
$settings array

공개 메소드들

메소드 설명
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Search\Handler $searchHandler, DomainMapper $domainMapper, PermissionsCriterionHandler $permissionsCriterionHandler, array $settings = [] ) 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.

보호된 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

Setups service with reference to repository object that created it & corresponding handler.
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Search\Handler $searchHandler, DomainMapper $domainMapper, PermissionsCriterionHandler $permissionsCriterionHandler, array $settings = [] )
$repository eZ\Publish\API\Repository\Repository
$searchHandler eZ\Publish\SPI\Search\Handler
$domainMapper eZ\Publish\Core\Repository\Helper\DomainMapper
$permissionsCriterionHandler PermissionsCriterionHandler
$settings array

findContent() 공개 메소드

Finds content objects for the given query.
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" => bool) 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.
리턴 eZ\Publish\API\Repository\Values\Content\Search\SearchResult

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

findLocations() 공개 메소드

Finds Locations for the given query.
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" => bool) 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.
리턴 eZ\Publish\API\Repository\Values\Content\Search\SearchResult

findSingle() 공개 메소드

Performs a query for a single content object.
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" => bool) 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.
리턴 eZ\Publish\API\Repository\Values\Content\Content

internalFindContentInfo() 보호된 메소드

Internal for use by {@link findContent} and {@link findContentInfo}.
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" => bool) 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.
리턴 eZ\Publish\API\Repository\Values\Content\Search\SearchResult With "raw" SPI contentInfo objects in result

suggest() 공개 메소드

Suggests a list of values for the given prefix.
public suggest ( string $prefix, string[] $fieldPaths = [], integer $limit = 10, eZ\Publish\API\Repository\Values\Content\Query\Criterion $filter = null )
$prefix string
$fieldPaths string[]
$limit integer
$filter eZ\Publish\API\Repository\Values\Content\Query\Criterion

validateContentCriteria() 보호된 메소드

Checks that $criteria does not contain Location criterions.
protected validateContentCriteria ( array $criteria, string $argumentName )
$criteria array
$argumentName string

validateContentSortClauses() 보호된 메소드

Checks that $query does not contain Location sort clauses.
protected validateContentSortClauses ( eZ\Publish\API\Repository\Values\Content\Query $query )
$query eZ\Publish\API\Repository\Values\Content\Query

프로퍼티 상세

$domainMapper 보호되어 있는 프로퍼티

protected DomainMapper,eZ\Publish\Core\Repository\Helper $domainMapper
리턴 eZ\Publish\Core\Repository\Helper\DomainMapper

$permissionsCriterionHandler 보호되어 있는 프로퍼티

protected PermissionsCriterionHandler,eZ\Publish\Core\Repository $permissionsCriterionHandler
리턴 PermissionsCriterionHandler

$repository 보호되어 있는 프로퍼티

protected Repository,eZ\Publish\Core\Repository $repository
리턴 Repository

$searchHandler 보호되어 있는 프로퍼티

protected Handler,eZ\Publish\SPI\Search $searchHandler
리턴 eZ\Publish\SPI\Search\Handler

$settings 보호되어 있는 프로퍼티

protected array $settings
리턴 array