本文整理汇总了PHP中HTML_QuickForm_text::HTML_QuickForm_text方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML_QuickForm_text::HTML_QuickForm_text方法的具体用法?PHP HTML_QuickForm_text::HTML_QuickForm_text怎么用?PHP HTML_QuickForm_text::HTML_QuickForm_text使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTML_QuickForm_text
的用法示例。
在下文中一共展示了HTML_QuickForm_text::HTML_QuickForm_text方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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: foreach
/**
* 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: MoodleQuickForm_username
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:
function MoodleQuickForm_text($elementName = null, $elementLabel = null, $attributes = null)
{
parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
}
示例5: MoodleQuickForm_tccolourpopup
public function MoodleQuickForm_tccolourpopup($elementname = null, $elementlabel = null, $attributes = null, $options = null)
{
parent::HTML_QuickForm_text($elementname, $elementlabel, $attributes);
}
示例6:
function MoodleQuickForm_tccolourpopup($elementName = null, $elementLabel = null, $attributes = null, $options = null)
{
global $CFG;
parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
}
示例7:
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:
/**
* 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: MoodleQuickForm_gfcolourpopup
public function MoodleQuickForm_gfcolourpopup($elementName = null, $elementLabel = null, $attributes = null, $options = null)
{
parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
$this->_type = 'colourtext';
}