Exemplo n.º 1
0
 public function addElement($element, $asIcon = false)
 {
     $elementO = $element;
     if (\is_string($element)) {
         if ($asIcon) {
             $elementO = new HtmlButton("button-" . $this->identifier . "-" . \sizeof($this->content));
             $elementO->asIcon($element);
         } else {
             $elementO = new HtmlButton("button-" . $this->identifier . "-" . \sizeof($this->content), $element);
         }
     }
     $this->addContent($elementO);
 }
Exemplo n.º 2
0
 public static function icon($identifier, $icon)
 {
     $result = new HtmlButton($identifier);
     $result->asIcon($icon);
     return $result;
 }