protected function _getLabel($value) { if ($this->datasource instanceof jIFormsDatasource2) { return $this->datasource->getLabel2($value, $this->form); } else { return $this->datasource->getLabel($value); } }
function getDisplayValue($value) { if (is_array($value)) { $labels = array(); foreach ($value as $val) { $labels[$val] = $this->datasource->getLabel($val); } return $labels; } else { return $this->datasource->getLabel($value); } }