Ejemplo n.º 1
0
 public function __construct($legend = null, $attr = array())
 {
     $this->legend = $legend;
     $textManipulator = new Utility\TextManipulator();
     $this->compiledAttr = $textManipulator->arrayToTagAttributes($attr);
 }
Ejemplo n.º 2
0
 /**
  * Sets up the form
  * @param array $config Associaitve array of configuration overrides
  */
 public function __construct($config = array())
 {
     $this->setConfig($config);
     $this->validator = new \HtmlForm\Utility\Validator();
     $this->compiledAttr = Utility\TextManipulator::arrayToTagAttributes($this->config["attr"]);
 }