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


PHP HTML_QuickForm_input::toHtml方法代碼示例

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


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

示例1: toHtml

 /**
  * Returns the checkbox element in HTML
  *
  * @since     1.0
  * @access    public
  * @return    string
  */
 function toHtml()
 {
     if (0 == strlen($this->_text)) {
         $label = '';
     } elseif ($this->_flagFrozen) {
         // チェックの時のみラベルを表示
         $label = $this->getChecked() ? $this->_text : '';
     } else {
         $label = '<label for="' . $this->getAttribute('id') . '">' . $this->_text . '</label>';
     }
     return HTML_QuickForm_input::toHtml() . $label;
 }
開發者ID:ryo88c,項目名稱:BEAR.Saturday,代碼行數:19,代碼來源:bcheckbox.php

示例2: toHtml

 function toHtml()
 {
     if ($this->isFrozen()) {
         return $this->getFrozenHtml();
     } else {
         return parent::toHtml();
     }
 }
開發者ID:minger11,項目名稱:Pipeline,代碼行數:8,代碼來源:file.php

示例3: toHtml

 /**
  * Returns the radio element in HTML
  *
  * @since     1.0
  * @access    public
  * @return string
  */
 public function toHtml()
 {
     if (0 == strlen($this->_text)) {
         $label = '';
     } elseif ($this->_flagFrozen) {
         $label = $this->_text;
     } else {
         $label = '<label for="' . $this->getAttribute('id') . '">' . $this->_text . '</label>';
     }
     return HTML_QuickForm_input::toHtml() . $label;
 }
開發者ID:YesWiki,項目名稱:yeswiki-sandstorm,代碼行數:18,代碼來源:radio.php

示例4: toHtml

 /**
  * Returns the checkbox element in HTML
  * 
  * @since     1.0
  * @access    public
  * @return    string
  */
 function toHtml()
 {
     $this->_generateId();
     // Seems to be necessary when this is used in a group.
     if (0 == strlen($this->_text)) {
         $label = '';
     } elseif ($this->_flagFrozen) {
         $label = $this->_text;
     } else {
         $label = '<label for="' . $this->getAttribute('id') . '">' . $this->_text . '</label>';
     }
     return HTML_QuickForm_input::toHtml() . $label;
 }
開發者ID:alanaipe2015,項目名稱:moodle,代碼行數:20,代碼來源:checkbox.php

示例5: toHtml

 /**
  * Returns the checkbox element in HTML
  * 
  * @since     1.0
  * @access    public
  * @return    string
  */
 function toHtml()
 {
     $attributes = $this->getAttributes();
     if (0 == strlen($this->_text)) {
         $label = '';
     } elseif ($this->_flagFrozen || isset($attributes['skiplabel'])) {
         $label = $this->_text;
     } else {
         $label = '<label for="' . $this->getAttribute('id') . '">' . $this->_text . '</label>';
     }
     unset($attributes['skipLabel']);
     return HTML_QuickForm_input::toHtml() . $label;
 }
開發者ID:peteainsworth,項目名稱:civicrm-4.2.9-drupal,代碼行數:20,代碼來源:checkbox.php

示例6: toHtml

 /**
  * Returns the checkbox element in HTML
  *
  * @since     1.0
  * @access    public
  * @return    string
  */
 public function toHtml()
 {
     if (0 == strlen($this->_text)) {
         $label = '';
     } elseif ($this->_flagFrozen) {
         $label = $this->_text;
     } else {
         $label = '<div class="checkbox">
             <label ' . $this->getAttribute('label-class') . ' ">' . HTML_QuickForm_input::toHtml() . $this->_text . '</label>
             </div>
             ';
         return $label;
     }
     return HTML_QuickForm_input::toHtml() . $label;
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:22,代碼來源:checkbox.php

示例7: toHtml

 /**
  * Returns the radio element in HTML
  *
  * @since     1.0
  * @access    public
  * @return    string
  */
 public function toHtml()
 {
     if (0 == strlen($this->_text)) {
         $label = '';
     } elseif ($this->_flagFrozen) {
         $label = $this->_text;
     } else {
         $labelClass = $this->labelClass;
         $radioClass = $this->radioClass;
         $label = '<div class="' . $radioClass . '"><label class="' . $labelClass . '">' . HTML_QuickForm_input::toHtml() . $this->_text . '</label></div>';
         return $label;
     }
     return HTML_QuickForm_input::toHtml() . $label;
 }
開發者ID:jloguercio,項目名稱:chamilo-lms,代碼行數:21,代碼來源:radio.php

示例8: toHtml

 /**
  * Returns the radio element in HTML
  *
  * @since     1.0
  * @access    public
  * @return    string
  */
 function toHtml()
 {
     if (0 == strlen($this->_text)) {
         $label = '';
     } elseif ($this->_flagFrozen) {
         $label = $this->_text;
     } else {
         ///$label = '<label for="' . $this->getAttribute('id') . '">' . $this->_text . '</label>';
         $label = '<label class="radio">' .HTML_QuickForm_input::toHtml().$this->_text . '</label>';
         return  $label;
     }
     return HTML_QuickForm_input::toHtml() . $label;
 } //end func toHtml
開發者ID:annickvdp,項目名稱:Chamilo1.9.10,代碼行數:20,代碼來源:radio.php

示例9: toHtml

 function toHtml()
 {
     // The captcha must desappear in frozen state
     if ($this->_flagFrozen) {
         return '';
     }
     switch ($this->_method) {
         case 'Numbers_Words':
             require_once 'Numbers/Words.php';
             isset($this->_value) || ($this->_value = rand(1, 1000));
             $html = ucfirst(Numbers_Words::toWords($this->_value, $this->_locale));
             $html .= '&nbsp;' . parent::toHtml();
             break;
         default:
             $html = '';
     }
     HTTP_Session2::set('_HTML_QuickForm_captcha', $this->_value);
     return $html;
 }
開發者ID:BackupTheBerlios,項目名稱:tip,代碼行數:19,代碼來源:captcha.php

示例10: toHtml

 /**
  * Returns the attachment element in HTML
  *
  * @return string  The html text
  * @access public
  */
 function toHtml()
 {
     if ($this->_flagFrozen) {
         return $this->getFrozenHtml();
     } elseif ($this->_state == QF_ATTACHMENT_UPLOADED) {
         // Return the frozen html ...
         $html = $this->getFrozenHtml();
         // ... and append the html of the unload element (if any)
         if (isset($this->_unload_element)) {
             $html .= '&nbsp;' . $this->_unload_element->toHtml();
         }
         return $html;
     }
     return HTML_QuickForm_input::toHtml();
 }
開發者ID:BackupTheBerlios,項目名稱:tip,代碼行數:21,代碼來源:attachment.php


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