当前位置: 首页>>代码示例>>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;未经允许,请勿转载。