/** * Method to auto-populate the model state. * * Note. Calling getState in this method will result in recursion. * * @since 1.6 */ protected function populateState() { parent::populateState(); $app = JFactory::getApplication(); /** @var $app JApplicationSite */ // Load the parameters. $value = $app->getParams($this->option); $this->setState('params', $value); }
/** * Method to auto-populate the model state. * Note. Calling getState in this method will result in recursion. * @since 1.6 */ protected function populateState() { parent::populateState(); $app = JFactory::getApplication("Site"); /** @var $app JApplicationSite * */ // Get the pk of the record from the request. $value = $app->input->getInt("id"); $this->setState($this->getName() . '.id', $value); }
protected function populateState() { $jinput = JFactory::getApplication()->input; $client = $jinput->get('client', 'site', 'cmd'); $tag = $jinput->get('tag', '', 'cmd'); $id = $jinput->get('id', '0', 'int'); $this->setState('language.client', $client); $this->setState('language.tag', $tag); $this->setState('language.id', $id); parent::populateState(); }
/** * Method to auto-populate the model state. * Note. Calling getState in this method will result in recursion. * @since 1.6 */ protected function populateState() { parent::populateState(); $app = JFactory::getApplication(); /** @var $app JApplicationSite */ // Get the pk of the record from the request. $value = $app->input->getInt('id'); $this->setState($this->getName() . '.id', $value); // Load the parameters. $params = $app->getParams(); $this->setState('params', $params); }
protected function populateState() { $app = JFactory::getApplication(); $id = JRequest::getInt($this->pk_name); $this->setState(strtolower($this->model_key) . '.' . $this->pk_name, $id); $cmd = JRequest::getCmd('cmd', ''); $this->setState(strtolower($this->model_key) . '.cmd', $cmd); // Load the parameters. $params = $app->getParams(); $this->setState('params', $params); parent::populateState(); }
/** * Method to auto-populate the model state. * Note. Calling getState in this method will result in recursion. * @since 1.6 */ protected function populateState() { parent::populateState(); $app = JFactory::getApplication("Site"); /** @var $app JApplicationSite * */ // Get the pk of the record from the request. $value = $app->input->getInt("id"); $this->setState('item_id', $value); $value = $app->input->getInt("comment_id"); $this->setState('comment_id', $value); // Load the parameters. $value = $app->getParams($this->option); $this->setState('params', $value); }
/** * Method to auto-populate the model state. * Note. Calling getState in this method will result in recursion. * @since 1.6 */ protected function populateState() { parent::populateState(); $app = JFactory::getApplication(); /** @var $app JApplicationSite */ // Get the pk of the record from the request. $value = $app->input->getInt("id", 0); $this->setState($this->getName() . '.id', $value); // Get category ID $value = $app->getUserState($this->option . ".items.catid"); $this->setState('category_id', $value); // Load the parameters. $value = $app->getParams($this->option); $this->setState('params', $value); }