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 container for column nodes in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_Column_Container
extends Node
20 * Initialises the class
22 * @return Node_Column_Container
24 public function __construct()
26 parent
::__construct(__('Columns'), Node
::CONTAINER
);
27 $this->icon
= PMA_Util
::getImage('pause.png', '');
29 'text' => 'tbl_structure.php?server=' . $GLOBALS['server']
30 . '&db=%2$s&table=%1$s'
31 . '&token=' . $GLOBALS['token'],
32 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
33 . '&db=%2$s&table=%1$s'
34 . '&token=' . $GLOBALS['token'],
36 $this->real_name
= 'columns';
38 $new = PMA_NodeFactory
::getInstance('Node', _pgettext('Create new column', 'New'));
40 $new->icon
= PMA_Util
::getImage('b_column_add.png', '');
42 'text' => 'tbl_addfield.php?server=' . $GLOBALS['server']
43 . '&db=%3$s&table=%2$s'
44 . '&field_where=last&after_field='
45 . '&token=' . $GLOBALS['token'],
46 'icon' => 'tbl_addfield.php?server=' . $GLOBALS['server']
47 . '&db=%3$s&table=%2$s'
48 . '&field_where=last&after_field='
49 . '&token=' . $GLOBALS['token'],
51 $new->classes
= 'new_column italics';
52 $this->addChild($new);