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