function execute() { $default_feed = new AMPContent_RSSFeed(AMP_Registry::getDbcon()); $default_feed->setDefaults(); $default_feed->mergeData(array("title" => "Latest Updates", "description" => "The most recently added pages on this website")); array_unshift($this->_source, $default_feed); return parent::execute(); }
function __construct($source, $criteria = array()) { if (is_object($source)) { $this->_base_object = $source; if (method_exists($source, 'getListItemLimit')) { $limit = $source->getListItemLimit(); if ($limit) { $this->_pager_limit = $limit; } } } return parent::__construct(false, $criteria); }
function _renderBlock($output) { $base_list = $this->_renderer->table($this->render_column_headers() . $output, array('class' => 'system', 'id' => $this->list_id)); if ($this->_suppress_form) { return parent::_renderBlock($base_list); } return parent::_renderBlock($this->_renderer->form($this->render_toolbar() . $base_list . $this->render_toolbar(), array('name' => $this->list_id, 'action' => AMP_url_update($_SERVER['REQUEST_URI']), 'method' => 'POST'))); }
function __construct(&$source, $criteria = array()) { $this->set_source_gallery($source); parent::__construct(false, array('gallery' => $source->id)); }
function _sort_requested() { $http_request = parent::_sort_requested(); if ($http_request || !isset($this->_source_container)) { return $http_request; } if (!method_exists($this->_source_container, 'getListSort')) { return false; } return $this->_source_container->getListSort(); }