Source for file FileUrlPartStructure.class.php

Documentation is available at FileUrlPartStructure.class.php

  1. <?php
  2. /**
  3. * @since 12/5/06
  4. * @package harmoni.osid_v2.repository
  5. *
  6. * @copyright Copyright &copy; 2005, Middlebury College
  7. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  8. *
  9. * @version $Id: FileUrlPartStructure.class.php,v 1.2 2007/09/04 20:25:46 adamfranco Exp $
  10. */
  11.  
  12. /**
  13. * <##>
  14. *
  15. * @since 12/5/06
  16. * @package harmoni.osid_v2.repository
  17. *
  18. * @copyright Copyright &copy; 2005, Middlebury College
  19. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  20. *
  21. * @version $Id: FileUrlPartStructure.class.php,v 1.2 2007/09/04 20:25:46 adamfranco Exp $
  22. */
  23. class FileUrlPartStructure
  24. extends FileNamePartStructure
  25. {
  26. /**
  27. * Get the display name for this PartStructure.
  28. *
  29. * @return string
  30. *
  31. * @throws object RepositoryException An exception with one of
  32. * the following messages defined in
  33. * org.osid.repository.RepositoryException may be thrown: {@link }
  34. * org.osid.repository.RepositoryException#OPERATION_FAILED
  35. * OPERATION_FAILED}, {@link }
  36. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  37. * PERMISSION_DENIED}, {@link }
  38. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  39. * CONFIGURATION_ERROR}, {@link }
  40. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  41. * UNIMPLEMENTED}
  42. *
  43. * @access public
  44. */
  45. function getDisplayName() {
  46. return "File Url";
  47. }
  48. /**
  49. * Get the description for this PartStructure.
  50. *
  51. * @return string
  52. *
  53. * @throws object RepositoryException An exception with one of
  54. * the following messages defined in
  55. * org.osid.repository.RepositoryException may be thrown: {@link }
  56. * org.osid.repository.RepositoryException#OPERATION_FAILED
  57. * OPERATION_FAILED}, {@link }
  58. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  59. * PERMISSION_DENIED}, {@link }
  60. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  61. * CONFIGURATION_ERROR}, {@link }
  62. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  63. * UNIMPLEMENTED}
  64. *
  65. * @access public
  66. */
  67. function getDescription() {
  68. return "The url of the file.";
  69. }
  70. /**
  71. * Get the unique Id for this PartStructure.
  72. *
  73. * @return object Id
  74. *
  75. * @throws object RepositoryException An exception with one of
  76. * the following messages defined in
  77. * org.osid.repository.RepositoryException may be thrown: {@link }
  78. * org.osid.repository.RepositoryException#OPERATION_FAILED
  79. * OPERATION_FAILED}, {@link }
  80. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  81. * PERMISSION_DENIED}, {@link }
  82. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  83. * CONFIGURATION_ERROR}, {@link }
  84. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  85. * UNIMPLEMENTED}
  86. *
  87. * @access public
  88. */
  89. function getId() {
  90. $idManager = Services::getService("Id");
  91. return $idManager->getId("FILE_URL");
  92. }
  93. }
  94.  
  95. ?>

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