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