<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Functionality for the navigation tree * * @package PhpMyAdmin-Navigation */ namespace PhpMyAdmin\Navigation\Nodes; use PhpMyAdmin\Navigation\NodeFactory; use PhpMyAdmin\Util; /** * Represents a container for column nodes in the navigation tree * * @package PhpMyAdmin-Navigation */ class NodeColumnContainer extends Node { /** * Initialises the class */ public function __construct() { parent::__construct(__('Columns'), Node::CONTAINER); $this->icon = Util::getImage('pause', __('Columns')); $this->links = array( 'text' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&db=%2$s&table=%1$s', 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server'] . '&db=%2$s&table=%1$s', ); $this->real_name = 'columns'; $new_label = _pgettext('Create new column', 'New'); $new = NodeFactory::getInstance( 'Node', $new_label ); $new->isNew = true; $new->icon = Util::getImage('b_column_add', $new_label); $new->links = array( 'text' => 'tbl_addfield.php?server=' . $GLOBALS['server'] . '&db=%3$s&table=%2$s' . '&field_where=last&after_field=', 'icon' => 'tbl_addfield.php?server=' . $GLOBALS['server'] . '&db=%3$s&table=%2$s' . '&field_where=last&after_field=', ); $new->classes = 'new_column italics'; $this->addChild($new); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Node.php | File | 26.33 KB | 0644 |
|
NodeColumn.php | File | 1.25 KB | 0644 |
|
NodeColumnContainer.php | File | 1.6 KB | 0644 |
|
NodeDatabase.php | File | 24.3 KB | 0644 |
|
NodeDatabaseChild.php | File | 1.56 KB | 0644 |
|
NodeDatabaseChildContainer.php | File | 1.15 KB | 0644 |
|
NodeDatabaseContainer.php | File | 1.28 KB | 0644 |
|
NodeEvent.php | File | 1.36 KB | 0644 |
|
NodeEventContainer.php | File | 1.41 KB | 0644 |
|
NodeFunction.php | File | 1.48 KB | 0644 |
|
NodeFunctionContainer.php | File | 1.57 KB | 0644 |
|
NodeIndex.php | File | 1.16 KB | 0644 |
|
NodeIndexContainer.php | File | 1.6 KB | 0644 |
|
NodeProcedure.php | File | 1.49 KB | 0644 |
|
NodeProcedureContainer.php | File | 1.53 KB | 0644 |
|
NodeTable.php | File | 10.49 KB | 0644 |
|
NodeTableContainer.php | File | 1.53 KB | 0644 |
|
NodeTrigger.php | File | 1.17 KB | 0644 |
|
NodeTriggerContainer.php | File | 1.44 KB | 0644 |
|
NodeView.php | File | 1.33 KB | 0644 |
|
NodeViewContainer.php | File | 1.52 KB | 0644 |
|