CApplicationComponent
| Package |
system.base |
| Inheritance |
abstract class CApplicationComponent »
CComponent |
| Implements |
IApplicationComponent |
| Subclasses |
CAssetManager, CAuthManager, CCache, CClientScript, CDbConnection, CDbFixtureManager, CDummyCache, CErrorHandler, CFormatter, CHttpRequest, CHttpSession, CLogRouter, CMessageSource, CSecurityManager, CStatePersister, CThemeManager, CUrlManager, CViewRenderer, CWebUser, CWidgetFactory |
| Since |
1.0 |
| Version |
$Id: CApplicationComponent.php 1678 2010-01-07 21:02:00Z qiang.xue $ |
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
init() method instead of the constructor. This has the advantage that
the application component can be customized through application configuration.
Public Properties
Hide inherited properties
| Property | Type | Description | Defined By |
| behaviors |
array |
the behaviors that should be attached to this component. |
CApplicationComponent |
| isInitialized |
boolean |
whether this application component has been initialized (i. |
CApplicationComponent |
Property Details
public array $behaviors;
the behaviors that should be attached to this component.
The behaviors will be attached to the component when init is called.
Please refer to CModel::behaviors on how to specify the value of this property.
whether this application component has been initialized (i.e., init() is invoked.)
Method Details
|
public boolean getIsInitialized()
|
| {return} |
boolean |
whether this application component has been initialized (i.e., init() is invoked.) |
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.