/** * The constructor * * @param array $options */ public function setOptions($options) { if (isset($options['values'])) { $this->setValues($options['values']); unset($options['values']); } parent::setOptions($options); }
/** * The constructor * * @param array $options */ function __construct(array $options = array()) { if (isset($options['value'])) { $value = $options['value']; unset($options['value']); $this->setValue($value); } parent::__construct($options); }
/** * The constructor * * @param array $options */ function __construct(array $options = array()) { $options['action'] = isset($options['action']) ? $options['action'] : ''; parent::__construct($options); }
public function hasErrorsForElement(Element $element) { return array_key_exists($element->getName(), $this->errorMessages); }