Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_Column_Container.class.php
blob1ae57a8f73ba65a2f7ecfd207b7edac525d5f392
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Functionality for the navigation tree
6 * @package PhpMyAdmin-Navigation
7 */
8 if (! defined('PHPMYADMIN')) {
9 exit;
12 /**
13 * Represents a container for column nodes in the navigation tree
15 * @package PhpMyAdmin-Navigation
17 class Node_Column_Container extends Node
19 /**
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', '');
28 $this->links = array(
29 'text' => 'tbl_structure.php?server=' . $GLOBALS['server']
30 . '&amp;db=%2$s&amp;table=%1$s'
31 . '&amp;token=' . $GLOBALS['token'],
32 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
33 . '&amp;db=%2$s&amp;table=%1$s'
34 . '&amp;token=' . $GLOBALS['token'],
36 $this->real_name = 'columns';
38 $new = PMA_NodeFactory::getInstance('Node', _pgettext('Create new column', 'New'));
39 $new->isNew = true;
40 $new->icon = PMA_Util::getImage('b_column_add.png', '');
41 $new->links = array(
42 'text' => 'tbl_addfield.php?server=' . $GLOBALS['server']
43 . '&amp;db=%3$s&amp;table=%2$s'
44 . '&amp;field_where=last&after_field='
45 . '&amp;token=' . $GLOBALS['token'],
46 'icon' => 'tbl_addfield.php?server=' . $GLOBALS['server']
47 . '&amp;db=%3$s&amp;table=%2$s'
48 . '&amp;field_where=last&after_field='
49 . '&amp;token=' . $GLOBALS['token'],
51 $new->classes = 'new_column italics';
52 $this->addChild($new);