declaring a used abstract function in the Stats class
This commit is contained in:
parent
a52313bd83
commit
20ce5c5323
@ -33,6 +33,13 @@ abstract class Stats
|
|||||||
protected $lastfetchdate = array(); // Dates of cache file read by methods
|
protected $lastfetchdate = array(); // Dates of cache file read by methods
|
||||||
public $cachefilesuffix = ''; // Suffix to add to name of cache file (to avoid file name conflicts)
|
public $cachefilesuffix = ''; // Suffix to add to name of cache file (to avoid file name conflicts)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int $year number
|
||||||
|
* @param int $format 0=Label of abscissa is a translated text, 1=Label of abscissa is month number, 2=Label of abscissa is first letter of month
|
||||||
|
* @return int value
|
||||||
|
*/
|
||||||
|
protected abstract function getNbByMonth($year, $format = 0);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return nb of elements by month for several years
|
* Return nb of elements by month for several years
|
||||||
*
|
*
|
||||||
@ -86,7 +93,7 @@ abstract class Stats
|
|||||||
$year = $year - 1;
|
$year = $year - 1;
|
||||||
}
|
}
|
||||||
while ($year <= $endyear) {
|
while ($year <= $endyear) {
|
||||||
$datay[$year] = $this->_getNbByMonth($year, $format);
|
$datay[$year] = $this->getNbByMonth($year, $format);
|
||||||
$year++;
|
$year++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user