Node_Column.class.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. if (! defined('PHPMYADMIN')) {
  9. exit;
  10. }
  11. /**
  12. * Represents a columns node in the navigation tree
  13. *
  14. * @package PhpMyAdmin-Navigation
  15. */
  16. class Node_Column extends Node
  17. {
  18. /**
  19. * Initialises the class
  20. *
  21. * @param string $name An identifier for the new node
  22. * @param int $type Type of node, may be one of CONTAINER or OBJECT
  23. * @param bool $is_group Whether this object has been created
  24. * while grouping nodes
  25. *
  26. * @return Node_Column
  27. */
  28. public function __construct($name, $type = Node::OBJECT, $is_group = false)
  29. {
  30. parent::__construct($name, $type, $is_group);
  31. $this->icon = PMA_Util::getImage('pause.png', __('Column'));
  32. $this->links = array(
  33. 'text' => '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. . '&amp;token=' . $GLOBALS['token'],
  37. 'icon' => 'tbl_structure.php?server=' . $GLOBALS['server']
  38. . '&amp;db=%3$s&amp;table=%2$s&amp;field=%1$s'
  39. . '&amp;change_column=1'
  40. . '&amp;token=' . $GLOBALS['token']
  41. );
  42. }
  43. }
  44. ?>