Beispiel #1
0
 /**
  * @return array|string
  */
 protected function getValue()
 {
     if (isset($this->forceValue)) {
         return $this->forceValue;
     }
     if ($this->open->isSubmitted()) {
         return $this->dataStore->getOldValue($this->name);
     }
     return isset($this->value) ? $this->value : $this->dataStore->getModelValue($this->name);
 }
Beispiel #2
0
 /**
  * @return bool
  */
 public function isSubmitted()
 {
     return $this->data->getOldValue('_form') == $this->name;
 }