base\Widget begin()

begin() public static method Begins a widget. This method creates an instance of the calling class. It will apply the configuration to the created instance. A matching end() call should be called later. As some widgets may use output buffering, the end() call should be made in the same view to avoid breaking the nesting of output buffers. See also end(). public static static begin ( $config = [] )$config array Name-value pairs that will be used to initialize the object properties return

base\Widget getId()

getId() public method Returns the ID of the widget. public string getId ( $autoGenerate = true )$autoGenerate boolean Whether to generate an ID if it is not set previously return string ID of the widget.

base\Widget $counter

$counter public static property A counter used to generate $id for widgets. public static integer $counter = 0

base\Widget $stack

$stack public static property The widgets that are currently being rendered (not ended). This property is maintained by begin() and end() methods. public static yii\base\Widget[] $stack = []

base\Widget $viewPath

$viewPath public read-only property The directory containing the view files for this widget. public string getViewPath ( )

base\Widget $id

$id public property ID of the widget. public string getId ( $autoGenerate = true )public void setId ( $value )

base\Widget $view

$view public property The view object that can be used to render views or view files. public yii\web\View getView ( )public void setView ( $view )

base\Widget $autoIdPrefix

$autoIdPrefix public static property The prefix to the automatically generated widget IDs. See also getId(). public static string $autoIdPrefix = 'w'

base\ViewRenderer render()

render() public abstract method Renders a view file. This method is invoked by yii\base\View whenever it tries to render a view. Child classes must implement this method to render the given view file. public abstract string render ( $view, $file, $params )$view yii\base\View The view object used for rendering the file. $file string The view file. $params array The parameters to be passed to the view file. return string The rendering result

base\ViewNotFoundException getName()

getName() public method public string getName ( )return string The user-friendly name of this exception