class NavigationTree (View source)

Displays a collapsible of database objects in the navigation frame

Constants

private SPECIAL_NODE_NAMES

Methods

__construct(Template $template, DatabaseInterface $dbi, Relation $relation, Config $config)

No description

void
groupTree(Node|null $node = null)

Recursively groups tree nodes given a separator

void
groupNode(Node $node)

Recursively groups tree nodes given a separator

string
renderState(UserPrivileges $userPrivileges)

Renders a state of the tree, used in light mode when either JavaScript and/or Ajax are disabled

string|false
renderPath(UserPrivileges $userPrivileges)

Renders a part of the tree, used for Ajax requests in light mode

string
renderDbSelect(UserPrivileges $userPrivileges)

Renders a database select box like the pre-4.0 navigation panel

Details

__construct(Template $template, DatabaseInterface $dbi, Relation $relation, Config $config)

No description

Parameters

Template $template
DatabaseInterface $dbi
Relation $relation
Config $config

void groupTree(Node|null $node = null)

Recursively groups tree nodes given a separator

Parameters

Node|null $node

The node to group or null to group the whole tree. If passed as an argument, $node must be of type CONTAINER

Return Value

void

void groupNode(Node $node)

Recursively groups tree nodes given a separator

Parameters

Node $node

The node to group

Return Value

void

string renderState(UserPrivileges $userPrivileges)

Renders a state of the tree, used in light mode when either JavaScript and/or Ajax are disabled

Parameters

UserPrivileges $userPrivileges

Return Value

string

HTML code for the navigation tree

string|false renderPath(UserPrivileges $userPrivileges)

Renders a part of the tree, used for Ajax requests in light mode

Parameters

UserPrivileges $userPrivileges

Return Value

string|false

HTML code for the navigation tree

string renderDbSelect(UserPrivileges $userPrivileges)

Renders a database select box like the pre-4.0 navigation panel

Parameters

UserPrivileges $userPrivileges

Return Value

string

HTML code