Esempio n. 1
0
 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  */
 protected function populateState($ordering = null, $direction = null)
 {
     // Reset Session
     $doc = JFactory::getDocument();
     if ($doc->getType() == 'json') {
         $session = JFactory::getSession();
         $session->destroy();
     }
     $this->setState('search', JRequest::getVar('search'));
     parent::populateState($ordering, $direction);
 }
Esempio n. 2
0
 /**
  * Method to auto-populate the model state.
  *
  * Note. Calling getState in this method will result in recursion.
  */
 protected function populateState($ordering = null, $direction = null)
 {
     // Set First order field
     $this->setState('list.orderingPrefix', array());
     parent::populateState($ordering, 'asc');
 }