Beispiel #1
0
 /**
  * (non-PHPdoc)
  * @see components/com_fabrik/models/plgFabrik_Element#filterValueList_Exact($normal, $tableName, $label, $id, $incjoin)
  */
 protected function filterValueList_Exact($normal, $tableName = '', $label = '', $id = '', $incjoin = true)
 {
     $o = new stdClass();
     $o->value = '';
     $o->text = $this->filterSelectLabel();
     $opt = array($o);
     $rows = parent::filterValueList_Exact($normal, $tableName, $label, $id, $incjoin);
     foreach ($rows as &$row) {
         if ($row->value == 1) {
             $row->text = JText::_('JYES');
         }
         if ($row->value == 0) {
             $row->text = JText::_('JNO');
         }
     }
     $rows = array_merge($opt, $rows);
     return $rows;
 }