You are here

protected function statspro::get_month_from_reference in Statistics Pro 6

Same name and namespace in other branches
  1. 6.2 statspro.inc \StatsPro::get_month_from_reference()

Returns a SQL WHERE for the selected month.

Parameters

<int> $reference Defines the selected month.:

Return value

<string> SQL min and max WHERE for month.

1 call to statspro::get_month_from_reference()
statspro::get_period in ./statspro.inc
Generate SQL fragment for period query.

File

./statspro.inc, line 237
statspro class for statistics pro module.

Class

statspro
Manages the data saving and retrieval according to the user defined parameters.

Code

protected function get_month_from_reference($reference) {
  $min = $this
    ->get_first_day_of_month_from_reference($reference);
  $max = $this
    ->get_last_day_of_month_from_reference($reference);
  return $this
    ->get_min_max_period($min, $max);
}