Skip to content

Commit

Permalink
MDL-31294 Forms Library: Removed deprecated functions from forms library
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Jul 24, 2012
1 parent fc9ae8d commit c277b50
Show file tree
Hide file tree
Showing 24 changed files with 4 additions and 331 deletions.
11 changes: 0 additions & 11 deletions grade/grading/form/rubric/rubriceditor.php
Expand Up @@ -42,17 +42,6 @@ function MoodleQuickForm_rubriceditor($elementName=null, $elementLabel=null, $at
parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
}

/**
* set html for help button
*
* @access public
* @param array $help array of arguments to make a help button
* @param string $function function name to call to get html
*/
public function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/advcheckbox.php
Expand Up @@ -84,19 +84,6 @@ function MoodleQuickForm_advcheckbox($elementName=null, $elementLabel=null, $tex
parent::HTML_QuickForm_advcheckbox($elementName, $elementLabel, $text, $attributes, $values);
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function (optional)function name get help html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/button.php
Expand Up @@ -54,19 +54,6 @@ function MoodleQuickForm_button($elementName=null, $value=null, $attributes=null
parent::HTML_QuickForm_button($elementName, $value, $attributes);
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/checkbox.php
Expand Up @@ -56,19 +56,6 @@ function MoodleQuickForm_checkbox($elementName=null, $elementLabel=null, $text='
parent::HTML_QuickForm_checkbox($elementName, $elementLabel, $text, $attributes);
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
3 changes: 2 additions & 1 deletion lib/form/editor.php
Expand Up @@ -208,10 +208,11 @@ function isRequired() {
* @param mixed $_helpbuttonargs arguments to create help button
* @param string $function name of the callback function
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @todo MDL-34508 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($_helpbuttonargs, $function='_helpbutton') {
debugging('setHelpButton() is deprecated, please use $mform->addHelpButton() instead');
if (!is_array($_helpbuttonargs)) {
$_helpbuttonargs = array($_helpbuttonargs);
} else {
Expand Down
13 changes: 0 additions & 13 deletions lib/form/filemanager.php
Expand Up @@ -169,19 +169,6 @@ function setMaxfiles($num) {
$this->_options['maxfiles'] = $num;
}

/**
* Sets help button for filemanager
*
* @param mixed $helpbuttonargs arguments to create help button
* @param string $function name of the callback function
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* Returns html for help button.
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/filepicker.php
Expand Up @@ -84,19 +84,6 @@ function MoodleQuickForm_filepicker($elementName=null, $elementLabel=null, $attr
parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
}

/**
* Sets help button for filepicker
*
* @param mixed $helpbuttonargs arguments to create help button
* @param string $function name of the callback function
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton') {
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* Returns html for help button.
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/grading.php
Expand Up @@ -89,19 +89,6 @@ public function toHtml(){
return $this->get_gradinginstance()->render_grading_element($PAGE, $this);
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
public function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/group.php
Expand Up @@ -57,19 +57,6 @@ function MoodleQuickForm_group($elementName=null, $elementLabel=null, $elements=
/** @var string template type, would cause problems with client side validation so will leave for now */
//var $_elementTemplateType='fieldset';

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* set html for help button
*/
Expand Down
13 changes: 0 additions & 13 deletions lib/form/header.php
Expand Up @@ -63,19 +63,6 @@ function accept(&$renderer, $required=false, $error=null)
$renderer->renderHeader($this);
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
4 changes: 2 additions & 2 deletions lib/form/hidden.php
Expand Up @@ -59,11 +59,11 @@ function MoodleQuickForm_hidden($elementName=null, $value='', $attributes=null)
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @todo MDL-34508 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){

debugging('setHelpButton() is deprecated, please use $mform->addHelpButton() instead');
}

/**
Expand Down
13 changes: 0 additions & 13 deletions lib/form/htmleditor.php
Expand Up @@ -85,19 +85,6 @@ function MoodleQuickForm_htmleditor($elementName=null, $elementLabel=null, $opti
editors_head_setup();
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* Returns the input field in HTML
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/password.php
Expand Up @@ -68,19 +68,6 @@ function MoodleQuickForm_password($elementName=null, $elementLabel=null, $attrib
parent::HTML_QuickForm_password($elementName, $elementLabel, $attributes);
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/radio.php
Expand Up @@ -55,19 +55,6 @@ function MoodleQuickForm_radio($elementName=null, $elementLabel=null, $text=null
parent::HTML_QuickForm_radio($elementName, $elementLabel, $text, $value, $attributes);
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/recaptcha.php
Expand Up @@ -110,19 +110,6 @@ function toHtml() {
return $html . recaptcha_get_html($CFG->recaptchapublickey, $error, $this->_https);
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/select.php
Expand Up @@ -80,19 +80,6 @@ function toHtml(){
}
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/selectgroups.php
Expand Up @@ -474,19 +474,6 @@ function setHiddenLabel($hiddenLabel){
$this->_hiddenLabel = $hiddenLabel;
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/selectwithlink.php
Expand Up @@ -119,19 +119,6 @@ function toHtml(){
return $retval;
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/static.php
Expand Up @@ -55,19 +55,6 @@ function MoodleQuickForm_static($elementName=null, $elementLabel=null, $text=nul
parent::HTML_QuickForm_static($elementName, $elementLabel, $text);
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down
13 changes: 0 additions & 13 deletions lib/form/text.php
Expand Up @@ -79,19 +79,6 @@ function toHtml(){
}
}

/**
* set html for help button
*
* @param array $helpbuttonargs array of arguments to make a help button
* @param string $function function name to call to get html
* @deprecated since Moodle 2.0. Please do not call this function any more.
* @todo MDL-31047 this api will be removed.
* @see MoodleQuickForm::setHelpButton()
*/
function setHelpButton($helpbuttonargs, $function='helpbutton'){
debugging('component setHelpButton() is not used any more, please use $mform->setHelpButton() instead');
}

/**
* get html for help button
*
Expand Down

0 comments on commit c277b50

Please sign in to comment.