當前位置: 首頁>>代碼示例>>PHP>>正文


PHP HTML_QuickForm_input::HTML_QuickForm_input方法代碼示例

本文整理匯總了PHP中HTML_QuickForm_input::HTML_QuickForm_input方法的典型用法代碼示例。如果您正苦於以下問題:PHP HTML_QuickForm_input::HTML_QuickForm_input方法的具體用法?PHP HTML_QuickForm_input::HTML_QuickForm_input怎麽用?PHP HTML_QuickForm_input::HTML_QuickForm_input使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在HTML_QuickForm_input的用法示例。


在下文中一共展示了HTML_QuickForm_input::HTML_QuickForm_input方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: HTML_QuickForm_datepicker

 function HTML_QuickForm_datepicker($elementName = null, $elementLabel = null, $attributes = null)
 {
     HTML_QuickForm_input::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_persistantFreeze = true;
     $this->setType('datepicker');
     //		$this->updateAttributes(array('readonly'=>1));
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:7,代碼來源:datepicker.php

示例2: HTML_QuickForm_button

 /**
  * Class constructor
  * 
  * @param     string    $elementName    (optional)Input field name attribute
  * @param     string    $value          (optional)Input field value
  * @param     mixed     $attributes     (optional)Either a typical HTML attribute string 
  *                                      or an associative array
  * @since     1.0
  * @access    public
  * @return    void
  */
 function HTML_QuickForm_button($elementName = null, $value = null, $attributes = null)
 {
     HTML_QuickForm_input::HTML_QuickForm_input($elementName, null, $attributes);
     $this->_persistantFreeze = false;
     $this->setValue($value);
     $this->setType('button');
 }
開發者ID:BackupTheBerlios,項目名稱:wikiplug,代碼行數:18,代碼來源:button.php

示例3: HTML_QuickForm_CAPTCHA

 /**
  * Class constructor
  *
  * @param      string    Name
  * @param      mixed     Label for the CAPTCHA
  * @param      array     Options for the Text_CAPTCHA package
  * <ul>
  *  <li>'sessionVar'   (string)  name of session variable containing
  *                               the Text_CAPTCHA instance (defaults to
  *                               _HTML_QuickForm_CAPTCHA.)</li>
  *  <li>Other options depend on the driver used</li>
  * </ul>
  * @param      mixed     HTML Attributes for the <a> tag surrounding the
  *                       image. Can be a string or array.
  * @access     public
  */
 function HTML_QuickForm_CAPTCHA($elementName = null, $elementLabel = null, $options = null, $attributes = null)
 {
     HTML_QuickForm_input::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->setType('CAPTCHA_' . $this->_CAPTCHA_driver);
     if (is_array($options)) {
         $this->_options = array_merge($this->_options, $options);
     }
 }
開發者ID:nonfiction,項目名稱:nterchange_pear,代碼行數:24,代碼來源:CAPTCHA.php

示例4: HTML_QuickForm_currency

 function HTML_QuickForm_currency($elementName = null, $elementLabel = null, $filterCurrencies = array(), $attributes = null)
 {
     HTML_QuickForm_input::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_persistantFreeze = true;
     $this->setType('text');
     $this->currency = Base_User_SettingsCommon::get('Utils_CurrencyField', 'default_currency');
     $this->filterCurrencies = is_array($filterCurrencies) ? $filterCurrencies : array();
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:8,代碼來源:currency.php

示例5:

 /**
  * <code>
  * $form->addElement('textarea_counter', 'message', 'Message',
  *   array('cols'=>60, 'rows'=>10), 160);
  * </code>
  */
 function MoodleQuickForm_recaptcha($elementName = null, $elementLabel = null, $attributes = null)
 {
     parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_type = 'recaptcha';
     if (!empty($attributes['https'])) {
         $this->_https = $attributes['https'];
     }
 }
開發者ID:JackCanada,項目名稱:moodle-hacks,代碼行數:14,代碼來源:recaptcha.php

示例6: HTML_QuickForm_checkbox

 /**
  * Class constructor
  * 
  * @param     string    $elementName    (optional)Input field name attribute
  * @param     string    $elementLabel   (optional)Input field value
  * @param     string    $text           (optional)Checkbox display text
  * @param     mixed     $attributes     (optional)Either a typical HTML attribute string 
  *                                      or an associative array
  * @since     1.0
  * @access    public
  * @return    void
  */
 function HTML_QuickForm_checkbox($elementName = null, $elementLabel = null, $text = '', $attributes = null)
 {
     HTML_QuickForm_input::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_persistantFreeze = true;
     $this->_text = $text;
     $this->setType('checkbox');
     $this->updateAttributes(array('value' => 1));
 }
開發者ID:alanaipe2015,項目名稱:moodle,代碼行數:20,代碼來源:checkbox.php

示例7: HTML_QuickForm_autocomplete

 /**
  * Class constructor
  * 
  * @param string    $elementName    (optional)Input field name attribute
  * @param string    $elementLabel   (optional)Input field label
  * @param mixed 	$callback		(optional)Method callback that will be used to populate table
  * @param mixed     $attributes     (optional)Either a typical HTML attribute string 
  *                                      or an associative array
  * @return void
  */
 function HTML_QuickForm_autocomplete($elementName = null, $elementLabel = null, $callback = null, $args = null, $attributes = null)
 {
     HTML_QuickForm_input::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->callback = $callback;
     if (!$args || !is_array($args)) {
         $args = array();
     }
     $this->args = $args;
     $this->_persistantFreeze = true;
     $this->setType('text');
 }
開發者ID:cretzu89,項目名稱:EPESI,代碼行數:21,代碼來源:autocomplete.php

示例8:

 /**
  * <code>
  * $form->addElement('textarea_counter', 'message', 'Message',
  *   array('cols'=>60, 'rows'=>10), 160);
  * </code>
  */
 function MoodleQuickForm_recaptcha($elementName = null, $elementLabel = null, $attributes = null)
 {
     global $CFG;
     parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_type = 'recaptcha';
     if (!empty($attributes['https']) or strpos($CFG->httpswwwroot, 'https:') === 0) {
         $this->_https = true;
     } else {
         $this->_https = false;
     }
 }
開發者ID:edwinphillips,項目名稱:moodle-485cb39,代碼行數:17,代碼來源:recaptcha.php

示例9:

 /**
  * constructor
  *
  * @param string $elementName (optional) name of the recaptcha element
  * @param string $elementLabel (optional) label for recaptcha element
  * @param mixed $attributes (optional) Either a typical HTML attribute string
  *              or an associative array
  */
 function MoodleQuickForm_recaptcha($elementName = null, $elementLabel = null, $attributes = null)
 {
     global $CFG;
     parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_type = 'recaptcha';
     if (is_https()) {
         $this->_https = true;
     } else {
         $this->_https = false;
     }
 }
開發者ID:alanaipe2015,項目名稱:moodle,代碼行數:19,代碼來源:recaptcha.php

示例10: HTML_QuickForm_text

 /**
  * Class constructor
  *
  * @param     string    $elementName    (optional)Input field name attribute
  * @param     string    $elementLabel   (optional)Input field label
  * @param     mixed     $attributes     (optional)Either a typical HTML attribute string
  *                                      or an associative array
  * @since     1.0
  * @access    public
  * @return    void
  */
 function HTML_QuickForm_text($elementName = null, $elementLabel = null, $attributes = null)
 {
     if (isset($attributes) && is_array($attributes) && !empty($attributes['class'])) {
         $attributes['class'] .= $attributes['class'] . ' form-control';
     } else {
         if (empty($attributes['class'])) {
             $attributes = array('class' => 'form-control');
         }
     }
     HTML_QuickForm_input::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_persistantFreeze = true;
     $this->setType('text');
 }
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:24,代碼來源:text.php

示例11: foreach

    function MoodleQuickForm_filepicker($elementName=null, $elementLabel=null, $attributes=null, $options=null) {
        global $CFG;

        $options = (array)$options;
        foreach ($options as $name=>$value) {
            if (array_key_exists($name, $this->_options)) {
                $this->_options[$name] = $value;
            }
        }
        if (!empty($options['maxbytes'])) {
            $this->_options['maxbytes'] = get_max_upload_file_size($CFG->maxbytes, $options['maxbytes']);
        }
        parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
    }
開發者ID:nottmoo,項目名稱:moodle,代碼行數:14,代碼來源:filepicker.php

示例12: array

 /**
  * Constructor.
  *
  * @param string $elementName (optional) name of the listing.
  * @param string $elementLabel (optional) listing label.
  * @param array $attributes (optional) Either a typical HTML attribute string or an associative array.
  * @param array $options set of options to initalize listing.
  */
 function MoodleQuickForm_listing($elementName = null, $elementLabel = null, $attributes = null, $options = array())
 {
     $this->_type = 'listing';
     if (!empty($options['items'])) {
         $this->items = $options['items'];
     }
     if (!empty($options['showall'])) {
         $this->showall = $options['showall'];
     } else {
         $this->showall = get_string('showall');
     }
     if (!empty($options['hideall'])) {
         $this->hideall = $options['hideall'];
     } else {
         $this->hideall = get_string('hide');
     }
     parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
 }
開發者ID:pzhu2004,項目名稱:moodle,代碼行數:26,代碼來源:listing.php

示例13: HTML_QuickForm_checkbox

 /**
  * Class constructor
  * 
  * @param     string    $elementName    (optional)Input field name attribute
  * @param     string    $elementLabel   (optional)Input field value
  * @param     string    $text           (optional)Checkbox display text
  * @param     mixed     $attributes     (optional)Either a typical HTML attribute string 
  *                                      or an associative array
  * @since     1.0
  * @access    public
  * @return    void
  */
 function HTML_QuickForm_checkbox($elementName = null, $elementLabel = null, $text = '', $attributes = null)
 {
     //hack to add 'id' for checkbox
     if (!$attributes) {
         $attributes = array('id' => $elementName);
     } else {
         // set element id only if its not set
         if (!isset($attributes['id'])) {
             $attributes['id'] = $elementName;
         }
     }
     HTML_QuickForm_input::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
     $this->_persistantFreeze = true;
     $this->_text = $text;
     $this->setType('checkbox');
     $this->updateAttributes(array('value' => 1));
     $this->_generateId();
 }
開發者ID:peteainsworth,項目名稱:civicrm-4.2.9-drupal,代碼行數:30,代碼來源:checkbox.php

示例14: foreach

 /**
  * Constructor
  *
  * @param string $elementName (optional) name of the filepicker
  * @param string $elementLabel (optional) filepicker label
  * @param array $attributes (optional) Either a typical HTML attribute string
  *              or an associative array
  * @param array $options set of options to initalize filepicker
  */
 function MoodleQuickForm_filepicker($elementName = null, $elementLabel = null, $attributes = null, $options = null)
 {
     global $CFG, $PAGE;
     $options = (array) $options;
     foreach ($options as $name => $value) {
         if (array_key_exists($name, $this->_options)) {
             $this->_options[$name] = $value;
         }
     }
     if (empty($options['return_types'])) {
         $this->_options['return_types'] = FILE_INTERNAL;
     }
     $fpmaxbytes = 0;
     if (!empty($options['maxbytes'])) {
         $fpmaxbytes = $options['maxbytes'];
     }
     $coursemaxbytes = 0;
     if (!empty($PAGE->course->maxbytes)) {
         $coursemaxbytes = $PAGE->course->maxbytes;
     }
     $this->_options['maxbytes'] = get_user_max_upload_file_size($PAGE->context, $CFG->maxbytes, $coursemaxbytes, $fpmaxbytes);
     $this->_type = 'filepicker';
     parent::HTML_QuickForm_input($elementName, $elementLabel, $attributes);
 }
開發者ID:janaece,項目名稱:globalclassroom4_clean,代碼行數:33,代碼來源:filepicker.php

示例15: HTML_QuickForm_hidden

 /**
  * Class constructor
  *
  * @param string $elementName (optional)Input field name attribute
  * @param string $value       (optional)Input field value
  * @param mixed  $attributes  (optional)Either a typical HTML attribute string
  *                                      or an associative array
  * @since     1.0
  * @access    public
  * @return void
  */
 public function HTML_QuickForm_hidden($elementName = null, $value = '', $attributes = null)
 {
     HTML_QuickForm_input::HTML_QuickForm_input($elementName, null, $attributes);
     $this->setType('hidden');
     $this->setValue($value);
 }
開發者ID:YesWiki,項目名稱:yeswiki-sandstorm,代碼行數:17,代碼來源:hidden.php


注:本文中的HTML_QuickForm_input::HTML_QuickForm_input方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。