Package | system.web |
---|---|
Inheritance | interface IWidgetFactory |
Subclasses | CWidgetFactory |
Since | 1.1 |
Source Code | framework/base/interfaces.php |
Method | Description | Defined By |
---|---|---|
createWidget() | Creates a new widget based on the given class name and initial properties. | IWidgetFactory |
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. |
public function createWidget($owner,$className,$properties=array());
Creates a new widget based on the given class name and initial properties.
Signup or Login in order to comment.