Procedural File: scorm.lib.php

Source Location: /scorm.lib.php



Classes:

Page Details:

This file is a container for functions related to SCORM and other standard or common course content types. It might later become a class instead of a functions library, as several components are likely to be re-used for different content types.

Tags:





get_scorm_paths_from_dir

array get_scorm_paths_from_dir( string $basedir, string $curdir, array &$attribute)

[line 118]

This function gets a list of scorm paths located in a given directory

Tags:

  • return - Array(type=>array(),size=>array(),date=>array())

Parameters

  • string $basedir - Base directory path
  • string $curdir - Current directory
  • array &$attribute - Reference to a list of paths that exist in the database

[ Top ]

get_scorm_version

string get_scorm_version( string $path)

[line 186]

Detects the SCORM version from an imsmanifest.xml file

Tags:

  • return - SCORM version (1.0,1.1,1.2,1.3)
  • todo - Implement this function

Parameters

  • string $path - Path to imsmanifest.xml

[ Top ]

removescormDir

boolean removescormDir( string $dir)

[line 39]

Delete a scorm directory (check for imsmanifest and if found, deletes the related rows in scorm tables also)

Tags:

  • return - True on success, false otherwise
  • usedby - scorm_delete() - to actually remove the directory

Parameters

  • string $dir - Dir path

[ Top ]

scorm_delete

boolean scorm_delete( string $file)

[line 97]

This function removes a directory if it exists

Tags:

  • return - True on success, false otherwise
  • uses - removescormDir() - to actually remove the directory

Parameters

  • string $file - Dir path

[ Top ]


Documentation generated on Sun, 22 Jan 2006 23:26:40 +0000 by phpDocumentor 1.2.3