IApplicationComponent

优质
小牛编辑
122浏览
2023-12-01
所有包 | 方法
system.base
继承interface IApplicationComponent
子类CApcCache, CApplicationComponent, CAssetManager, CAuthManager, CCache, CCacheHttpSession, CClientScript, CDbAuthManager, CDbCache, CDbConnection, CDbFixtureManager, CDbHttpSession, CDbMessageSource, CDummyCache, CEAcceleratorCache, CErrorHandler, CFileCache, CFormatter, CGettextMessageSource, CHttpRequest, CHttpSession, CLogRouter, CMemCache, CMessageSource, CPhpAuthManager, CPhpMessageSource, CPradoViewRenderer, CSecurityManager, CStatePersister, CThemeManager, CUrlManager, CViewRenderer, CWebUser, CWidgetFactory, CWinCache, CXCache, CZendDataCache
源自1.0
版本$Id: interfaces.php 3515 2011-12-28 12:29:24Z mdomba $
源码framework/base/interfaces.php
IApplicationComponent是所有应用组件必须实现的接口。

在应用程序完成配置后,加载任何应用组件, 将调用init()方法。

公共方法

隐藏继承方法

方法描述定义在
getIsInitialized()检查是否已经调用了init()方法。IApplicationComponent
init()初始化应用组件。IApplicationComponent

方法详细

getIsInitialized() 方法
abstract public boolean getIsInitialized()
{return}boolean是否已经调用了init()方法。
源码: framework/base/interfaces.php#32 (显示) publicfunctiongetIsInitialized(); init() 方法
abstract public void init()
源码: framework/base/interfaces.php#28 (显示) publicfunctioninit();

初始化应用组件。 这个方法在应用程序完成配置后调用。