Detailed Description
Definition at line 42 of file Booster.php.
Member Function Documentation
Booster::addOurPackagesToYii |
( |
| ) |
|
|
protected |
Booster::appendUserSuppliedPackagesToOurs |
( |
| ) |
|
|
protected |
Booster::createBootstrapCssPackage |
( |
| ) |
|
|
protected |
We use the values of $this->responsiveCss, $this->fontAwesomeCss, $this->minify and $this->enableCdn to construct the proper package definition and install and register it.
- Returns
- array
Definition at line 435 of file Booster.php.
Booster::createSelect2Package |
( |
| ) |
|
|
protected |
Booster::getAssetsUrl |
( |
| ) |
|
Returns the URL to the published assets folder.
- Returns
- string an absolute URL to the published asset
Definition at line 408 of file Booster.php.
static Booster::getBooster |
( |
| ) |
|
|
static |
- Returns
- Bootstrap
- Since
- 2.1.0
Definition at line 546 of file Booster.php.
Booster::getUniqueScriptId |
( |
| ) |
|
Generates a "somewhat" random id string.
- Returns
- string
- Since
- 1.1.0
Definition at line 508 of file Booster.php.
Returns the extension version number.
- Returns
- string the version
Definition at line 359 of file Booster.php.
Booster::includeAssets |
( |
| ) |
|
|
protected |
Initializes the component.
Definition at line 202 of file Booster.php.
Booster::isInConsoleMode |
( |
| ) |
|
|
protected |
Booster::registerAssetCss |
( |
|
$name, |
|
|
|
$media = '' |
|
) |
| |
Registers a CSS file in the asset's css folder
- Parameters
-
string | $name | the css file name to register |
string | $media | media that the CSS file should be applied to. If empty, it means all media types. |
- See Also
- CClientScript::registerCssFile
Definition at line 386 of file Booster.php.
Booster::registerAssetJs |
( |
|
$name, |
|
|
|
$position = CClientScript::POS_END |
|
) |
| |
Register a javascript file in the asset's js folder
- Parameters
-
string | $name | the js file name to register |
int | $position | the position of the JavaScript code. |
- See Also
- CClientScript::registerScriptFile
Definition at line 399 of file Booster.php.
Booster::registerBootstrapCss |
( |
| ) |
|
Booster::registerCssPackagesIfEnabled |
( |
| ) |
|
|
protected |
If we did not disabled registering CSS packages, register them.
Definition at line 284 of file Booster.php.
Booster::registerFontAwesomeCss |
( |
| ) |
|
Registers the Font Awesome CSS.
- Since
- 1.0.6
Definition at line 490 of file Booster.php.
Booster::registerJQueryCss |
( |
| ) |
|
Register the compatibility layer for jQuery UI + Twitter Bootstrap 2.3 combo
Definition at line 321 of file Booster.php.
Booster::registerJsPackagesIfEnabled |
( |
| ) |
|
|
protected |
If enableJS
is not false
, register our Javascript packages
Definition at line 330 of file Booster.php.
Booster::registerMetadataForResponsive |
( |
| ) |
|
|
protected |
Required metadata for responsive CSS to work.
Definition at line 479 of file Booster.php.
Booster::registerPackage |
( |
|
$name | ) |
|
Registers a script package that is listed in packages.
- Parameters
-
string | $name | the name of the script package. |
- Returns
- CClientScript the CClientScript object itself (to support method chaining, available since version 1.1.5).
- See Also
- CClientScript::registerPackage
- Since
- 1.0.7
Definition at line 373 of file Booster.php.
Booster::registerPopoverJs |
( |
| ) |
|
Booster::registerTooltipJs |
( |
| ) |
|
Booster::registerYiiCss |
( |
| ) |
|
Register our overrides for jQuery UI + Twitter Bootstrap 2.3 combo
- Since
- 0.9.11
Definition at line 313 of file Booster.php.
Booster::setAssetsRegistryIfNotDefined |
( |
| ) |
|
|
protected |
static Booster::setBooster |
( |
|
$value | ) |
|
|
static |
Booster::setRootAliasIfUndefined |
( |
| ) |
|
|
protected |
Booster::tryGetOptionsForPlugin |
( |
|
$name | ) |
|
|
protected |
Booster::tryGetSelectorForPlugin |
( |
|
$name | ) |
|
|
protected |
Member Data Documentation
Booster::$ajaxCssLoad = false |
Booster::$ajaxJsLoad = false |
Booster::$bootstrapCss = true |
Booster::$disableZooming = false |
Booster::$enableBootboxJS = true |
Booster::$enableCdn = false |
Booster::$enableJS = true |
Booster::$enableNotifierJS = true |
Booster::$enablePopover = true |
Booster::$enableTooltip = true |
Booster::$fontAwesomeCss = false |
Booster::$forceCopyAssets = false |
Booster::$jqueryCss = true |
Booster::$packages = array() |
Booster::$popoverSelector = '[data-toggle=popover]' |
Booster::$responsiveCss = true |
Booster::$tooltipSelector = '[data-toggle=tooltip]' |
The documentation for this class was generated from the following file:
- app/protected/extensions/booster/components/Booster.php