Esempio n. 1
0
 function __construct()
 {
     parent::__construct();
     $mainframe = JFactory::getApplication();
     $limit = $mainframe->getUserStateFromRequest('com_easydiscuss.spools.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
     $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  * @since 1.5
  */
 function __construct()
 {
     parent::__construct();
     $mainframe = JFactory::getApplication();
     //get the number of events from database
     $limit = $mainframe->getUserStateFromRequest('com_easydiscuss.post_types.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
     $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct();
     $mainframe = JFactory::getApplication();
     $limit = $mainframe->getUserStateFromRequest('com_easydiscuss.categories.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');
     $limitstart = JRequest::getVar('limitstart', 0, '', 'int');
     $total = $this->getTotal();
     if ($limitstart > $total - $limit) {
         $limitstart = max(0, (int) (ceil($total / $limit) - 1) * $limit);
     }
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
 }
Esempio n. 4
0
 /**
  * Constructor
  *
  * @since 1.5
  */
 function __construct()
 {
     parent::__construct();
 }