Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • BaseDocsMassAction
  • CApplication
  • CApplicationComponent
  • CBehavior
  • CComponent
  • CEnumerable
  • CErrorEvent
  • CErrorHandler
  • CEvent
  • CExceptionEvent
  • CModel
  • CModelBehavior
  • CModelEvent
  • CModule
  • CommonFieldsBehavior
  • CSecurityManager
  • CStatePersister
  • Expression
  • MassAction
  • MassAddToList
  • MassCompleteAction
  • MassMoveFileSysObjToFolder
  • MassRemoveFromList
  • MassRenameFileSysObj
  • MassUncompleteAction
  • MobileRecentItems
  • ModulePanelItem
  • NewListFromSelection
  • PanelItem
  • QuickCRUDBehavior
  • RecentItemPanelItem
  • ServiceRoutingBehavior
  • SettingsPanelItem
  • X2AddressBehavior
  • X2AuthCache
  • X2BaseListViewBehavior

Interfaces

  • IAction
  • IApplicationComponent
  • IAuthManager
  • IBehavior
  • IFilter
  • IStatePersister
  • IUserIdentity
  • IViewRenderer
  • IWebServiceProvider
  • IWebUser

Exceptions

  • CException
  • CHttpException
  • TwitterFeedWidgetException
  • Overview
  • Package
  • Class
  • Tree

Class CApplicationComponent

CApplicationComponent is the base class for application component classes.

CApplicationComponent implements the basic methods required by IApplicationComponent.

When developing an application component, try to put application component initialization code in the CApplicationComponent::init() method instead of the constructor. This has the advantage that the application component can be customized through application configuration.

CComponent
Extended by CApplicationComponent implements IApplicationComponent

Direct known subclasses

CAssetManager, CAuthManager, CHttpSession, CLogRouter, CMessageSource, CSecurityManager, CStatePersister, CThemeManager, CUrlManager, CViewRenderer, CWebUser, CWidgetFactory, CCache, X2AuthCache, X2NonWebUser, CClientScript, CDbConnection, CDbFixtureManager, CDummyCache, CErrorHandler, CFormatter, CHttpRequest

Indirect known subclasses

CApcCache, CCacheHttpSession, CMemCache, CPhpAuthManager, CPhpMessageSource, CPradoViewRenderer, CRedisCache, CWinCache, CXCache, CZendDataCache, X2AssetManager, X2AuthManager, CDbAuthManager, X2FileCache, X2FixtureManager, X2HttpRequest, X2MessageSource, X2UrlManager, X2WebUser, CDbCache, CDbHttpSession, CDbMessageSource, CEAcceleratorCache, CFileCache, CGettextMessageSource, CLocalizedFormatter
Abstract
Package: system\base
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/base/CApplicationComponent.php
Methods summary
public
# init( )

Initializes the application component. This method is required by IApplicationComponent and is invoked by application. If you override this method, make sure to call the parent implementation so that the application component can be marked as initialized.

Initializes the application component. This method is required by IApplicationComponent and is invoked by application. If you override this method, make sure to call the parent implementation so that the application component can be marked as initialized.

Implementation of

IApplicationComponent::init()
public boolean
# getIsInitialized( )

Checks if this application component has been initialized.

Checks if this application component has been initialized.

Returns

boolean
whether this application component has been initialized (ie, CApplicationComponent::init() is invoked).

Implementation of

IApplicationComponent::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()
Properties summary
public array $behaviors array()
#

the behaviors that should be attached to this component. The behaviors will be attached to the component when CApplicationComponent::init() is called. Please refer to CModel::behaviors() on how to specify the value of this property.

the behaviors that should be attached to this component. The behaviors will be attached to the component when CApplicationComponent::init() is called. Please refer to CModel::behaviors() on how to specify the value of this property.

Magic properties summary
public boolean $isInitialized
#

Whether this application component has been initialized (ie, CApplicationComponent::init() is invoked).

Whether this application component has been initialized (ie, CApplicationComponent::init() is invoked).

API documentation generated by ApiGen 2.8.0