Example #1
0
 public function getNewValue()
 {
     parent::getNewValue();
     if (is_null($this->new_value)) {
         $this->new_value = $this->unchecked_value;
     }
     $this->checked = (bool) ($this->value == $this->checked_value);
 }
Example #2
0
 public function getNewValue()
 {
     Field::getNewValue();
     $this->values = explode($this->serialization_sep, $this->new_value);
     foreach ($this->values as $value) {
         $values[] = $this->humanDateToIso($value);
     }
     if (isset($values)) {
         $this->new_value = implode($this->serialization_sep, $values);
     }
 }
 /**
  * overwrite new value to store a iso date
  */
 public function getNewValue()
 {
     parent::getNewValue();
     $this->new_value = $this->humanDateToIso($this->new_value);
 }