/**
  * Builds the button
  * @param string                          $actionName   The name of the action (method)
  * @param string                          $text         The text for the button
  * @param int                             $redirectType The type of redirection on completion of the action
  */
 public function __construct($actionName, $text, $redirectType = null)
 {
     $this->actionName = $actionName;
     $this->redirectType = $redirectType ?: self::REFRESH;
     parent::__construct($text);
 }
 public function __construct($text, $link)
 {
     parent::__construct($text);
     $this->link = $link;
 }
 /**
  * Gets the HTML that represents the button
  * @return string
  */
 public function getButtonHTML()
 {
     $this->addExtraClass("backlink");
     return parent::getButtonHTML($form, $request);
 }