Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • ActivationController
  • AdminController
  • AssignmentController
  • AssignmentForm
  • AuthChildForm
  • AuthItemController
  • AuthItemForm
  • BaseP3Widget
  • BaseP3WidgetMeta
  • BaseP3WidgetTranslation
  • Bootstrap
  • CImageComponent
  • CKEditor
  • CodeProvider
  • DefaultController
  • EChosen
  • EDbMigration
  • EditableField
  • EditableSaver
  • EMigrateCommand
  • ESelect2
  • EUserFlash
  • FullCrudFieldProvider
  • GenerateForm
  • IdentificationColumnValidator
  • InstallController
  • JSONEditorView
  • JuiJSONEditorInput
  • LoginController
  • LogoutController
  • Metadata
  • P3CrudFieldProvider
  • P3MediaController
  • P3MediaMetaController
  • P3MediaSelect
  • P3PageController
  • P3PageMetaController
  • P3PageTranslationController
  • P3Widget
  • P3WidgetController
  • P3WidgetMetaController
  • P3WidgetTranslation
  • P3WidgetTranslationController
  • ProfileController
  • ProfileFieldController
  • RAuthItemBehavior
  • RAuthItemChildDataProvider
  • RAuthItemDataProvider
  • RAuthItemParentDataProvider
  • RAuthorizer
  • RController
  • RDbAuthManager
  • RecoveryController
  • RegistrationController
  • RegistrationForm
  • RGenerator
  • Rights
  • RightsFilter
  • RightsModule
  • RInstaller
  • RPermissionDataProvider
  • RUserBehavior
  • RWebUser
  • UActiveForm
  • UploadHandler
  • UserChangePassword
  • UserController
  • UserIdentity
  • UserLogin
  • UserModule
  • UserRecoveryForm
  • UWdropDownDep
  • UWfile
  • UWjuiAutoComplete
  • UWjuidate
  • UWrelBelongsTo
  • WebUserBehavior

Class Bootstrap

Bootstrap application component.

CComponent
Extended by CApplicationComponent implements IApplicationComponent
Extended by Bootstrap
Copyright: Copyright © Christoffer Niska 2011-
License: New BSD License
Author: Christoffer Niska <ChristofferNiska@gmail.com>
Located at crisu83/yii-bootstrap/components/Bootstrap.php

Methods summary

public
# init( )

Initializes the component.

Initializes the component.

Overrides

CApplicationComponent::init
public
# registerCoreCss( )

Registers the Bootstrap CSS.

Registers the Bootstrap CSS.

public
# registerResponsiveCss( )

Registers the Bootstrap responsive CSS.

Registers the Bootstrap responsive CSS.

Since

0.9.8
public
# registerYiiCss( )

Registers the Yii-specific CSS missing from Bootstrap.

Registers the Yii-specific CSS missing from Bootstrap.

Since

0.9.11
public
# registerCoreScripts( )

Registers the core JavaScript.

Registers the core JavaScript.

Since

0.9.8
public
# registerJS( integer $position = CClientScript::POS_HEAD )

Registers the Bootstrap JavaScript.

Registers the Bootstrap JavaScript.

Parameters

$position
integer
$position the position of the JavaScript code.

See

CClientScript::registerScriptFile
public
# registerAlert( string $selector = null, array $options = array() )

Registers the Bootstrap alert plugin.

Registers the Bootstrap alert plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#alerts
public
# registerButton( string $selector = null, array $options = array() )

Registers the Bootstrap buttons plugin.

Registers the Bootstrap buttons plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#buttons
public
# registerCarousel( string $selector = null, array $options = array() )

Registers the Bootstrap carousel plugin.

Registers the Bootstrap carousel plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#carousel
public
# registerCollapse( string $selector = null, array $options = array() )

Registers the Bootstrap collapse plugin.

Registers the Bootstrap collapse plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#collapse
public
# registerDropdown( string $selector = null, array $options = array() )

Registers the Bootstrap dropdowns plugin.

Registers the Bootstrap dropdowns plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#dropdowns
public
# registerModal( string $selector = null, array $options = array() )

Registers the Bootstrap modal plugin.

