#52 Simplified colourpicker form element's code
This commit is contained in:
parent
77d05865d7
commit
831996de4b
1 changed files with 0 additions and 18 deletions
|
@ -17,7 +17,6 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
require_once($CFG->dirroot . '/lib/form/editor.php');
|
require_once($CFG->dirroot . '/lib/form/editor.php');
|
||||||
require_once($CFG->dirroot . '/lib/form/templatable_form_element.php');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Form element for handling the colour picker.
|
* Form element for handling the colour picker.
|
||||||
|
@ -27,14 +26,6 @@ require_once($CFG->dirroot . '/lib/form/templatable_form_element.php');
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
class MoodleQuickForm_customcert_colourpicker extends MoodleQuickForm_editor {
|
class MoodleQuickForm_customcert_colourpicker extends MoodleQuickForm_editor {
|
||||||
use templatable_form_element {
|
|
||||||
export_for_template as export_for_template_base;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The string for the help icon, if empty then no help icon will be displayed.
|
|
||||||
*/
|
|
||||||
public $_helpbutton = '';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for the colour picker.
|
* Constructor for the colour picker.
|
||||||
|
@ -92,15 +83,6 @@ class MoodleQuickForm_customcert_colourpicker extends MoodleQuickForm_editor {
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the html for the help button.
|
|
||||||
*
|
|
||||||
* @return string html for help button
|
|
||||||
*/
|
|
||||||
public function getHelpButton(){
|
|
||||||
return $this->_helpbutton;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function export_for_template(renderer_base $output) {
|
public function export_for_template(renderer_base $output) {
|
||||||
$context = $this->export_for_template_base($output);
|
$context = $this->export_for_template_base($output);
|
||||||
$context['html'] = $this->toHtml();
|
$context['html'] = $this->toHtml();
|
||||||
|
|
Loading…
Reference in a new issue