WidgetDefinition.
More...
WidgetDefinition.
Helper class for defining a widget
Definition at line 13 of file WidgetDefinition.php.
Elgg\WidgetDefinition::__construct |
( |
|
$id | ) |
|
Elgg\WidgetDefinition::checkRequiredActivePlugins |
( |
| ) |
|
|
protected |
Checks if the required plugins are active.
If none set this function will return true.
- Returns
- boolean
Definition at line 123 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
|
- Returns
Definition at line 72 of file WidgetDefinition.php.
Elgg\WidgetDefinition::isValid |
( |
| ) |
|
Checks if the widget definition meets all requirements.
- Returns
- boolean
Definition at line 114 of file WidgetDefinition.php.
Elgg\WidgetDefinition::$context |
Elgg\WidgetDefinition::$description |
Elgg\WidgetDefinition::$id |
Elgg\WidgetDefinition::$multiple |
Elgg\WidgetDefinition::$name |
Elgg\WidgetDefinition::$required_plugin |
The documentation for this class was generated from the following file: