/** * Add a button * @param string $value the button caption * @param string $style one of "btn-default","btn-primary","btn-success","btn-info","btn-warning","btn-danger" * @return HtmlButton */ public function addButton($value = "Okay", $style = "btn-primary") { $btn = new HtmlButton($this->identifier . "-" . $value); $btn->setStyle($style); $btn->setValue($value); $this->buttons[] = $btn; return $btn; }