Ejemplo n.º 1
0
 /**
  * Construct.
  *
  * @param string $tag        Element tag.
  * @param array  $attributes Attributes.
  */
 public function __construct($tag, $attributes = array())
 {
     parent::__construct($tag, $attributes);
     $this->childAttributes = new Attributes();
 }
Ejemplo n.º 2
0
 /**
  * Construct.
  *
  * @param array $attributes The default html attributes.
  */
 public function __construct($attributes = array())
 {
     parent::__construct('label', $attributes);
 }