2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Functionality for the navigation tree
6 * @package PhpMyAdmin-Navigation
8 if (! defined('PHPMYADMIN')) {
13 * Represents a trigger node in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_Trigger
extends Node
20 * Initialises the class
22 * @param string $name An identifier for the new node
23 * @param int $type Type of node, may be one of CONTAINER or OBJECT
24 * @param bool $is_group Whether this object has been created
25 * while grouping nodes
27 * @return Node_Trigger
29 public function __construct($name, $type = Node
::OBJECT, $is_group = false)
31 parent
::__construct($name, $type, $is_group);
32 $this->icon
= PMA_Util
::getImage('b_triggers.png');
34 'text' => 'db_triggers.php?server=' . $GLOBALS['server']
35 . '&db=%3$s&item_name=%1$s&edit_item=1'
36 . '&token=' . $GLOBALS['token'],
37 'icon' => 'db_triggers.php?server=' . $GLOBALS['server']
38 . '&db=%3$s&item_name=%1$s&export_item=1'
39 . '&token=' . $GLOBALS['token']
41 $this->classes
= 'trigger';