Свойство | Тип | Описание | |
---|---|---|---|
$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 |
protected build_es_range_filter ( array $range_filters = [] ) : array | ||
$range_filters | array | |
Результат | array |
public get_es_filter ( ) : array | ||
Результат | array |
protected get_es_filter_for_clause ( $query ) : array | ||
$query | ||
Результат | array | ES filter |
protected get_es_filter_for_clauses ( ) : array | ||
Результат | array |
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 |
protected is_first_order_clause ( $query ) |
static public simple_es_date_filter ( $args ) : array | boolean | ||
$args | ||
Результат | array | boolean |
public validate_date_values ( $date_query = [] ) |
public array $time_keys | ||
Результат | array |