/** * Конструктор класса * */ public function __construct() { parent::__construct(); // Устанавливаем ссылку $this->moreLink = site_url('admin/manage_feeds'); // Устанавливаем сортировку по умолчанию $this->setSort('revenue', 'desc'); }
/** * Constructor */ public function __construct() { parent::__construct(); // load hooks $pluginsConfig = Zend_Registry::getInstance()->get('pluginsConfig'); if (isset($pluginsConfig->admin->dashboard_blocks->top_sites)) { foreach ($pluginsConfig->admin->dashboard_blocks->top_sites as $hookClass) { $hookObj = new $hookClass(); if ($hookObj instanceof Sppc_Admin_Dashboard_TopSitesInterface) { $this->_hooks[] = $hookObj; } } } // Устанавливаем ссылку $this->moreLink = site_url('admin/manage_sites_channels'); // Устанавливаем сортировку по умолчанию $this->setSort('revenue', 'desc'); }