Esempio n. 1
0
 /**
  * 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.
  */
 protected function getStoreId($id = '')
 {
     foreach ($this->getFilterableColumns() as $name => $column) {
         $filterName = str_replace('.', '_', $name);
         $id .= ':' . $this->getState('filter.' . $filterName);
     }
     return parent::getStoreId($id);
 }
Esempio n. 2
0
 /**
  * Method to get a store id based on model configuration state.
  *
  * @param   string  $id  A prefix for the store id.
  *
  * @return  string       A store id.
  */
 protected function getStoreId($id = '')
 {
     // Compile the store id.
     $id .= ':' . $this->getState('filter.search');
     return parent::getStoreId($id);
 }