dokeos-metadata
[ class tree: dokeos-metadata ] [ index: dokeos-metadata ] [ all elements ]

Source for file openobject.php

Documentation is available at openobject.php

  1. <?php /*                                 <!-- Dokeos metadata/openobject.php -->
  2.                                                              <!-- 2004/08/27 -->
  3.  
  4. <!-- Copyright (C) 2004 rene.haentjens@UGent.be -  see metadata/md_funcs.php -->
  5.  
  6. */
  7.  
  8. /**
  9. ============================================================================== 
  10. *    Dokeos Metadata: general script for opening an object
  11. *
  12. *   URL parameters:
  13. *   - eid=  entry-id = object-id = type.identifier, e.g. 'Document.12';
  14. *
  15. *    @package dokeos.metadata
  16. ============================================================================== 
  17. */
  18.  
  19.  
  20. require("md_funcs.php");
  21. // name of the language file that needs to be included 
  22. $language_file 'Whatever'
  23. require("../inc/global.inc.php");
  24. $this_section=SECTION_COURSES;
  25.  
  26. getpar('EID''Entry IDentifier');
  27. if (!($dotpos strpos(EID'.'))) give_up('No . in ' EID);
  28.  
  29. require('md_' strtolower(substr(EID0$dotpos)) '.php');
  30. $mdObj new mdobject($_coursesubstr(EID$dotpos 1));
  31.  
  32. header('Location: ' $mdObj->mdo_url);
  33.  
  34. exit;
  35. ?>

Documentation generated on Thu, 12 Jun 2008 14:08:55 -0500 by phpDocumentor 1.4.1