system system.base system.caching system.caching.dependencies system.collections system.console system.db system.db.ar system.db.schema system.db.schema.cubrid system.db.schema.mssql system.db.schema.mysql system.db.schema.oci system.db.schema.pgsql system.db.schema.sqlite system.gii system.i18n system.i18n.gettext system.logging system.test system.utils system.validators system.web system.web.actions system.web.auth system.web.filters system.web.form system.web.helpers system.web.renderers system.web.services system.web.widgets system.web.widgets.captcha system.web.widgets.pagers zii.behaviors zii.widgets zii.widgets.grid zii.widgets.jui

IWidgetFactory

system.web
继承 interface IWidgetFactory
子类 CWidgetFactory
可用自 1.1
源码 framework/base/interfaces.php
IWidgetFactory is the interface that must be implemented by a widget factory class.

When calling CBaseController::createWidget, if a widget factory is available, it will be used for creating the requested widget.

公共方法

隐藏继承的方法

方法描述被定义在
createWidget() Creates a new widget based on the given class name and initial properties. IWidgetFactory

方法详情

createWidget() 方法
abstract public CWidget createWidget(CBaseController $owner, string $className, array $properties=array ( ))
$owner CBaseController the owner of the new widget
$className string the class name of the widget. This can also be a path alias (e.g. system.web.widgets.COutputCache)
$properties array the initial property values (name=>value) of the widget.
{return} CWidget the newly created widget whose properties have been initialized with the given values.
源码: framework/base/interfaces.php#548 (显示)
public function createWidget($owner,$className,$properties=array());

Creates a new widget based on the given class name and initial properties.