Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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);
 }
Esempio n. 5
0
 function __construct()
 {
     parent::__construct();
 }