public function __construct() { parent::__construct(); $this->_task = JRequest::getCmd('task'); $this->_table = MijosqlHelper::getVar('tbl'); $this->_query = MijosqlHelper::getVar('qry'); }
function __construct() { parent::__construct(); $this->mainframe = JFactory::getApplication(); $this->option = JRequest::getWord('option'); // Get the pagination request variables $limit = $this->mainframe->getUserStateFromRequest($this->option . '.queries.limit', 'limit', $this->mainframe->getCfg('list_limit'), 'int'); $limitstart = $this->mainframe->getUserStateFromRequest($this->option . '.queries.limitstart', 'limitstart', 0, 'int'); // In case limit has been changed, adjust limitstart accordingly $limitstart = $limit != 0 ? floor($limitstart / $limit) * $limit : 0; $this->setState($this->option . '.queries.limit', $limit); $this->setState($this->option . '.queries.limitstart', $limitstart); $this->_buildViewQuery(); }
public function __construct() { parent::__construct(); }