Beispiel #1
0
 /**
  * @param $text
  * @param string $href
  * @param string $theme
  * @param string $icon
  * @param bool $active
  * @param bool $inline
  * @param bool $returnAdded
  * @return $this|Tag|mixed
  */
 public function addButton($text, $href = '', $theme = '', $icon = '', $active = false, $inline = false, $returnAdded = false)
 {
     $button = new Button();
     $button->text($text)->href($href)->theme($theme)->icon($icon)->active($active)->inline($inline);
     $this->add($button);
     if ($returnAdded === true) {
         return $button;
     }
     return $this;
 }