public function __construct() { parent::__construct(); $this->_task = MRequest::getCmd('task'); $this->_table = MiwosqlHelper::getVar('tbl'); $this->_query = MiwosqlHelper::getVar('qry'); }
function __construct() { parent::__construct(); $this->mainframe = MFactory::getApplication(); $this->option = MRequest::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(); }