◆ __construct()
__construct |
( |
array |
$root_resources = [] , |
|
|
|
$title = '' , |
|
|
|
$parameter_name = 'tree_selected_resource' |
|
) |
| |
This widget must be initialised by providing at least one Resource object in an array.
- Parameters
-
array | $root_resources | The root resource objects which will be displayed by this tree view. |
string | $title | The title of this widget. |
string | null | $parameter_name | The name of the URL parameter which will be set when one of the resources in the tree is selected. If parameter_name is set to null the items in the resource tree widget will link to the resource's details page. |
◆ isFoldable()
◆ render()
render |
( |
|
$variables = [] | ) |
|
The render method will attach the root resource of this object to the set of variables which is passed to the template.
◆ setCurrentResource()
setCurrentResource |
( |
Resource |
$resource | ) |
|
◆ setCurrentResourceId()
setCurrentResourceId |
( |
|
$resource_id = null | ) |
|
◆ setFoldable()
setFoldable |
( |
|
$foldable = false | ) |
|
◆ $current_resource_id
$current_resource_id = null |
|
protected |
◆ $foldable
◆ $parameter_name
◆ $root_resources
$root_resource is the resource whose resource tree shall be displayed by this widget. The resource itself and all its children are displayed.
The documentation for this class was generated from the following file: