public function tree()
{
return _class('html')->tree([
11 => [
'name' => 'Tools',
],
22 => [
'link' => url('/blocks'),
'name' => 'Blocks editor',
'parent_id' => 11,
],
33 => [
'link' => url('/file_manager'),
'name' => 'File manager',
'parent_id' => 11,
],
44 => [
'name' => 'Administration',
],
55 => [
'link' => url('/admin'),
'name' => 'Admin accounts',
'parent_id' => 44,
],
66 => [
'link' => url('/admin_groups'),
'name' => 'Admin groups',
'parent_id' => 44,
],
77 => [
'link' => url('/admin_modules'),
'name' => 'Admin modules',
'parent_id' => 44,
],
88 => [
'name' => 'Users',
'parent_id' => 44,
],
99 => [
'link' => url('/manage_users'),
'name' => 'User accounts',
'parent_id' => 88,
],
101 => [
'link' => url('/user_groups'),
'name' => 'User groups',
'parent_id' => 88,
],
102 => [
'link' => url('/user_modules'),
'name' => 'User modules',
'parent_id' => 88,
],
103 => [
'name' => 'Content',
],
104 => [
'link' => url('/static_pages'),
'name' => 'Static pages',
'parent_id' => 103,
],
105 => [
'link' => url('/manage_news'),
'name' => 'News',
'parent_id' => 103,
],
106 => [
'link' => url('/manage_comments'),
'name' => 'Comments',
'parent_id' => 103,
],
]);
}
public function tree($data = [], $extra = [])
{
return _class('html_tree', 'classes/html/')->tree($data, $extra);
}