/** * @param string $text * @param string $for * */ public function __construct($text, $for = NULL) { parent::__construct($text); if (NULL !== $for) { $this->attr('for', $for); } }
/** * @param string $title * @param string $text * */ public function __construct($title, $text) { parent::__construct($text); $this->attr('title', $title); }
/** * @param mixed $value * @param string $name * */ public function __construct($value = NULL, $name = NULL) { parent::__construct($name ?: 'button' . self::$_sequence++, 'button'); $this->setContent($value); }