/**
  * 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;
 }
 /**
  * Builds the button
  */
 public function __construct()
 {
     parent::__construct(_t('GridFieldBetterButtons.CANCEL', 'Cancel'));
 }