protected function populateState() { parent::populateState(); $this->setState('template.id', JRequest::getInt('id')); $this->setState('content.id', null); $this->setState('category.id', null); }
/** * Stock method to auto-populate the model state. * * @return void * * @since 2.0.0 */ protected function populateState() { parent::populateState(); // Get the plugin from the request. $plugin = JFactory::getApplication()->input->get('plugin'); $this->setState($this->getName() . '.plugin', $plugin); }
protected function populateState() { $addon_id = JFactory::getApplication()->input->getInt('addon_id'); $this->setState($this->getName() . '.addon_id', $addon_id); // List state information. parent::populateState(); }
protected function populateState() { $table = $this->getTable(); $key = $table->getKeyName(); $pk = JRequest::getInt($key); //dmp($_REQUEST);exit(); return parent::populateState(); }
/** * Stock method to auto-populate the model state. * @return void * @since 12.2 */ protected function populateState() { parent::populateState(); $app = JFactory::getApplication(); /** @var $app JApplicationAdministrator * */ $value = $app->getUserStateFromRequest("url.id", "url_id"); $this->setState($this->getName() . '.url_id', $value); }
public function populateState($ordering = null, $direction = null) { $app = JFactory::getApplication('administrator'); $state = $app->getUserStateFromRequest($this->context . '.filter.interpreter_id', 'filter_interpreter_id', '', 'string'); $this->setState('filter.interpreter_id', $state); // List state information. parent::populateState(); }
protected function populateState() { parent::populateState(); $this->setState('template.id', JFactory::getApplication()->input->getInt('id')); $this->setState('content.id', null); $this->setState('category.id', null); $this->setState('template.template', null); }
/** * 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(); $this->setState('user.id', \User::get('id')); $messageId = (int) \Request::getInt('message_id'); $this->setState('message.id', $messageId); $replyId = (int) \Request::getInt('reply_id'); $this->setState('reply.id', $replyId); }
/** * 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(); $user = JFactory::getUser(); $this->setState('user.id', $user->get('id')); $messageId = (int) JRequest::getInt('message_id'); $this->setState('message.id', $messageId); $replyId = (int) JRequest::getInt('reply_id'); $this->setState('reply.id', $replyId); }
/** * Method to auto-populate the model state. * * This method should only be called once per instantiation and is designed * to be called on the first call to the getState() method unless the model * configuration flag to ignore the request is set. * * Note. Calling getState in this method will result in recursion. * * @return void * * @since 1.6 */ protected function populateState() { parent::populateState(); $input = JFactory::getApplication()->input; $user = JFactory::getUser(); $this->setState('user.id', $user->get('id')); $messageId = (int) $input->getInt('message_id'); $this->setState('message.id', $messageId); $replyId = (int) $input->getInt('reply_id'); $this->setState('reply.id', $replyId); }
protected function populateState() { parent::populateState(); $params = JComponentHelper::getParams('com_tz_portfolio'); $this->setState('params', $params); if ($params->get('tz_image_xsmall', 100)) { $sizeImage['XS'] = (int) $params->get('tz_image_xsmall', 100); } if ($params->get('tz_image_small', 200)) { $sizeImage['S'] = (int) $params->get('tz_image_small', 200); } if ($params->get('tz_image_medium', 400)) { $sizeImage['M'] = (int) $params->get('tz_image_medium', 400); } if ($params->get('tz_image_large', 600)) { $sizeImage['L'] = (int) $params->get('tz_image_large', 600); } if ($params->get('tz_image_xsmall', 900)) { $sizeImage['XL'] = (int) $params->get('tz_image_xlarge', 900); } if ($params->get('tz_image_gallery_xsmall')) { $size['XS'] = (int) $params->get('tz_image_gallery_xsmall'); } if ($params->get('tz_image_gallery_small')) { $size['S'] = (int) $params->get('tz_image_gallery_small'); } if ($params->get('tz_image_gallery_medium')) { $size['M'] = (int) $params->get('tz_image_gallery_medium'); } if ($params->get('tz_image_gallery_large')) { $size['L'] = (int) $params->get('tz_image_gallery_large'); } if ($params->get('tz_image_gallery_xsmall')) { $size['XL'] = (int) $params->get('tz_image_gallery_xlarge'); } $this->setState('sizeImage', $sizeImage); $this->setState('size', $size); $this->setState('article.id', JRequest::getInt('id')); }
function populateState() { parent::populateState(); $this->setState('com_tz_portfolio.plugin.articleId', null); $this->setState('com_tz_portfolio.plugin.pluginid', null); }
/** * Method to auto-populate the model state. * * Note. Calling getState in this method will result in recursion. * * @return void * @since 1.6 */ protected function populateState($ordering = null, $direction = null) { $app = JFactory::getApplication('administrator'); $id = $app->input->getInt('id', 0); if (!empty($id)) { $app->setUserState('com_englishconcept.edit.grammarexercise.id', $id); } // List state information. parent::populateState($ordering, $direction); }
/** * Auto-populate the model state. * * Note. Calling getState in this method will result in recursion. * * @return void * @since 1.6 */ protected function populateState() { // Execute the parent method. parent::populateState(); $app = JFactory::getApplication('administrator'); // Load the User state. $pk = (int) JRequest::getInt('extension_id'); $this->setState('plugin.id', $pk); }
/** * Method to auto-populate the model state. * * Note. Calling getState in this method will result in recursion. */ protected function populateState() { parent::populateState(); // Set Nested Item $table = $this->getTable(); if ($table instanceof JTableNested) { $nested = true; } else { $nested = false; } $this->setState('item.nested', $nested); }
/** * Stock method to auto-populate the model state. * * @return void * * @since 12.2 */ protected function populateState() { parent::populateState(); $db = $this->getDbo(); $query = $db->getQuery(true); $query->select('id')->from('#__openhrm_organization_infos'); $db->setQuery($query); $result = $db->loadObject(); if (is_object($result) && isset($result->id)) { $this->setState($this->getName() . '.id', $result->id); } }
/** * Stock method to auto-populate the model state. * * @return void * * @since 12.2 */ protected function populateState() { FieldsandfiltersHelper::setUserStateFieldID(sprintf('%s.%ss.filter', $this->option, $this->name)); parent::populateState(); }
/** * Method to auto-populate the model state. * * Note. Calling getState in this method will result in recursion. * * @since 1.0.0 */ protected function populateState() { // Get the pk of the record from the request. $jinput = JFactory::getApplication()->input; $itemID = (int) $jinput->get('itid'); $this->setState($this->getName() . '.item_id', $itemID); $contentTypeID = (int) $jinput->get('ctid'); $this->setState($this->getName() . '.content_type_id', $contentTypeID); parent::populateState(); }
protected function populateState($ordering = null, $direction = null) { $role = $this->getUserStateFromRequest($this->context . '.filter.role', 'filter_currentpage', 'self'); $this->setState('filter.role', $role); parent::populateState('a.tdate', 'desc'); }
/** * Method to auto-populate the model state. * * @access public * @param string $ordering * @param string $direction * @return void */ public function populateState($ordering = null, $direction = null) { // Load id from array from the request. $jinput = JFactory::getApplication()->input; //1. First read the state var //2. Then read from Request //3. Finally search if cid is an array var (in request) $id = $this->state->get($this->getName() . '.id', $jinput->get('id', $jinput->get('cid', null, 'ARRAY'), 'ARRAY')); if (is_array($id)) { $id = $id[0]; } //assure compatibility when cid is received instead of id $jinput->set('id', $id); parent::populateState($ordering, $direction); if (defined('JDEBUG')) { $_SESSION["Rtiprint"]["Model"][$this->getName()]["State"] = $this->state; } }
/** * Extension to the core method to auto-populate the model state. * * @return void */ protected function populateState() { parent::populateState(); $app = JFactory::getApplication(); $params = JComponentHelper::getParams($this->option); }
public function populateState() { parent::populateState(); }
/** * Auto-populate the model state. * * Note. Calling getState in this method will result in recursion. * * @return void * @since 1.6 */ protected function populateState() { $this->context = 'com_kunena.admin.plugin'; // Execute the parent method. parent::populateState(); $app = JFactory::getApplication('administrator'); // Load the User state. $pk = $app->input->getInt('extension_id'); $this->setState('plugin.id', $pk); }
/** * Method to auto-populate the model state. * * Note. Calling getState in this method will result in recursion. * * @return void * * @since 2.5 */ protected function populateState() { parent::populateState(); $userId = JFactory::getApplication()->input->get('u_id', 0, 'int'); $this->setState('note.user_id', $userId); }
/** * Auto-populate the model state. * * Note. Calling getState in this method will result in recursion. * * @return void */ protected function populateState() { // Execute the parent method. parent::populateState(); // Load the User state. $pk = (int) Request::getInt('extension_id'); $this->setState('plugin.id', $pk); }