function savePublicStatisticsList() { $this->validate(); $schedConf =& Request::getSchedConf(); if (!$schedConf) { Request::redirect(null, 'index'); } foreach (StatisticsHandler::_getPublicStatisticsNames() as $name) { $schedConf->updateSetting($name, Request::getUserVar($name) ? true : false); } Request::redirect(null, null, 'manager', 'statistics', null, array('statisticsYear' => Request::getUserVar('statisticsYear'))); }
function _getPublicStatisticsNames() { import('pages.manager.ManagerHandler'); import('pages.manager.StatisticsHandler'); return StatisticsHandler::_getPublicStatisticsNames(); }