/** * Initialises form element with loaded options * @param string $elementName Element name * @param string $elementLabel Text for element's <label> tag * @param array(string => string) $attributes HTML attributes for the element * @param moodletxt_icon $icon Icon to be displayed with element * @version 2011070501 * @since 2011070501 */ public function __construct($elementName = null, $elementLabel = null, $attributes = null, moodletxt_icon $icon = null) { parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes); if ($icon != null) { $this->setIcon($icon); } }
/** * Constructor * * @param string $elementName Element name * @param mixed $elementLabel Label(s) for an element * @param mixed $attributes Either a typical HTML attribute string or an associative array. * @param array $options data which need to be posted. */ function MoodleQuickForm_url($elementName = null, $elementLabel = null, $attributes = null, $options = null) { global $CFG; require_once "{$CFG->dirroot}/repository/lib.php"; $options = (array) $options; foreach ($options as $name => $value) { $this->_options[$name] = $value; } if (!isset($this->_options['usefilepicker'])) { $this->_options['usefilepicker'] = true; } parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes); }
function MoodleQuickForm_username($elementName = null, $elementLabel = null, $attributes = null) { HTML_QuickForm_text::HTML_QuickForm_text($elementName, $elementLabel, $attributes); $this->_persistantFreeze = true; $this->setType('user'); }
function MoodleQuickForm_text($elementName = null, $elementLabel = null, $attributes = null) { parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes); }
public function MoodleQuickForm_tccolourpopup($elementname = null, $elementlabel = null, $attributes = null, $options = null) { parent::HTML_QuickForm_text($elementname, $elementlabel, $attributes); }
function MoodleQuickForm_tccolourpopup($elementName = null, $elementLabel = null, $attributes = null, $options = null) { global $CFG; parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes); }
function HTML_QuickForm_yui_autocomplete($elementName = null, $elementLabel = null, $attributes = null, $properties = null) { parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes); $this->updateAttributes(array('df:cloneable' => 1, 'onfocus' => 'buildYUIAutocomplete(this)', 'onblur' => 'updateYUIVocabulary(this)', 'autocomplete' => 'Off', 'id' => $elementName)); }
/** * Constructor for the colour picker. * * @param string $elementName * @param string $elementLabel * @param array $attributes */ function MoodleQuickForm_customcert_colourpicker($elementName = null, $elementLabel = null, $attributes = null) { parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes); }
public function MoodleQuickForm_gfcolourpopup($elementName = null, $elementLabel = null, $attributes = null, $options = null) { parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes); $this->_type = 'colourtext'; }