public function __construct() { parent::__construct(array()); $app = JFactory::getApplication(); $limit = $app->getUserStateFromRequest('com_easydiscuss.labels.limit', 'limit', DiscussHelper::getListLimit(), 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); }
function __construct() { parent::__construct(); $mainframe = JFactory::getApplication(); $limit = $mainframe->getUserStateFromRequest('com_easydiscuss.posts.limit', 'limit', DiscussHelper::getListLimit(), 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); }
public function __construct() { parent::__construct(); $mainframe = JFactory::getApplication(); $limit = $mainframe->getUserStateFromRequest('com_easydiscuss.customs.limit', 'limit', $mainframe->getCfg('list_limit'), 'int'); $limitstart = JRequest::getVar('limitstart', 0, '', 'int'); $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); }
function __construct() { parent::__construct(); $mainframe = JFactory::getApplication(); $limit = $mainframe->getCfg('list_limit') == 0 ? 5 : DiscussHelper::getListLimit(); $limitstart = JRequest::getVar('limitstart', 0, 'REQUEST'); // In case limit has been changed, adjust it $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0; $this->setState('limit', $limit); $this->setState('limitstart', $limitstart); }
function __construct() { parent::__construct(); }