public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $limit = $app->getUserStateFromRequest('com_komento.mailq.limit', 'limit', $app->getCfg('list_limit'), 'int'); $limitstart = $app->getUserStateFromRequest('com_komento.mailq.limitstart', 'limitstart', 0, 'int'); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); }
public function __construct($config = array()) { parent::__construct($config); $mainframe = JFactory::getApplication(); $limit = $mainframe->getUserStateFromRequest('com_komento.acls.limit', 'limit', $mainframe->getCfg('list_limit', 20), 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); $this->systemComponents = array('com_config', 'com_finder', 'com_media', 'com_redirect', 'com_users', 'com_content', 'com_komento'); }
function __construct() { $mainframe = JFactory::getApplication(); $db = Komento::getDBO(); $this->limit = $mainframe->getUserStateFromRequest('com_komento.reports.limit', 'limit', $mainframe->getCfg('list_limit'), 'int'); $this->limitstart = $mainframe->getUserStateFromRequest('com_komento.reports.limitstart', 'limitstart', 0, 'int'); $this->filter_publish = $mainframe->getUserStateFromRequest('com_komento.reports.filter_publish', 'filter_publish', '*', 'string'); $this->filter_component = $mainframe->getUserStateFromRequest('com_komento.reports.filter_component', 'filter_component', '*', 'string'); $this->order = $mainframe->getUserStateFromRequest('com_komento.reports.filter_order', 'filter_order', 'created', 'cmd'); $this->order_dir = $mainframe->getUserStateFromRequest('com_komento.reports.filter_order_Dir', 'filter_order_Dir', 'DESC', 'word'); $this->search = $mainframe->getUserStateFromRequest('com_komento.reports.search', 'search', '', 'string'); Komento::import('helper', 'string'); $this->search = KomentoStringHelper::escape(trim(JString::strtolower($this->search))); parent::__construct(); }