PHP 클래스 Bolt\Storage\Query\SearchConfig

This takes into account contenttypes that aren't searchable along with taxonomy and field weightings.
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$config array | Bolt\Config
$joins array
$searchableTypes array

공개 메소드들

메소드 설명
__construct ( Config $config )
getConfig ( string $contentType ) : array | false Get the config of all fields for a given content type.
getFieldConfig ( string $contentType, string $field ) : array | false Get the config of one given field for a given content type.
getJoins ( string $contentType ) : array Helper method to return the join search columns for a ContentType weighting based on type.

보호된 메소드들

메소드 설명
getSearchableColumns ( string $type ) : void Determine what columns are searchable for a given ContentType.
isInvisible ( string $contentType ) : boolean Does some checks to see whether a ContentType should appear in search results.
parseContenttypes ( ) : void Iterates over the main config and delegates weighting to both searchable columns and searchable taxonomies.
parseTaxonomies ( string $contentType, array $taxonomies ) : void Iterates the taxonomies for a given ContentType, then assigns a weighting based on type.

메소드 상세

__construct() 공개 메소드

public __construct ( Config $config )
$config Bolt\Config

getConfig() 공개 메소드

Get the config of all fields for a given content type.
public getConfig ( string $contentType ) : array | false
$contentType string
리턴 array | false

getFieldConfig() 공개 메소드

Get the config of one given field for a given content type.
public getFieldConfig ( string $contentType, string $field ) : array | false
$contentType string
$field string
리턴 array | false

getJoins() 공개 메소드

Helper method to return the join search columns for a ContentType weighting based on type.
public getJoins ( string $contentType ) : array
$contentType string
리턴 array

getSearchableColumns() 보호된 메소드

Determine what columns are searchable for a given ContentType.
protected getSearchableColumns ( string $type ) : void
$type string
리턴 void

isInvisible() 보호된 메소드

This is based on ContentType options.
protected isInvisible ( string $contentType ) : boolean
$contentType string
리턴 boolean

parseContenttypes() 보호된 메소드

Iterates over the main config and delegates weighting to both searchable columns and searchable taxonomies.
protected parseContenttypes ( ) : void
리턴 void

parseTaxonomies() 보호된 메소드

Iterates the taxonomies for a given ContentType, then assigns a weighting based on type.
protected parseTaxonomies ( string $contentType, array $taxonomies ) : void
$contentType string
$taxonomies array
리턴 void

프로퍼티 상세

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

protected array|Config,Bolt $config
리턴 array | Bolt\Config

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

protected array $joins
리턴 array

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

protected array $searchableTypes
리턴 array