PHP 클래스 EP_WP_Date_Query

상속: extends WP_Date_Query
파일 보기 프로젝트 열기: 10up/elasticpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$time_keys array Introduced in WP 4.1 added here for backwards compatibility

공개 메소드들

메소드 설명
get_es_filter ( ) : array Like WP_Date_Query::get_sql takes WP_Date_Query class queries and returns ES filter arrays
simple_es_date_filter ( $args ) : array | boolean Takes WP_Query args, and returns ES filters for query Support for older style WP_Query date params
validate_date_values ( $date_query = [] ) Introduced in WP 4.1 added here for backwards compatibility

보호된 메소드들

메소드 설명
build_es_date_term_filter ( array $date_term_filters = [], string $type = 'AND' ) : array Takes array of date term filters and groups them into a filter based on relationship type
build_es_range_filter ( array $range_filters = [] ) : array Takes array of range filters and groups them into a single filter
get_es_filter_for_clause ( $query ) : array Takes SQL query part, and translates it into an ES filter
get_es_filter_for_clauses ( ) : array Like WP_Date_Query::get_sql_for_clauses takes all queries in WP_Date_Query object and gets ES filters for each
get_es_filter_for_query ( $query, integer $depth ) : array
is_first_order_clause ( $query ) Introduced in WP 4.1 added here for backwards compatibility

메소드 상세

build_es_date_term_filter() 보호된 메소드

Takes array of date term filters and groups them into a filter based on relationship type
부터: 0.1.4
protected build_es_date_term_filter ( array $date_term_filters = [], string $type = 'AND' ) : array
$date_term_filters array
$type string type of relationship between date term filters (AND, OR)
리턴 array

build_es_range_filter() 보호된 메소드

Takes array of range filters and groups them into a single filter
부터: 0.1.4
protected build_es_range_filter ( array $range_filters = [] ) : array
$range_filters array
리턴 array

get_es_filter() 공개 메소드

Like WP_Date_Query::get_sql takes WP_Date_Query class queries and returns ES filter arrays
부터: 0.1.4
public get_es_filter ( ) : array
리턴 array

get_es_filter_for_clause() 보호된 메소드

Takes SQL query part, and translates it into an ES filter
protected get_es_filter_for_clause ( $query ) : array
$query
리턴 array ES filter

get_es_filter_for_clauses() 보호된 메소드

Like WP_Date_Query::get_sql_for_clauses takes all queries in WP_Date_Query object and gets ES filters for each
부터: 0.1.4
protected get_es_filter_for_clauses ( ) : array
리턴 array

get_es_filter_for_query() 보호된 메소드

부터: 0.1.4
protected get_es_filter_for_query ( $query, integer $depth ) : array
$query array of date query clauses
$depth integer unused but may be necessary if we do nested date queries
리턴 array

is_first_order_clause() 보호된 메소드

Introduced in WP 4.1 added here for backwards compatibility
protected is_first_order_clause ( $query )

simple_es_date_filter() 정적인 공개 메소드

Takes WP_Query args, and returns ES filters for query Support for older style WP_Query date params
static public simple_es_date_filter ( $args ) : array | boolean
$args
리턴 array | boolean

validate_date_values() 공개 메소드

Introduced in WP 4.1 added here for backwards compatibility
public validate_date_values ( $date_query = [] )

프로퍼티 상세

$time_keys 공개적으로 프로퍼티

Introduced in WP 4.1 added here for backwards compatibility
public array $time_keys
리턴 array