NodeColumn.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Functionality for the navigation tree
  5. *
  6. * @package PhpMyAdmin-Navigation
  7. */
  8. namespace PhpMyAdmin\Navigation\Nodes;
  9. use PhpMyAdmin\Util;
  10. /**
  11. * Represents a columns node in the navigation tree
  12. *
  13. * @package PhpMyAdmin-Navigation
  14. */
  15. class NodeColumn extends Node
  16. {
  17. /**
  18. * Initialises the class
  19. *
  20. * @param string $name An identifier for the new node
  21. * @param int $type Type of node, may be one of CONTAINER or OBJECT
  22. * @param bool $is_group Whether this object has been created
  23. * while grouping nodes
  24. */
  25. public function __construct($name, $type = Node::OBJECT, $is_group = false)
  26. {
  27. parent::__construct($name, $type, $is_group);
  28. $this->icon = Util::getImage('pause', __('Column'));
  29. $this->links = array(
  30. 'text' => 'tbl_structure.php?server=' . $GLOBALS['server']
  31. . '&amp;db=%3$s&amp;table=%2$s&amp;field=%1$s'
  32. . '&amp;change_column=1',
  33. 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
  34. . '&amp;db=%3$s&amp;table=%2$s&amp;field=%1$s'
  35. . '&amp;change_column=1',
  36. 'title' => __('Structure'),
  37. );
  38. }
  39. }