Source for file TraversalInfo.php

Documentation is available at TraversalInfo.php

  1. <?php
  2. /**
  3. * TraversalInfo contains a Node unique Id, a Node displayName, and a Node
  4. * Level. The level of the Node represented by the node unique Id is in
  5. * relation to the startId of the Hierarchy traverse method call. Children
  6. * Nodes are represented by positive levels, parent Nodes by negative levels.
  7. * For example, a traverse of a Hierarchy has level -1 for parents of the Node
  8. * represented by startId, and a level -2 for grandparents. Similarly, the
  9. * children of the Node would have level 1, and grandchildren would have level
  10. * 2.
  11. *
  12. * <p>
  13. * OSID Version: 2.0
  14. * </p>
  15. *
  16. * <p>
  17. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  18. * O.K.I&#46; OSID Definition License}.
  19. * </p>
  20. *
  21. * @package org.osid.hierarchy
  22. */
  23. class TraversalInfo
  24. {
  25. /**
  26. * Get the unique Id for this Node.
  27. *
  28. * @return object Id
  29. *
  30. * @throws object HierarchyException An exception with one of
  31. * the following messages defined in
  32. * org.osid.hierarchy.HierarchyException may be thrown: {@link }
  33. * org.osid.hierarchy.HierarchyException#OPERATION_FAILED
  34. * OPERATION_FAILED}, {@link }
  35. * org.osid.hierarchy.HierarchyException#PERMISSION_DENIED
  36. * PERMISSION_DENIED}, {@link }
  37. * org.osid.hierarchy.HierarchyException#CONFIGURATION_ERROR
  38. * CONFIGURATION_ERROR}, {@link }
  39. * org.osid.hierarchy.HierarchyException#UNIMPLEMENTED
  40. * UNIMPLEMENTED}
  41. *
  42. * @access public
  43. */
  44. function getNodeId () {
  45. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  46. }
  47.  
  48. /**
  49. * Get the display name for this Node.
  50. *
  51. * @return string
  52. *
  53. * @throws object HierarchyException An exception with one of
  54. * the following messages defined in
  55. * org.osid.hierarchy.HierarchyException may be thrown: {@link }
  56. * org.osid.hierarchy.HierarchyException#OPERATION_FAILED
  57. * OPERATION_FAILED}, {@link }
  58. * org.osid.hierarchy.HierarchyException#PERMISSION_DENIED
  59. * PERMISSION_DENIED}, {@link }
  60. * org.osid.hierarchy.HierarchyException#CONFIGURATION_ERROR
  61. * CONFIGURATION_ERROR}, {@link }
  62. * org.osid.hierarchy.HierarchyException#UNIMPLEMENTED
  63. * UNIMPLEMENTED}
  64. *
  65. * @access public
  66. */
  67. function getDisplayName () {
  68. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  69. }
  70.  
  71. /**
  72. * Get the level of this Node in relation to the startId of the Hierarchy
  73. * traversal method call. Descendants are assigned increasingly positive
  74. * levels; ancestors increasingly negative levels.
  75. *
  76. * @return int
  77. *
  78. * @throws object HierarchyException An exception with one of
  79. * the following messages defined in
  80. * org.osid.hierarchy.HierarchyException may be thrown: {@link }
  81. * org.osid.hierarchy.HierarchyException#OPERATION_FAILED
  82. * OPERATION_FAILED}, {@link }
  83. * org.osid.hierarchy.HierarchyException#PERMISSION_DENIED
  84. * PERMISSION_DENIED}, {@link }
  85. * org.osid.hierarchy.HierarchyException#CONFIGURATION_ERROR
  86. * CONFIGURATION_ERROR}, {@link }
  87. * org.osid.hierarchy.HierarchyException#UNIMPLEMENTED
  88. * UNIMPLEMENTED}
  89. *
  90. * @access public
  91. */
  92. function getLevel () {
  93. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  94. }
  95. }
  96.  
  97. ?>

Documentation generated on Wed, 19 Sep 2007 10:27:31 -0400 by phpDocumentor 1.3.0RC3