/** * 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'); }
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."); } }