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


PHP HTML_QuickForm_text::__construct方法代碼示例

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


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

示例1: __construct

 /**
  * Class constructor
  *
  * @param     string    $elementName    (optional)Input field name attribute
  * @param     string    $elementLabel   (optional)Input field label in form
  * @param     array     $options        (optional)Autocomplete options
  * @param     mixed     $attributes     (optional)Either a typical HTML attribute string
  *                                      or an associative array. Date format is passed along the attributes.
  * @access    public
  * @return    void
  */
 public function __construct($elementName = null, $elementLabel = null, $options = null, $attributes = null)
 {
     parent::__construct($elementName, $elementLabel, $attributes);
     $this->_persistantFreeze = true;
     $this->_type = 'autocomplete';
     if (isset($options)) {
         $this->setOptions($options);
     }
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:20,代碼來源:autocomplete.php

示例2: __construct

 /**
  * Constructor
  */
 public function __construct($elementName = null, $elementLabel = null, $attributes = null)
 {
     if (!isset($attributes['id'])) {
         $attributes['id'] = $elementName;
     }
     $attributes['class'] = 'form-control';
     parent::__construct($elementName, $elementLabel, $attributes);
     $this->_appendName = true;
     $this->_type = 'date_range_picker';
 }
開發者ID:feroli1000,項目名稱:chamilo-lms,代碼行數:13,代碼來源:DateRangePicker.php

示例3: __construct

 /**
  * Constructor of Url class
  * @param type $elementName
  * @param type $elementLabel
  * @param type $attributes
  */
 public function __construct($elementName = null, $elementLabel = null, $attributes = null)
 {
     if (!isset($attributes['id'])) {
         $attributes['id'] = $elementName;
     }
     $attributes['type'] = 'url';
     $attributes['class'] = 'form-control';
     parent::__construct($elementName, $elementLabel, $attributes);
     $this->setType('url');
 }
開發者ID:jloguercio,項目名稱:chamilo-lms,代碼行數:16,代碼來源:Url.php

示例4: __construct

 /**
  * 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.
  */
 public function __construct($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::__construct($elementName, $elementLabel, $attributes);
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:21,代碼來源:url.php

示例5: __construct

 /**
  * constructor
  *
  * @param string $elementName (optional) name of the text field
  * @param string $elementLabel (optional) text field label
  * @param string $attributes (optional) Either a typical HTML attribute string or an associative array
  */
 public function __construct($elementName = null, $elementLabel = null, $attributes = null)
 {
     parent::__construct($elementName, $elementLabel, $attributes);
 }
開發者ID:anawu2006,項目名稱:PeerLearning,代碼行數:11,代碼來源:text.php

示例6: __construct

 /**
  * 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
  * @throws
  */
 public function __construct($elementName = null, $elementLabel = null, $attributes = null)
 {
     $attributes['class'] = isset($attributes['class']) ? $attributes['class'] : 'form-control';
     parent::__construct($elementName, $elementLabel, $attributes);
     $this->setType('password');
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:16,代碼來源:password.php

示例7: MoodleQuickForm_tccolourpopup

 public function MoodleQuickForm_tccolourpopup($elementname = null, $elementlabel = null, $attributes = null, $options = null)
 {
     parent::__construct($elementname, $elementlabel, $attributes);
     $this->_type = 'colourtext';
 }
開發者ID:unikent,項目名稱:moodle-format_topcoll,代碼行數:5,代碼來源:tc_colourpopup.php


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