예제 #1
0
 protected function populateState($ordering = null, $direction = null)
 {
     $app = JFactory::getApplication('administrator');
     $search = $app->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
     $this->setState('filter.search', $search);
     parent::populateState('created', 'desc');
 }
예제 #2
0
 protected function populateState($ordering = null, $direction = null)
 {
     $app = JFactory::getApplication('administrator');
     $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);
     $object_group = $app->getUserStateFromRequest($this->context . '.filter.object_group', 'filter_object_group', '');
     $this->setState('filter.object_group', $object_group);
     $language = $app->getUserStateFromRequest($this->context . '.filter.language', 'filter_language', '');
     $this->setState('filter.language', $language);
     parent::populateState('js.name', 'asc');
 }
예제 #3
0
 protected function populateState($ordering = null, $direction = null)
 {
     $app = JFactory::getApplication('administrator');
     $config = JCommentsFactory::getConfig();
     $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);
     $object_group = $app->getUserStateFromRequest($this->context . '.filter.object_group', 'filter_object_group', '');
     $this->setState('filter.object_group', $object_group);
     $language = $app->getUserStateFromRequest($this->context . '.filter.language', 'filter_language', '');
     $this->setState('filter.language', $language);
     $this->setState('config.comment_title', $config->getInt('comment_title'));
     parent::populateState('jc.date', 'desc');
 }