. /** * editor format form element * * Contains HTML class for a editor format drop down element * * @package core_form * @copyright 2007 Jamie Pratt * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ global $CFG; require_once "$CFG->libdir/form/select.php"; /** * editor format form element * * HTML class for a editor format drop down element * * @package core_form * @copyright 2007 Jamie Pratt * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @deprecated since Moodle 2.0 Please do not use this form element. * @todo MDL-31294, remove this element * @see MoodleQuickForm_editor */ class MoodleQuickForm_format extends MoodleQuickForm_select{ /** * Class constructor * * @param string $elementName Select name attribute * @param mixed $elementLabel Label(s) for the select * @param mixed $attributes Either a typical HTML attribute string or an associative array * @param mixed $useHtmlEditor Either a string returned from can_use_html_editor() or false for no html editor * default 'detect' tells element to use html editor if it is available. */ function MoodleQuickForm_format($elementName=null, $elementLabel=null, $attributes=null, $useHtmlEditor=null) { throw new coding_exception('MFORMS: Coding error, text formats are handled only by new editor element.'); } //end constructor }