Метод |
Описание |
|
__construct ( array $uses = [] ) |
Creates new instance |
|
addUses ( array $args ) |
Adds namespaces and aliases from constructor |
|
beginWidget ( string $widget, array $config = [] ) : mixed |
Function for *_begin syntax support |
|
call ( string $className, string $method, array $arguments = null ) : mixed |
Calls a method |
|
endWidget ( string $widget = null ) |
Function for *_end syntax support |
|
getFunctions ( ) |
|
|
getName ( ) |
|
|
getNodeVisitors ( ) |
|
|
path ( string $path, array $args = [] ) : string |
Generates relative URL |
|
registerAsset ( array $context, string $asset ) : mixed |
Function for registering an asset |
|
registerAssetBundle ( array $context, string $bundle, boolean $return = false ) : void | AssetBundle |
Function for additional syntax of registering asset bundles |
|
resolveAndCall ( string $className, string $method, array $arguments = null ) : mixed |
Resolves a method from widget and asset syntax and calls it |
|
resolveClassName ( string $className ) : string |
Resolves class name from widget and asset syntax |
|
setProperty ( stdClass $object, string $property, mixed $value ) |
Sets object property |
|
url ( string $path, array $args = [] ) : string |
Generates absolute URL |
|
viewHelper ( array $context, string $name = null ) |
Used for 'begin_page', 'end_page', 'begin_body', 'end_body', 'head' |
|
widget ( string $widget, array $config = [] ) : mixed |
Function for *_widget syntax support |
|