public function __construct() { parent::__construct(); $this->option = JRequest::getCmd('option'); $this->view = JRequest::getCmd('view'); $this->context = $this->option . '.categories'; $this->populateState(); }
public function __construct() { parent::__construct(); $app = JFactory::getApplication(); $this->option = $app->input->get('option', '', 'CMD'); $this->view = $app->input->get('view', '', 'CMD'); $this->context = $this->option . '.categories'; $this->populateState(); }
public function __construct($config = array()) { parent::__construct($config); $id = JRequest::getInt('id', 0); if (!$id) { $cid = JRequest::getVar('cid', array()); $id = $cid[0]; } if ($id) { $this->setState('id', $id); } }
public function __construct() { parent::__construct(); //vishal - for j3 changes $app = JFactory::getApplication(); $this->option = $app->input->get('option', '', 'CMD'); $this->view = $app->input->get('view', '', 'CMD'); //$this->option = JRequest::getCmd('option'); //$this->view = JRequest::getCmd('view'); $this->context = $this->option . '.categories'; $this->populateState(); }
public function __construct($config = array()) { parent::__construct($config); $app = JFactory::getApplication(); $id = $app->input->get('id', false, 'INT'); if (!$id) { $cid = $app->input->post->get('cid', array(), 'ARRAY'); $id = @$cid[0]; } if ($id) { $this->setState('id', $id); } }