You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
906 B
43 lines
906 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
require_once 'Resource.class.php';
|
|
|
|
/**
|
|
* ScormDocument class
|
|
* @author Olivier Brouckaert <oli.brouckaert@dokeos.com>
|
|
* @package chamilo.backup
|
|
*/
|
|
class ScormDocument extends Coursecopy\Resource
|
|
{
|
|
public $path;
|
|
public $title;
|
|
|
|
/**
|
|
* Create a new Scorm Document
|
|
* @param int $id
|
|
* @param string $path
|
|
* @param string $title
|
|
*/
|
|
public function __construct($id, $path, $title)
|
|
{
|
|
parent::__construct($id,RESOURCE_SCORM);
|
|
$this->path = 'scorm'.$path;
|
|
$this->title = $title;
|
|
}
|
|
|
|
/**
|
|
* Show this document
|
|
*/
|
|
public function show()
|
|
{
|
|
parent::show();
|
|
$path = preg_replace('@^scorm/@', '', $this->path);
|
|
echo $path;
|
|
if (!empty($this->title)) {
|
|
if (strpos($path, $this->title) === false) {
|
|
echo " - " . $this->title;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|