Example #1
0
File: Select.php Project: ppi/form
 /**
  * The constructor
  *
  * @param array $options
  */
 public function setOptions($options)
 {
     if (isset($options['values'])) {
         $this->setValues($options['values']);
         unset($options['values']);
     }
     parent::setOptions($options);
 }
Example #2
0
 /**
  * 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);
 }
Example #3
0
File: Form.php Project: ppi/form
 /**
  * The constructor
  *
  * @param array $options
  */
 function __construct(array $options = array())
 {
     $options['action'] = isset($options['action']) ? $options['action'] : '';
     parent::__construct($options);
 }
Example #4
0
File: Form.php Project: ppi/form
 public function hasErrorsForElement(Element $element)
 {
     return array_key_exists($element->getName(), $this->errorMessages);
 }