Ejemplo n.º 1
0
 public function initStates()
 {
     // Ordering, direction, search, limit, limitstart is handled by parent::initStates();
     parent::initStates();
     $state = $this->getUserStateFromRequest('state', 'all');
     $this->setState('state', $state);
 }
Ejemplo n.º 2
0
 /**
  * Initializes all the generic states from the form
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function initStates()
 {
     $state = $this->getUserStateFromRequest('published', 'all');
     $this->setState('published', $state);
     $search = $this->getUserStateFromRequest('search', '');
     $this->setState('search', $search);
     parent::initStates();
 }
Ejemplo n.º 3
0
 public function initStates()
 {
     $ordering = $this->getUserStateFromRequest('ordering', 'a.id');
     $direction = $this->getUserStateFromRequest('direction', 'asc');
     $this->setState('ordering', $ordering);
     $this->setState('direction', $direction);
     parent::initStates();
 }
Ejemplo n.º 4
0
 /**
  * Initializes all the generic states from the form
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function initStates()
 {
     $state = $this->getUserStateFromRequest('published', 'all');
     $filter = $this->getUserStateFromRequest('extension', 'all');
     $this->setState('filter', $filter);
     $this->setState('published', $state);
     parent::initStates();
 }
Ejemplo n.º 5
0
 /**
  * Initializes all the generic states from the form
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function initStates()
 {
     $callback = JRequest::getVar('jscallback', '');
     $defaultFilter = $callback ? SOCIAL_STATE_PUBLISHED : 'all';
     $filter = $this->getUserStateFromRequest('state', $defaultFilter);
     $extension = $this->getUserStateFromRequest('extension', 'all');
     $this->setState('state', $filter);
     $this->setState('extension', $extension);
     parent::initStates();
 }
Ejemplo n.º 6
0
 public function initStates()
 {
     parent::initStates();
     $ordering = $this->getUserStateFromRequest('ordering', 'created');
     $this->setState('ordering', $ordering);
     $direction = $this->getUserStateFromRequest('direction', 'desc');
     $this->setState('direction', $direction);
     $state = $this->getUserStateFromRequest('state', 'all');
     $this->setState('state', $state);
 }
Ejemplo n.º 7
0
 /**
  * Initializes all the generic states from the form
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function initStates()
 {
     $state = $this->getUserStateFromRequest('state', 'all');
     $filter = $this->getUserStateFromRequest('filter', 'all');
     $group = $this->getUserStateFromRequest('group', 'all');
     $this->setState('group', $group);
     $this->setState('filter', $filter);
     $this->setState('state', $state);
     parent::initStates();
 }
Ejemplo n.º 8
0
 public function initStates()
 {
     $published = $this->getUserStateFromRequest('published', 'all');
     $ordering = $this->getUserStateFromRequest('ordering', 'published');
     $direction = $this->getUserStateFromRequest('direction', 'DESC');
     $this->setState('published', $published);
     $this->setState('ordering', $ordering);
     $this->setState('direction', $direction);
     parent::initStates();
 }
Ejemplo n.º 9
0
 /**
  * Populates the state
  *
  * @since	1.0
  * @access	public
  * @param	string
  * @return
  */
 public function initStates()
 {
     $profile = $this->getUserStateFromRequest('profile');
     $group = $this->getUserStateFromRequest('group');
     $published = $this->getUserStateFromRequest('published', 'all');
     $this->setState('published', $published);
     $this->setState('group', $group);
     $this->setState('profile', $profile);
     parent::initStates();
 }
Ejemplo n.º 10
0
 /**
  * Initializes all the generic states from the form
  *
  * @since	1.2
  * @access	public
  * @param	string
  * @return
  */
 public function initStates()
 {
     $filter = $this->getUserStateFromRequest('state', 'all');
     $ordering = $this->getUserStateFromRequest('ordering', 'ordering');
     $direction = $this->getUserStateFromRequest('direction', 'ASC');
     $this->setState('state', $filter);
     parent::initStates();
     // Override the ordering behavior
     $this->setState('ordering', $ordering);
     $this->setState('direction', $direction);
 }
Ejemplo n.º 11
0
 public function initStates()
 {
     $ordering = $this->getUserStateFromRequest('ordering', 'version');
     $direction = $this->getUserStateFromRequest('direction', 'asc');
     $version = $this->getUserStateFromRequest('version', 'all');
     $search = $this->getUserStateFromRequest('search', '');
     $this->setState('ordering', $ordering);
     $this->setState('direction', $direction);
     $this->setState('version', $version);
     $this->setState('search', $search);
     parent::initStates();
 }
Ejemplo n.º 12
0
 public function initStates()
 {
     $config = FD::config();
     $mainframe = JFactory::getApplication();
     parent::initStates();
     // override the limit behavior
     $limit = $config->get('activity.pagination.limit');
     if ($mainframe->isAdmin()) {
         $limit = $config->get('activity.pagination.max');
     }
     $this->setState('limit', $limit);
 }
Ejemplo n.º 13
0
 public function initStates()
 {
     // Direction, search, limit, limitstart is handled by parent::initStates();
     parent::initStates();
     // Override ordering default value
     $ordering = $this->getUserStateFromRequest('ordering', 'a.id');
     $this->setState('ordering', $ordering);
     // Init other parameters
     $type = $this->getUserStateFromRequest('type', 'all');
     $state = $this->getUserStateFromRequest('state', 'all');
     $this->setState('type', $type);
     $this->setState('state', $state);
 }
Ejemplo n.º 14
0
 public function initStates()
 {
     $state = $this->getUserStateFromRequest('published', 'all');
     $filter = $this->getUserStateFromRequest('extension', 'all');
     $group = $this->getUserStateFromRequest('group', 'all');
     $ordering = $this->getUserStateFromRequest('ordering', 'id');
     $direction = $this->getUserStateFromRequest('direction', 'asc');
     $this->setState('filter', $filter);
     $this->setState('published', $state);
     $this->setState('group', $group);
     $this->setState('ordering', $ordering);
     $this->setState('direction', $direction);
     parent::initStates();
 }
Ejemplo n.º 15
0
 public function initStates()
 {
     // Direction, search, limit, limitstart, ordering is handled by parent::initStates();
     parent::initStates();
     $currentLayout = JFactory::getApplication()->input->getString('layout');
     if (empty($currentLayout)) {
         $currentLayout = 'country';
     }
     $previousLayout = $this->getUserState('layout');
     if ($currentLayout !== $previousLayout) {
         $this->setUserState('search', '');
     }
     $this->setUserState('layout', $currentLayout);
     // Init other parameters
     $state = $this->getUserStateFromRequest('state', 'all');
     $this->setState('state', $state);
 }
Ejemplo n.º 16
0
 function __construct()
 {
     parent::__construct('conversations');
     parent::initStates();
 }
Ejemplo n.º 17
0
 public function initStates()
 {
     parent::initStates();
 }
Ejemplo n.º 18
0
 function __construct()
 {
     parent::__construct('indexer');
     parent::initStates();
 }