public function __construct($legend = null, $attr = array()) { $this->legend = $legend; $textManipulator = new Utility\TextManipulator(); $this->compiledAttr = $textManipulator->arrayToTagAttributes($attr); }
/** * 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"]); }