コード例 #1
0
 /**
  * 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);
     }
 }
コード例 #2
0
ファイル: url.php プロジェクト: JP-Git/moodle
 /**
  * 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);
 }
コード例 #3
0
 function MoodleQuickForm_username($elementName = null, $elementLabel = null, $attributes = null)
 {
     HTML_QuickForm_text::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
     $this->_persistantFreeze = true;
     $this->setType('user');
 }
コード例 #4
0
ファイル: text.php プロジェクト: vuchannguyen/web
 function MoodleQuickForm_text($elementName = null, $elementLabel = null, $attributes = null)
 {
     parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
 }
コード例 #5
0
 public function MoodleQuickForm_tccolourpopup($elementname = null, $elementlabel = null, $attributes = null, $options = null)
 {
     parent::HTML_QuickForm_text($elementname, $elementlabel, $attributes);
 }
コード例 #6
0
 function MoodleQuickForm_tccolourpopup($elementName = null, $elementLabel = null, $attributes = null, $options = null)
 {
     global $CFG;
     parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
 }
コード例 #7
0
 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));
 }
コード例 #8
0
 /**
  * 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);
 }
コード例 #9
0
 public function MoodleQuickForm_gfcolourpopup($elementName = null, $elementLabel = null, $attributes = null, $options = null)
 {
     parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
     $this->_type = 'colourtext';
 }