예제 #1
0
 /**
  * @param string $caption
  * @param string $name
  * @param string $value
  * @param string $class
  */
 public function __construct($caption, $name = null, $value = null)
 {
     parent::__construct($caption);
     $this->setAttribute('type', 'submit');
     if ($name !== null) {
         $this->setAttribute('name', $name);
     }
     if ($value !== null) {
         $this->setAttribute('value', $value);
     }
 }
예제 #2
0
 /**
  * @param string $caption
  * @param string $url			URL to redirect to
  * @param string $confirmation	confirmation message text
  * @param string $class
  */
 public function __construct($caption, $url, $confirmation = null)
 {
     parent::__construct($caption);
     $this->setUrl($url, $confirmation);
 }