Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableFieldQuery::__construct()publicWC 1.0

Constructor.

Метод класса: OrdersTableFieldQuery{}

No Hooks.

Return

null. Nothing.

Usage

$OrdersTableFieldQuery = new OrdersTableFieldQuery();
$OrdersTableFieldQuery->__construct( $q );
$q(OrdersTableQuery) (required)
The main query being performed.

Код OrdersTableFieldQuery::__construct() WC 7.1.0

public function __construct( OrdersTableQuery $q ) {
	$field_query = $q->get( 'field_query' );

	if ( ! $field_query || ! is_array( $field_query ) ) {
		return;
	}

	$this->query   = $q;
	$this->queries = $this->sanitize_query( $field_query );
	$this->where   = ( ! $this->force_no_results ) ? $this->process( $this->queries ) : '1=0';
}