Esempio n. 1
0
 function display($tpl = null)
 {
     $model = JModellegacy::getInstance('awards', 'BattleModel');
     $rows = $model->getAwardNames();
     $this->assignRef('rows', $rows);
     parent::display($tpl);
 }
Esempio n. 2
0
 /**
  * Method to get a store id based on 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	A prefix for the store id.
  * @return	string		A store id.
  * @since	1.6
  */
 protected function getStoreId($id = '')
 {
     // Compile the store id.
     $id .= ':' . $this->getState('filter.search');
     $id .= ':' . $this->getState('filter.access');
     $id .= ':' . $this->getState('filter.state');
     $id .= ':' . $this->getState('filter.category_id');
     return parent::getStoreId($id);
 }