当前位置: 首页>>代码示例>>PHP>>正文


PHP Config::isHtmlInput方法代码示例

本文整理汇总了PHP中kartik\base\Config::isHtmlInput方法的典型用法代码示例。如果您正苦于以下问题:PHP Config::isHtmlInput方法的具体用法?PHP Config::isHtmlInput怎么用?PHP Config::isHtmlInput使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kartik\base\Config的用法示例。


在下文中一共展示了Config::isHtmlInput方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderFormFields

 /**
  * Renders the editable form fields
  *
  * @return string
  */
 protected function renderFormFields()
 {
     echo $this->parseTemplate('templateBefore');
     echo Html::hiddenInput('hasEditable', 0) . "\n";
     $before = $this->beforeInput;
     $after = $this->afterInput;
     if ($before !== null && is_string($before) || is_callable($before)) {
         echo (is_callable($before) ? call_user_func($before, $this->_form, $this) : $before) . "\n";
     }
     if ($this->inputType === self::INPUT_HTML5_INPUT) {
         echo $this->renderHtml5Input() . "\n";
     } elseif ($this->inputType === self::INPUT_WIDGET) {
         echo $this->renderWidget($this->widgetClass) . "\n";
     } elseif (Config::isHtmlInput($this->inputType)) {
         echo $this->renderInput() . "\n";
     } elseif (Config::isInputWidget($this->inputType)) {
         echo $this->renderWidget($this->inputType) . "\n";
     }
     if ($after !== null && is_string($after) || is_callable($after)) {
         echo (is_callable($after) ? call_user_func($after, $this->_form, $this) : $after) . "\n";
     }
     echo $this->parseTemplate('templateAfter');
 }
开发者ID:kartik-v,项目名称:yii2-editable,代码行数:28,代码来源:Editable.php

示例2: renderFormFields

 /**
  * Renders the editable form fields
  *
  * @return string
  */
 protected function renderFormFields()
 {
     echo $this->parseTemplate('templateBefore');
     echo Html::hiddenInput('hasEditable', 0) . "\n";
     if ($this->beforeInput !== null) {
         if (is_string($this->beforeInput)) {
             echo $this->beforeInput . "\n";
         } else {
             echo call_user_func($this->beforeInput, $this->_form, $this) . "\n";
         }
     }
     if ($this->inputType === self::INPUT_HTML5_INPUT) {
         echo $this->renderHtml5Input() . "\n";
     } elseif ($this->inputType === self::INPUT_WIDGET) {
         echo $this->renderWidget($this->widgetClass) . "\n";
     } elseif (Config::isHtmlInput($this->inputType)) {
         echo $this->renderInput() . "\n";
     } elseif (Config::isInputWidget($this->inputType)) {
         echo $this->renderWidget($this->inputType) . "\n";
     }
     if ($this->afterInput !== null) {
         if (is_string($this->afterInput)) {
             echo $this->afterInput . "\n";
         } else {
             echo call_user_func($this->afterInput, $this->_form, $this) . "\n";
         }
     }
     echo $this->parseTemplate('templateAfter');
 }
开发者ID:cindyming,项目名称:yii-advance,代码行数:34,代码来源:Editable.php

示例3: renderFormFields

 /**
  * Renders the editable form fields
  *
  * @return string
  */
 protected function renderFormFields()
 {
     $out = Html::hiddenInput('hasEditable', 0) . "\n";
     if ($this->beforeInput !== null) {
         if (is_string($this->beforeInput)) {
             $out .= $this->beforeInput . "\n";
         } else {
             $out .= call_user_func($this->beforeInput, $this->_form, $this) . "\n";
         }
     }
     if ($this->inputType === self::INPUT_HTML5_INPUT) {
         $out .= $this->renderHtml5Input() . "\n";
     } elseif ($this->inputType === self::INPUT_WIDGET) {
         $out .= $this->renderWidget($this->widgetClass) . "\n";
     } elseif (Config::isHtmlInput($this->inputType)) {
         $out .= $this->renderInput() . "\n";
     } elseif (Config::isInputWidget($this->inputType)) {
         $out .= $this->renderWidget($this->inputType) . "\n";
     }
     if ($this->afterInput !== null) {
         if (is_string($this->afterInput)) {
             $out .= $this->afterInput . "\n";
         } else {
             $out .= call_user_func($this->afterInput, $this->_form, $this) . "\n";
         }
     }
     return $out;
 }
开发者ID:jplagahit,项目名称:brdsdev,代码行数:33,代码来源:Editable.php


注:本文中的kartik\base\Config::isHtmlInput方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。