WidgetDefinition.
More...
WidgetDefinition.
Helper class for defining a widget
Definition at line 10 of file WidgetDefinition.php.
Elgg\WidgetDefinition::__construct |
( |
|
$id | ) |
|
Elgg\WidgetDefinition::__get |
( |
|
$name | ) |
|
Magic getter to return the deprecated attribute 'handler'.
- Parameters
-
string | $name | attribute to get |
- Returns
- mixed
Definition at line 104 of file WidgetDefinition.php.
static Elgg\WidgetDefinition::factory |
( |
array |
$options | ) |
|
|
static |
Create an WidgetDefinition from an associative array.
Required key is id.
- Parameters
-
array | $options | Option array of key value pairs |
id => STR Widget identifier (required) name => STR Name of the widget description => STR Description of the widget context => ARRAY contexts in which the widget is available multiple => BOOL can the widget be added multiple times
- Exceptions
-
- Returns
Definition at line 64 of file WidgetDefinition.php.
Elgg\WidgetDefinition::$context |
Elgg\WidgetDefinition::$description |
Elgg\WidgetDefinition::$id |
Elgg\WidgetDefinition::$multiple |
Elgg\WidgetDefinition::$name |
The documentation for this class was generated from the following file: