/** * Return field value * * @return string|array */ public function getValue() { $key = $this->getKey(); if (array_key_exists($key, $_FILES)) { return $_FILES[$key]['name']; } return parent::getValue(); }
/** * Return field value * * @return string */ public function getValue() { $value = parent::getValue(); if ($this->_asynchron === false) { $options = $this->getOptions(); $options = array_combine(array_values($options), array_keys($options)); $value = $options[$value]; } return $value; }