Example #1
0
 /**
  * Constructor.
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Get the pagination request variables (we only have them if we're not in CLI
     if (JFactory::$application) {
         $app = JFactory::getApplication();
     } else {
         $app = new stdClass();
     }
     if (!($app instanceof JApplication || $app instanceof JApplicationAdministrator)) {
         $limit = 0;
         $limitstart = 0;
     } else {
         $limit = $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit'));
         $limitstart = $app->getUserStateFromRequest('com_akeebaprofileslimitstart', 'limitstart', 0);
     }
     // Set the page pagination variables
     $this->setState('limit', $limit);
     $this->setState('limitstart', $limitstart);
     $this->table = 'stat';
 }