Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public function setData($data)
 {
     if ($this->mode === self::GROUP) {
         parent::setData($data);
     } else {
         Field::setData($data);
     }
 }
Beispiel #2
0
 /**
  * Sets the values of both fields to this value
  *
  * @param mixed $data
  */
 public function setData($data)
 {
     parent::setData(array('first' => $data, 'second' => $data));
 }
Beispiel #3
0
 /**
  * Sets the values of both fields to this value
  *
  * @param mixed $data
  */
 public function setData($data)
 {
     parent::setData(array($this->getOption('first_key') => $data, $this->getOption('second_key') => $data));
 }