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); }
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; }
/** * @param array $options */ public function __construct(array $options) { parent::__construct('button_popup', _('Select'), null, 'formlist'); $this->options = $options; return $this; }
public function __construct($name = 'submit', $caption = '') { parent::__construct($name, $caption); $this->setAttribute('type', 'submit'); $this->setAttribute('value', $caption); }