Registers the Bootstrap modal plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#modal
public
# registerScrollSpy( string $selector = null, array $options = array() )

Registers the Bootstrap scrollspy plugin.

Registers the Bootstrap scrollspy plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#scrollspy
public
# registerPopover( string $selector = null, array $options = array() )

Registers the Bootstrap popover plugin.

Registers the Bootstrap popover plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#popover
public
# registerTabs( string $selector = null, array $options = array() )

Registers the Bootstrap tabs plugin.

Registers the Bootstrap tabs plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#tabs
public
# registerTooltip( string $selector = null, array $options = array() )

Registers the Bootstrap tooltip plugin.

Registers the Bootstrap tooltip plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#tooltip
public
# registerTypeahead( string $selector = null, array $options = array() )

Registers the Bootstrap typeahead plugin.

Registers the Bootstrap typeahead plugin.

Parameters

$selector
string
$selector the CSS selector
$options
array
$options the plugin options

Since

0.9.8

See

http://twitter.github.com/bootstrap/javascript.html#typeahead
protected
# registerPlugin( string $name, string $selector = null, array $options = array(), string $defaultSelector = null )

Registers a Bootstrap JavaScript plugin.

Registers a Bootstrap JavaScript plugin.

Parameters

$name
string
$name the name of the plugin
$selector
string
$selector the CSS selector
$options
array
$options the plugin options
$defaultSelector
string
$defaultSelector the default CSS selector

Since

0.9.8
protected string
# getAssetsUrl( )

Returns the URL to the published assets folder.

Returns the URL to the published assets folder.

Returns

string
the URL
public string
# getVersion( )

Returns the extension version number.

Returns the extension version number.

Returns

string
the version

Methods inherited from CApplicationComponent

getIsInitialized()

Methods inherited from CComponent

__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()

Magic methods summary

Constants summary

string PLUGIN_ALERT 'alert'
#
string PLUGIN_BUTTON 'button'
#
string PLUGIN_CAROUSEL 'carousel'
#
string PLUGIN_COLLAPSE 'collapse'
#
string PLUGIN_DROPDOWN 'dropdown'
#
string PLUGIN_MODAL 'modal'
#
string PLUGIN_POPOVER 'popover'
#
string PLUGIN_SCROLLSPY 'scrollspy'
#
string PLUGIN_TAB 'tab'
#
string PLUGIN_TOOLTIP 'tooltip'
#
string PLUGIN_TRANSITION 'transition'
#
string PLUGIN_TYPEAHEAD 'typeahead'
#

Properties summary

public boolean $coreCss
#

whether to register the Bootstrap core CSS (bootstrap.min.css). Defaults to true.

whether to register the Bootstrap core CSS (bootstrap.min.css). Defaults to true.

public boolean $responsiveCss
#

whether to register the Bootstrap responsive CSS (bootstrap-responsive.min.css). Defaults to false.

whether to register the Bootstrap responsive CSS (bootstrap-responsive.min.css). Defaults to false.

public boolean $yiiCss
#

whether to register the Yii-specific CSS missing from Bootstrap.

whether to register the Yii-specific CSS missing from Bootstrap.

Since

0.9.12
public boolean $enableJS
#

whether to register jQuery and the Bootstrap JavaScript.

whether to register jQuery and the Bootstrap JavaScript.

Since

0.9.10
public array $plugins
#

plugin initial options (name=>options). Each array key-value pair represents the initial options for a single plugin class, with the array key being the plugin name, and array value being the initial options array.

plugin initial options (name=>options). Each array key-value pair represents the initial options for a single plugin class, with the array key being the plugin name, and array value being the initial options array.

Since

0.9.8
public string $popoverSelector
#

default popover CSS selector.

default popover CSS selector.

Since

0.10.0
public string $tooltipSelector
#

default tooltip CSS selector.

default tooltip CSS selector.

Since

0.10.0
protected mixed $_assetsUrl
#

Properties inherited from CApplicationComponent

$behaviors

Magic properties inherited from CApplicationComponent

$isInitialized

Phundament App Class Reference API documentation generated by ApiGen 2.8.0