示例#1
0
文件: list.php 项目: ForAEdesWeb/AEW3
 /**
  * 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);
 }
示例#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');
 }