PHP Class Wallmander\ElasticsearchIndexer\Model\Query

Author: Mikael Mattsson ([email protected])
Inheritance: extends Client, use trait Wallmander\ElasticsearchIndexer\Model\Query\BuilderTrait
Show file Open project: wallmanderco/elasticsearch-indexer Class Usage Examples

Public Properties

Property Type Description
$disabled boolean
$found_posts integer
$posts array
$updatePostMetaCache boolean
$updatePostTermCache boolean
$wp_query WP_Quer\WP_Query | null

Public Methods

Method Description
__construct ( )
applyWpQuery ( WP_Query $wpQuery )
formatArgs ( WP_Query $wpQuery )
fromWpQuery ( WP_Query $wpQuery ) : Query
getPosts ( ) : array | boolean

Method Details

__construct() public method

public __construct ( )

applyWpQuery() public method

public applyWpQuery ( WP_Query $wpQuery )
$wpQuery WP_Query

formatArgs() public method

public formatArgs ( WP_Query $wpQuery )
$wpQuery WP_Query

fromWpQuery() public static method

public static fromWpQuery ( WP_Query $wpQuery ) : Query
$wpQuery WP_Query
return Query

getPosts() public method

public getPosts ( ) : array | boolean
return array | boolean

Property Details

$disabled public property

public bool $disabled
return boolean

$found_posts public property

public int $found_posts
return integer

$posts public property

public array $posts
return array

$updatePostMetaCache public property

public bool $updatePostMetaCache
return boolean

$updatePostTermCache public property

public bool $updatePostTermCache
return boolean

$wp_query public property

public WP_Query,WP_Quer|null $wp_query
return WP_Quer\WP_Query | null