PHP Класс YiiWheels

Автор: Antonio Ramirez ([email protected])
Наследование: extends CApplicationComponent
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$assetsCss array of style library names to be registered when initializing the library.
$assetsJs array of javascript library names to be registered when initializing the library.
$htmlOptions the HTML options for the view container tag.

Защищенные свойства (Protected)

Свойство Тип Описание
$_api TbApi
$_assetsUrl holds the published assets

Открытые методы

Метод Описание
getApi ( ) : TbApi Returns the core library (yiistrap) component
getAssetsUrl ( ) : string Returns the assets URL.
init ( ) Widget's initialization
registerAssetCss ( string $cssFile, string $media = '' ) Registers a specific css in the asset's css folder
registerAssetJs ( string $jsFile, integer $position = CClientScript::POS_END ) Register a specific js file in the asset's js folder

Описание методов

getApi() публичный Метод

Returns the core library (yiistrap) component
public getApi ( ) : TbApi
Результат TbApi

getAssetsUrl() публичный Метод

Assets folder has few orphan and very useful utility libraries.
public getAssetsUrl ( ) : string
Результат string

init() публичный Метод

Widget's initialization
public init ( )

registerAssetCss() публичный Метод

Registers a specific css in the asset's css folder
public registerAssetCss ( string $cssFile, string $media = '' )
$cssFile string the css file name to register
$media string the media that the CSS file should be applied to. If empty, it means all media types.

registerAssetJs() публичный Метод

Register a specific js file in the asset's js folder
См. также: CClientScript::registerScriptFile
public registerAssetJs ( string $jsFile, integer $position = CClientScript::POS_END )
$jsFile string
$position integer the position of the JavaScript code.

Описание свойств

$_api защищенное свойство

protected TbApi $_api
Результат TbApi

$_assetsUrl защищенное свойство

holds the published assets
protected $_assetsUrl

$assetsCss публичное свойство

of style library names to be registered when initializing the library.
public array $assetsCss
Результат array

$assetsJs публичное свойство

of javascript library names to be registered when initializing the library.
public array $assetsJs
Результат array

$htmlOptions публичное свойство

the HTML options for the view container tag.
public $htmlOptions