Merge branch 'MDL-78163-master' of https://github.com/meirzamoodle/moodle

This commit is contained in:
Andrew Nicols 2023-06-21 11:57:48 +08:00
commit 50093090f6
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14
4 changed files with 39 additions and 0 deletions

View File

@ -46,6 +46,9 @@ class MoodleQuickForm_button extends HTML_QuickForm_button implements templatabl
/** @var string html for help button, if empty then no help */
var $_helpbutton='';
/** @var bool if true label will be hidden. */
protected $_hiddenLabel = false;
/**
* constructor
*
@ -89,4 +92,13 @@ class MoodleQuickForm_button extends HTML_QuickForm_button implements templatabl
return 'default';
}
}
/**
* Sets label to be hidden
*
* @param bool $hiddenLabel sets if label should be hidden
*/
public function setHiddenLabel($hiddenLabel) {
$this->_hiddenLabel = $hiddenLabel;
}
}

View File

@ -44,6 +44,9 @@ class MoodleQuickForm_password extends HTML_QuickForm_password implements templa
/** @var string, html for help button, if empty then no help */
var $_helpbutton='';
/** @var bool if true label will be hidden. */
protected $_hiddenLabel = false;
/**
* constructor
*
@ -91,4 +94,13 @@ class MoodleQuickForm_password extends HTML_QuickForm_password implements templa
function getHelpButton(){
return $this->_helpbutton;
}
/**
* Sets label to be hidden
*
* @param bool $hiddenLabel sets if label should be hidden
*/
public function setHiddenLabel($hiddenLabel) {
$this->_hiddenLabel = $hiddenLabel;
}
}

View File

@ -43,6 +43,9 @@ class MoodleQuickForm_radio extends HTML_QuickForm_radio implements templatable
/** @var string html for help button, if empty then no help */
var $_helpbutton='';
/** @var bool if true label will be hidden. */
protected $_hiddenLabel = false;
/**
* constructor
*
@ -115,4 +118,13 @@ class MoodleQuickForm_radio extends HTML_QuickForm_radio implements templatable
{
return '<span>' . parent::toHtml() . '</span>';
}
/**
* Sets label to be hidden
*
* @param bool $hiddenLabel sets if label should be hidden
*/
public function setHiddenLabel($hiddenLabel) {
$this->_hiddenLabel = $hiddenLabel;
}
}

View File

@ -51,6 +51,9 @@ class MoodleQuickForm_url extends HTML_QuickForm_text implements templatable {
/** @var string the unique id of the filepicker, if enabled.*/
protected $filepickeruniqueid;
/** @var array data which need to be posted. */
protected $_options;
/**
* Constructor
*