コード例 #1
0
ファイル: IssuesModel.php プロジェクト: dextercowley/jissues
 /**
  * Method to get a store id based on the model configuration state.
  *
  * This is necessary because the model is used by the component and
  * different modules that might need different sets of data or different
  * ordering requirements.
  *
  * @param   string  $id  An identifier string to generate the store id.
  *
  * @return  string  A store id.
  *
  * @since   1.0
  */
 protected function getStoreId($id = '')
 {
     // Add the list state to the store id.
     $id .= ':' . $this->state->get('filter.priority');
     $id .= ':' . $this->state->get('filter.state');
     $id .= ':' . $this->state->get('filter.status');
     $id .= ':' . $this->state->get('filter.search');
     $id .= ':' . $this->state->get('filter.user');
     $id .= ':' . $this->state->get('filter.category');
     $id .= ':' . $this->state->get('filter.tests');
     $id .= ':' . $this->state->get('filter.easytest');
     return parent::getStoreId($id);
 }
コード例 #2
0
ファイル: UsersModel.php プロジェクト: joomlla/jissues
 /**
  * Method to get a store id based on the model configuration state.
  *
  * This is necessary because the model is used by the component and
  * different modules that might need different sets of data or different
  * ordering requirements.
  *
  * @param   string  $id  An identifier string to generate the store id.
  *
  * @return  string  A store id.
  *
  * @since   1.0
  */
 protected function getStoreId($id = '')
 {
     // Add the list state to the store id.
     $id .= ':' . $this->state->get('filter.search-user');
     return parent::getStoreId($id);
 }