123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- require_once 'Resource.class.php';
- class ScormDocument extends Resource
- {
- var $path;
- var $title;
-
- function ScormDocument($id,$path,$title)
- {
- parent::Resource($id,RESOURCE_SCORM);
- $this->path = 'scorm'.$path;
- $this->title = $title;
- }
-
- 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;
- }
- }
- }
- }
|