Esempio n. 1
0
 public function __construct($vars = NULL, $action = NULL)
 {
     parent::__construct('cancel', S_CANCEL);
     $this->options['type'] = 'button';
     $this->setVars($vars);
     $this->setAction($action);
 }
 public function __construct($vars = null, $action = null, $class = null)
 {
     parent::__construct('cancel', _('Cancel'), $action, $class);
     if (is_null($action)) {
         $this->setVars($vars);
     }
 }
 public function __construct($vars = NULL, $action = NULL)
 {
     parent::__construct('cancel', S_CANCEL);
     $this->attributes['type'] = 'button';
     $this->setVars($vars);
     if (!is_null($action)) {
         $this->setAttribute('onclick', $action);
     }
 }
 public function __construct($name, $caption, $msg = NULL, $vars = NULL)
 {
     $this->vars = null;
     $this->msg = null;
     $this->name = $name;
     parent::__construct($name, $caption);
     $this->setMessage($msg);
     $this->setVars($vars);
     $this->setAction(NULL);
 }
Esempio n. 5
0
 public function __construct($vars = null, $action = null)
 {
     parent::__construct('cancel', _('Cancel'));
     if (is_null($action)) {
         $this->setVars($vars);
     }
     if ($action !== null) {
         $this->onClick($action);
     }
 }
 public function __construct($name = 'submit', $caption = '', $action = null, $class = null)
 {
     parent::__construct($name, $caption, $action, $class);
     $this->setAttribute('type', 'submit');
     return $this;
 }
Esempio n. 7
0
 /**
  * @param array $options
  */
 public function __construct(array $options)
 {
     parent::__construct('button_popup', _('Select'), null, 'formlist');
     $this->options = $options;
     return $this;
 }
Esempio n. 8
0
 public function __construct($name = 'submit', $caption = '')
 {
     parent::__construct($name, $caption);
     $this->setAttribute('type', 'submit');
     $this->setAttribute('value', $caption);
 }