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 public function __construct()
24 parent
::__construct(__('Columns'), Node
::CONTAINER
);
25 $this->icon
= PMA_Util
::getImage('pause.png', __('Columns'));
27 'text' => 'tbl_structure.php?server=' . $GLOBALS['server']
28 . '&db=%2$s&table=%1$s'
29 . '&token=' . $_SESSION[' PMA_token '],
30 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
31 . '&db=%2$s&table=%1$s'
32 . '&token=' . $_SESSION[' PMA_token '],
34 $this->real_name
= 'columns';
36 $new_label = _pgettext('Create new column', 'New');
37 $new = PMA_NodeFactory
::getInstance('Node', $new_label);
39 $new->icon
= PMA_Util
::getImage('b_column_add.png', $new_label);
41 'text' => 'tbl_addfield.php?server=' . $GLOBALS['server']
42 . '&db=%3$s&table=%2$s'
43 . '&field_where=last&after_field='
44 . '&token=' . $_SESSION[' PMA_token '],
45 'icon' => 'tbl_addfield.php?server=' . $GLOBALS['server']
46 . '&db=%3$s&table=%2$s'
47 . '&field_where=last&after_field='
48 . '&token=' . $_SESSION[' PMA_token '],
50 $new->classes
= 'new_column italics';
51 $this->addChild($new);