You are here

protected function statspro::get_min_max_period in Statistics Pro 6

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

Returns a string with a WHERE compliant representation of a min and max day selection.

Parameters

<int> $min:

<int> $max:

Return value

<string> SQL min and max WHERE.

3 calls to statspro::get_min_max_period()
statspro::get_month_from_reference in ./statspro.inc
Returns a SQL WHERE for the selected month.
statspro::get_period in ./statspro.inc
Generate SQL fragment for period query.
statspro::get_week_from_reference in ./statspro.inc
Returns a SQL WHERE for the selected week.

File

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

Class

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

Code

protected function get_min_max_period($min, $max) {
  return sprintf('(day >= %u AND day <= %u)', $min, $max);
}