public $subdir = ''; // Path between the scorm/ directory and the config files e.g. maritime_nav/maritime_nav. This is the path that will be used in the lp_path when importing a package.
public $zipname = ''; // Keeps the zipfile safe for the object's life so that we can use it if there is no title available.
public $lastzipnameindex = 0; // Keeps an index of the number of uses of the zipname so far.
// Path between the scorm/ directory and the config files e.g. maritime_nav/maritime_nav. This is the path that will be used in the lp_path when importing a package.
public $subdir = '';
// Keeps the zipfile safe for the object's life so that we can use it if there is no title available.
public $zipname = '';
// Keeps an index of the number of uses of the zipname so far.
public $lastzipnameindex = 0;
public $config_encoding = 'ISO-8859-1';
public $debug = 0;
/**
* Class constructor. Based on the parent constructor.
* @param string $course_code
* @param integer $resource_id Learnpath ID in DB
* @param integer $user_id
* @param string $course_code
* @param integer $resource_id Learnpath ID in DB
* @param integer $user_id
*/
public function __construct($course_code = null, $resource_id = null, $user_id = null)
{
@ -54,20 +58,20 @@ class aicc extends learnpath
/**
* Opens a resource
* @param integer Database ID of the resource
* @param integer Database ID of the resource
*/
public function open($id)
{
// Redefine parent method.
if ($this->debug > 0) {
error_log('In aicc::open()', 0);
}
// Redefine parent method.
}
/**
* Parses a set of AICC config files and puts everything into the $config array
* @param string Path to the config files dir on the system. If not defined, uses the base path of the course's scorm dir
* @return array Structured array representing the config files' contents
* @param string Path to the config files dir on the system. If not defined, uses the base path of the course's scorm dir
* @return array Structured array representing the config files' contents
*/
function parse_config_files($dir = '')
{
@ -78,9 +82,7 @@ class aicc extends learnpath
}
if (is_dir($dir) && is_readable($dir)) {
// Now go through all the config files one by one and parse everything into AICC objects.
// The basename for the config files is stored in $this->config_basename.
// Parse the Course Description File (.crs) - ini-type.