Source for file md_scorm.php
Documentation is available at md_scorm.php
<?php /* <!-- md_scorm.php for Dokeos metadata/*.php -->
<!-- Copyright (C) 2005 rene.haentjens@UGent.be - see metadata/md_funcs.php -->
==============================================================================
* Dokeos Metadata: class mdobject for Scorm-type objects
* @package dokeos.metadata
==============================================================================
function mdo_define_htt() { return new xhtdoc(<<<EOD
<!-- {-INDEXABLETEXT-} -->
{-D scormlevel {-V @level-}-}{-D two 2-}
Title: {-V metadata/lom/general/title/string-} txt-sep
{-T scormlevel == two Author(s): {-V metadata/lom/lifeCycle/contribute[1]/entity-} txt-sep-}
Keyword(s): {-R metadata/lom/general/keyword C KWTEXT-} txt-sep
{-V metadata/lom/general/description[1]/string-}
{-V metadata/lom/technical/location-} txt-end
{-V metadata/lom/general/description[2]/string-} scorm-level-{-P scormlevel-}
{-V metadata/lom/lifeCycle/contribute[1]/entity-}
{-V metadata/lom/lifeCycle/contribute[1]/date/dateTime-}
function mdo_generate_default_xml_metadata()
function mdo_add_breadcrump_nav()
$regs = array(); // for use with ereg()
if (ereg('^(.+[^/\.]+)/[^/\.]+/[^/\.]+.[^/\.]+$', $docurl, $regs))
$docurl = $regs[1] . '/newscorm/index.php';
$interbreadcrumb[] = array ('url' => $docurl,
global $ieee_dcmap_e, $ieee_dcmap_v; // md_funcs
$this->mdo_dcmap_e = $ieee_dcmap_e; $this->mdo_dcmap_v = $ieee_dcmap_v;
$sql = "SELECT path,description,lp_type FROM $scormdocument WHERE id='" . addslashes($id) . "'";
//Sometimes the new scorm-tool adds '/.' at the end of a directory name, so remove this before continue
//Don't think the next line is correct. There used to be a 'type' field in the scormdocument table.
//This metadata tool only works on folder types -- bmol
$this->mdo_filetype = ($docinfo['lp_type'] == 2 ? 'folder' : 'xxx');
'/scorm/' . $this->mdo_path . '/index.php';
|