/** * Method to auto-populate the model state. * * @return void */ protected function _populateState() { // Initialise variables. $app = JFactory::getApplication('administrator'); // List state information. parent::_populateState('a.id', 'asc'); }
/** * Method to auto-populate the model state. */ protected function _populateState() { // Initialise variables. $app = JFactory::getApplication('administrator'); // Load the filter state. $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search'); $this->setState('filter.search', $search); $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string'); $this->setState('filter.state', $state); // List state information. parent::_populateState('a.date_time', 'desc'); }
/** * Method to auto-populate the model state. */ protected function _populateState() { // Initialise variables. $app = JFactory::getApplication('administrator'); // Load the filter state. $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search'); $this->setState('filter.search', $search); // Load the parameters. $params = JComponentHelper::getParams('com_users'); $this->setState('params', $params); // List state information. parent::_populateState('a.lft', 'asc'); }
/** * 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. * * @return void * @since 1.6 */ protected function _populateState() { // Initialise variables. $app = JFactory::getApplication('administrator'); // Load the filter state. $clientId = $app->getUserStateFromRequest($this->_context . '.filter.client_id', 'filter_client_id', 0); $this->setState('filter.client_id', $clientId); // Load the parameters. $params = JComponentHelper::getParams('com_languages'); $this->setState('params', $params); // List state information. parent::_populateState('a.title', 'asc'); }
/** * Method to auto-populate the model state. * * @since 1.6 */ protected function _populateState() { $app = JFactory::getApplication(); $search = $app->getUserStateFromRequest($this->_context . '.search', 'filter_search'); $this->setState('filter.search', $search); $access = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', 0, 'int'); $this->setState('filter.access', $access); $published = $app->getUserStateFromRequest($this->_context . '.published', 'filter_published', ''); $this->setState('filter.published', $published); $categoryId = $app->getUserStateFromRequest($this->_context . '.category_id', 'filter_category_id'); $this->setState('filter.category_id', $categoryId); // List state information. parent::_populateState('a.name', 'asc'); }
/** * 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. * * @access protected */ function _populateState() { $app =& JFactory::getApplication('administrator'); $context = 'com_comments.threads'; // Load the filter state. $search = $app->getUserStateFromRequest($context . '.filter.search', 'filter_search'); $this->setState('filter.search', $search); $context = $app->getUserStateFromRequest($context . '.filter.context', 'filter_context', '', 'word'); $this->setState('filter.context', $context); // Load the parameters. $params = JComponentHelper::getParams('com_comments'); $this->setState('params', $params); // List state information. parent::_populateState('a.id', 'asc'); }
/** * Method to auto-populate the model state. * * @since 1.6 */ protected function _populateState() { $app = JFactory::getApplication(); $extension = $app->getUserStateFromRequest($this->_context . '.filter.extension', 'extension'); $this->setState('filter.extension', $extension); if (!empty($extension)) { $this->_context .= ".{$extension}"; } $search = $app->getUserStateFromRequest($this->_context . '.search', 'filter_search'); $this->setState('filter.search', $search); $access = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', 0, 'int'); $this->setState('filter.access', $access); $published = $app->getUserStateFromRequest($this->_context . '.published', 'filter_published', ''); $this->setState('filter.published', $published); // List state information. parent::_populateState('a.lft', 'asc'); }
/** * Method to auto-populate the model state. */ protected function _populateState() { // Initialise variables. $app = JFactory::getApplication('administrator'); // Load the filter state. $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search'); $this->setState('filter.search', $search); $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string'); $this->setState('filter.state', $state); $categoryId = $app->getUserStateFromRequest($this->_context . '.filter.category_id', 'filter_category_id', ''); $this->setState('filter.category_id', $categoryId); $clientId = $app->getUserStateFromRequest($this->_context . '.filter.client_id', 'filter_client_id', ''); $this->setState('filter.client_id', $clientId); // Load the parameters. $params = JComponentHelper::getParams('com_banners'); $this->setState('params', $params); // List state information. parent::_populateState('name', 'asc'); }
/** * Method to auto-populate the model state. */ protected function _populateState() { // Initialise variables. $app = JFactory::getApplication('administrator'); // Load the filter state. $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search'); $this->setState('filter.search', $search); $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string'); $this->setState('filter.state', $state); $context = $app->getUserStateFromRequest($this->_context . 'filter.branch', 'filter_context', '', 'word'); $this->setState('filter.context', $context); $threadId = $app->getUserStateFromRequest($this->_context . 'filter.thread_id', 'filter_thread', null, 'int'); $this->setState('filter.thread_id', $threadId); // Load the parameters. $params = JComponentHelper::getParams('com_comments'); $this->setState('params', $params); // List state information. parent::_populateState('a.name', 'asc'); }
/** * Method to auto-populate the model state. */ protected function _populateState() { // Initialise variables. $app = JFactory::getApplication('administrator'); // Load the filter state. $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search'); $this->setState('filter.search', $search); $accessId = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', null, 'int'); $this->setState('filter.access', $accessId); $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string'); $this->setState('filter.state', $state); $folder = $app->getUserStateFromRequest($this->_context . '.filter.folder', 'filter_folder', null, 'cmd'); $this->setState('filter.folder', $folder); // Load the parameters. $params = JComponentHelper::getParams('com_plugins'); $this->setState('params', $params); // List state information. parent::_populateState('a.folder', 'asc'); }
/** * Method to auto-populate the model state. */ protected function _populateState() { // Initialise variables. $app = JFactory::getApplication('administrator'); // Load the filter state. $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search'); $this->setState('filter.search', $search); $accessId = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', null, 'int'); $this->setState('filter.access', $accessId); $published = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_published', '', 'string'); $this->setState('filter.state', $published); $categoryId = $app->getUserStateFromRequest($this->_context . '.filter.category_id', 'filter_category_id', ''); $this->setState('filter.category_id', $categoryId); // Load the parameters. $params = JComponentHelper::getParams('com_weblinks'); $this->setState('params', $params); // List state information. parent::_populateState('a.title', 'asc'); }
/** * Method to auto-populate the model state. * * @return void */ protected function _populateState() { $app = JFactory::getApplication('administrator'); $search = $app->getUserStateFromRequest($this->_context . '.search', 'search'); $this->setState('filter.search', $search); $published = $app->getUserStateFromRequest($this->_context . '.published', 'filter_published', ''); $this->setState('filter.published', $published); $access = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', 0, 'int'); $this->setState('filter.access', $access); $parentId = $app->getUserStateFromRequest($this->_context . '.filter.parent_id', 'filter_parent_id', 0, 'int'); $this->setState('filter.parent_id', $parentId); $level = $app->getUserStateFromRequest($this->_context . '.filter.level', 'filter_level', 0, 'int'); $this->setState('filter.level', $level); $menuType = $app->getUserStateFromRequest($this->_context . '.filter.menutype', 'menutype', 'mainmenu'); $this->setState('filter.menutype', $menuType); // Component parameters. $params = JComponentHelper::getParams('com_menus'); $this->setState('params', $params); // List state information. parent::_populateState('a.lft', 'asc'); }
/** * Method to auto-populate the model state. */ protected function _populateState() { // Initialise variables. $app = JFactory::getApplication('administrator'); // Load the filter state. $search = $app->getUserStateFromRequest($this->_context . '.filter.search', 'filter_search'); $this->setState('filter.search', $search); $accessId = $app->getUserStateFromRequest($this->_context . '.filter.access', 'filter_access', null, 'int'); $this->setState('filter.access', $accessId); $state = $app->getUserStateFromRequest($this->_context . '.filter.state', 'filter_state', '', 'string'); $this->setState('filter.state', $state); $position = $app->getUserStateFromRequest($this->_context . '.filter.position', 'filter_position', '', 'string'); $this->setState('filter.position', $position); $module = $app->getUserStateFromRequest($this->_context . '.filter.module', 'filter_module', '', 'string'); $this->setState('filter.module', $module); $clientId = $app->getUserStateFromRequest($this->_context . '.filter.client_id', 'filter_client_id', 0, 'int'); $this->setState('filter.client_id', $clientId); // Load the parameters. $params = JComponentHelper::getParams('com_modules'); $this->setState('params', $params); // List state information. parent::_populateState('a.position', 'asc'); }