Свойство | Type | Description | |
---|---|---|---|
$end_date | Can be a timestamp, formatted date, date string (such as August 3, 2013), or a predefined date string, such as last_week or this_month Predefined date options are: today, yesterday, this_week, last_week, this_month, last_month this_quarter, last_quarter, this_year, last_year The end date is optional | ||
$start_date | Can be a timestamp, formatted date, date string (such as August 3, 2013), or a predefined date string, such as last_week or this_month Predefined date options are: today, yesterday, this_week, last_week, this_month, last_month this_quarter, last_quarter, this_year, last_year | ||
$timestamp | Flag to determine if current query is based on timestamps |
Méthode | Description | |
---|---|---|
__construct ( ) : void | Class Constructor | |
convert_date ( string $date, boolean $end_date = false ) : array | WP_Error | Convert Date | |
count_where ( string $where = '' ) : string | Count Where | |
get_predefined_dates ( ) : array | Get Predefined Dates | |
payments_where ( string $where = '' ) : string | Payment Where | |
setup_dates ( string $_start_date = 'this_month', boolean $_end_date = false ) : void | Setup the dates passed to our constructor. |
public __construct ( ) : void | ||
Résultat | void |
public count_where ( string $where = '' ) : string | ||
$where | string | SQL WHERE statment. |
Résultat | string |
public get_predefined_dates ( ) : array | ||
Résultat | array | Predefined dates. |
public payments_where ( string $where = '' ) : string | ||
$where | string | SQL WHERE statment. |
Résultat | string |
public $end_date |
public $start_date |