コード例 #1
0
 /**
  * Renders the closing tag of the field container.
  * @return string the rendering result.
  */
 public function end()
 {
     return Html::endTag(isset($this->options['tag']) ? $this->options['tag'] : 'div');
 }
コード例 #2
0
ファイル: Easyui.php プロジェクト: dextercool/yii2-easyui
 public static function endPlugin($name)
 {
     $class = get_called_class();
     if (!empty(self::$_states)) {
         list($state, $tag) = array_pop(self::$_states);
         if ($name === $state) {
             return Html::endTag($tag);
         } else {
             throw new InvalidCallException("Expecting {$class}::endPlugin({$state}), found {$class}::endPlugin({$name})");
         }
     } else {
         throw new InvalidCallException("Unexpected {$class}::endPlugin() call. A matching beginPlugin() is not found.");
     }
 }