/** * Constructor * * @param object $site * @param string $s_date */ function ArchiveMonth($site, $s_date = '') { //print("site ".$site->getName()." date $s_date <br>"); parent::Archive($site); $this->setPeriodType(DB_ARCHIVES_PERIOD_MONTH); if (!empty($s_date)) { $this->setDate($s_date); } }
function ArchiveWeek($site, $s_date) { parent::Archive($site); $this->setPeriodType(DB_ARCHIVES_PERIOD_WEEK); $this->getPeriodDatesLimit($s_date); }
function ArchiveYear($site, $s_date) { parent::Archive($site); $this->setPeriodType(DB_ARCHIVES_PERIOD_YEAR); $this->getPeriodDatesLimit($s_date); }