NodeTriggerContainer
class NodeTriggerContainer extends Node (View source)
Represents a container for trigger nodes in the navigation tree
Constants
CONTAINER |
|
OBJECT |
|
Properties
string | $name | from Node | |
string | $realName | from Node | |
int | $type | from Node | |
bool | $isGroup | from Node | |
bool | $visible | from Node | |
Node|null | $parent | from Node | |
Node[] | $children | from Node | |
mixed | $separator | from Node | |
int | $separatorDepth | from Node | |
array<string,string> | $icon | For the IMG tag, used when rendering the node. |
from Node |
array<string,mixed> | $links | An array of A tags, used when rendering the node. |
from Node |
string | $title | from Node | |
string | $classes | from Node | |
bool | $isNew | from Node | |
int | $pos2 | from Node | |
int | $pos3 | from Node | |
protected Relation | $relation | from Node | |
string | $displayName | from Node | |
string|null | $urlParamName | from Node |
Methods
Initialises the class
Returns a child node given it's name
Retrieves the parents for a node
Returns the actual parent of a node. If used twice on an index or columns node, it will return the table and database nodes. The names of the returned nodes can be used in SQL queries, etc.
This function checks if the node has children nodes associated with it
Returns true if the node has some siblings (other nodes on the same tree level, in the same branch), false otherwise.
Returns the actual path and the virtual paths for a node both as clean arrays and base64 encoded strings
Returns the names of children of type $type present inside this container This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase and PhpMyAdmin\Navigation\Nodes\NodeTable classes
Returns the number of children of type $type present inside this container This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase and PhpMyAdmin\Navigation\Nodes\NodeTable classes
Returns HTML for control buttons displayed infront of a node
Details
__construct()
Initialises the class
in
Node at line 159
void
addChild(Node $child)
Adds a child node to this node
in
Node at line 175
Node|null
getChild(string $name, bool $realName = false)
Returns a child node given it's name
in
Node at line 199
void
removeChild(string $name)
Removes a child node from this node
in
Node at line 218
array
parents(bool $self = false, bool $containers = false, bool $groups = false)
Retrieves the parents for a node
in
Node at line 244
Node|false
realParent()
Returns the actual parent of a node. If used twice on an index or columns node, it will return the table and database nodes. The names of the returned nodes can be used in SQL queries, etc.
..
in
Node at line 260
bool
hasChildren(bool $countEmptyContainers = true)
This function checks if the node has children nodes associated with it
in
Node at line 283
bool
hasSiblings()
Returns true if the node has some siblings (other nodes on the same tree level, in the same branch), false otherwise.
The only exception is for nodes on the third level of the tree (columns and indexes), for which the function always returns true. This is because we want to render the containers for these nodes
in
Node at line 306
int
numChildren()
Returns the number of child nodes that a node has associated with it
in
Node at line 326
array
getPaths()
Returns the actual path and the virtual paths for a node both as clean arrays and base64 encoded strings
in
Node at line 368
array
getData(string $type, int $pos, string $searchClause = '')
Returns the names of children of type $type present inside this container This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase and PhpMyAdmin\Navigation\Nodes\NodeTable classes
in
Node at line 392
int
getPresence(string $type = '', string $searchClause = '')
Returns the number of children of type $type present inside this container This method is overridden by the PhpMyAdmin\Navigation\Nodes\NodeDatabase and PhpMyAdmin\Navigation\Nodes\NodeTable classes
in
Node at line 568
string
getHtmlForControlButtons()
Returns HTML for control buttons displayed infront of a node
in
Node at line 580
string
getCssClasses(bool $match)
Returns CSS classes for a node
in
Node at line 606
string
getIcon(bool $match)
Returns icon for the node
in
Node at line 626
array|null
getNavigationHidingData()
Gets the count of hidden elements for each database