public function initStates() { // Ordering, direction, search, limit, limitstart is handled by parent::initStates(); parent::initStates(); $state = $this->getUserStateFromRequest('state', 'all'); $this->setState('state', $state); }
/** * 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(); }
public function initStates() { $ordering = $this->getUserStateFromRequest('ordering', 'a.id'); $direction = $this->getUserStateFromRequest('direction', 'asc'); $this->setState('ordering', $ordering); $this->setState('direction', $direction); parent::initStates(); }
/** * 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(); }
/** * 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(); }
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); }
/** * 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(); }
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(); }
/** * 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(); }
/** * 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); }
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(); }
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); }
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); }
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(); }
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); }
function __construct() { parent::__construct('conversations'); parent::initStates(); }
public function initStates() { parent::initStates(); }
function __construct() { parent::__construct('indexer'); parent::initStates(); }