프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$contentMapper | Content mapper. | ||
$gateway | Content locator gateway. | ||
$indexerGateway | Word indexer gateway. | ||
$languageHandler | eZ\Publish\SPI\Persistence\Content\Language\Handler | Language handler. | |
$locationGateway | Location locator gateway. | ||
$locationMapper | Location locationMapper. | ||
$mapper | FullText mapper. |
메소드 | 설명 | |
---|---|---|
__construct ( |
Creates a new content handler. | |
bulkIndex ( array $contentList, callable $errorCallback ) | Bulk index list of content objects. | |
commit ( boolean $flush = false ) | Commits the data to the index, making it available for search. | |
deleteContent ( integer $contentId, integer | null $versionId = null ) | Deletes a content object from the index. | |
deleteLocation ( mixed $locationId, mixed $contentId ) | Deletes a location from the index. | |
findContent ( eZ\Publish\API\Repository\Values\Content\Query $query, array $languageFilter = [] ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | Finds content objects for the given query. | |
findLocations ( eZ\Publish\API\Repository\Values\Content\LocationQuery $query, array $languageFilter = [] ) | ||
findSingle ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $filter, array $languageFilter = [] ) : eZ\Publish\SPI\Persistence\Content\ContentInfo | Performs a query for a single content object. | |
indexContent ( eZ\Publish\SPI\Persistence\Content $content ) | Indexes a content object. | |
indexLocation ( eZ\Publish\SPI\Persistence\Content\Location $location ) | ||
purgeIndex ( ) | Purges all contents from the index. | |
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. |
메소드 | 설명 | |
---|---|---|
extractMatchedLanguage ( $languageMask, $mainLanguageId, $languageSettings ) |
public __construct ( |
||
$gateway | ||
$locationGateway | ||
$indexerGateway | ||
$contentMapper | ||
$locationMapper | ||
$languageHandler | eZ\Publish\SPI\Persistence\Content\Language\Handler | |
$mapper |
public deleteLocation ( mixed $locationId, mixed $contentId ) | ||
$locationId | mixed | |
$contentId | mixed |
protected extractMatchedLanguage ( $languageMask, $mainLanguageId, $languageSettings ) |
public findContent ( eZ\Publish\API\Repository\Values\Content\Query $query, array $languageFilter = [] ) : eZ\Publish\API\Repository\Values\Content\Search\SearchResult | ||
$query | eZ\Publish\API\Repository\Values\Content\Query | |
$languageFilter | array | - a map of language related filters specifying languages query will be performed on.
Also used to define which field languages are loaded for the returned content.
Currently supports: array("languages" => array(
useAlwaysAvailable defaults to true to avoid exceptions on missing translations |
리턴 | eZ\Publish\API\Repository\Values\Content\Search\SearchResult |
public findLocations ( eZ\Publish\API\Repository\Values\Content\LocationQuery $query, array $languageFilter = [] ) | ||
$query | eZ\Publish\API\Repository\Values\Content\LocationQuery | |
$languageFilter | array |
public findSingle ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $filter, array $languageFilter = [] ) : eZ\Publish\SPI\Persistence\Content\ContentInfo | ||
$filter | eZ\Publish\API\Repository\Values\Content\Query\Criterion | |
$languageFilter | array | - a map of language related filters specifying languages query will be performed on.
Also used to define which field languages are loaded for the returned content.
Currently supports: array("languages" => array(
useAlwaysAvailable defaults to true to avoid exceptions on missing translations |
리턴 | eZ\Publish\SPI\Persistence\Content\ContentInfo |
public indexContent ( eZ\Publish\SPI\Persistence\Content $content ) | ||
$content | eZ\Publish\SPI\Persistence\Content |
public indexLocation ( eZ\Publish\SPI\Persistence\Content\Location $location ) | ||
$location | eZ\Publish\SPI\Persistence\Content\Location |
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content $contentMapper | ||
리턴 |
protected Gateway,eZ\Publish\Core\Search\Legacy\Content $gateway | ||
리턴 |
protected Gateway,eZ\Publish\Core\Search\Legacy\Content\WordIndexer $indexerGateway | ||
리턴 |
protected Handler,eZ\Publish\SPI\Persistence\Content\Language $languageHandler | ||
리턴 | eZ\Publish\SPI\Persistence\Content\Language\Handler |
protected Gateway,eZ\Publish\Core\Search\Legacy\Content\Location $locationGateway | ||
리턴 |
protected Mapper,eZ\Publish\Core\Persistence\Legacy\Content\Location $locationMapper | ||
리턴 |