Removing old documentation
[openemr.git] / phpmyadmin / libraries / navigation / Nodes / Node_Column_Container.class.php
blobfb0a518e6a175f5ccb9844e998fadaa8d309b180
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 public function __construct()
24 parent::__construct(__('Columns'), Node::CONTAINER);
25 $this->icon = PMA_Util::getImage('pause.png', __('Columns'));
26 $this->links = array(
27 'text' => 'tbl_structure.php?server=' . $GLOBALS['server']
28 . '&amp;db=%2$s&amp;table=%1$s'
29 . '&amp;token=' . $_SESSION[' PMA_token '],
30 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
31 . '&amp;db=%2$s&amp;table=%1$s'
32 . '&amp;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);
38 $new->isNew = true;
39 $new->icon = PMA_Util::getImage('b_column_add.png', $new_label);
40 $new->links = array(
41 'text' => 'tbl_addfield.php?server=' . $GLOBALS['server']
42 . '&amp;db=%3$s&amp;table=%2$s'
43 . '&amp;field_where=last&after_field='
44 . '&amp;token=' . $_SESSION[' PMA_token '],
45 'icon' => 'tbl_addfield.php?server=' . $GLOBALS['server']
46 . '&amp;db=%3$s&amp;table=%2$s'
47 . '&amp;field_where=last&after_field='
48 . '&amp;token=' . $_SESSION[' PMA_token '],
50 $new->classes = 'new_column italics';
51 $this->addChild($new);