Beispiel #1
0
 protected function tagToString($level = 1)
 {
     if ($this->composer) {
         $return = call_user_func($this->composer, $this, $this->input, $this->label);
         $return and $this->addTag($return);
     } else {
         $this->label and $this->addTag($this->label);
         $this->addTag($this->input);
     }
     return parent::tagToString($level);
 }
Beispiel #2
0
 public function __construct(array $attributes = array())
 {
     parent::__construct('fieldset');
     $this->setAttributes($attributes);
 }