Source for file Learnpath.class.php
Documentation is available at Learnpath.class.php
<?php // $Id: Learnpath.class.php 11364 2007-03-03 10:48:36Z yannoo $
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004 Dokeos S.A.
Copyright (c) 2003 Ghent University (UGent)
Copyright (c) 2001 Universite catholique de Louvain (UCL)
Copyright (c) Bart Mollet (bart.mollet@hogent.be)
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
==============================================================================
* @author Bart Mollet <bart.mollet@hogent.be>
* Type of learnpath (can be dokeos (1), scorm (2), aicc (3))
* Path to the learning path files
* Whether additional commits should be forced or not
* View mode by default ('embedded' or 'fullscreen')
* Default character encoding
* Content editor/publisher
* Location of the content (local or remote)
* Whether to prevent reinitialisation or not
* JavaScript library used
* Debug level for this lp
* The learnpath visibility on the homepage
* @param integer Type (1,2,3,...)
* @param string $description
* @param string $content_local
* @param string $default_encoding
* @param string $default_view_mode
* @param bool $prevent_reinit
* @param bool $force_commit
* @param string $content_maker
* @param integer $display_order
* @param string $content_license
* @param string $visibility
function Learnpath($id,$type,$name,$path,$ref,$description,$content_local,$default_encoding,$default_view_mode,$prevent_reinit,$force_commit,$content_maker,$display_order,$js_lib,$content_license,$debug,$visibility,$items)
* Check if a given resource is used as an item in this chapter
foreach($this->items as $index => $item)
if( $item['id'] == $resource->get_id() && $item['type'] == $resource->get_type())
|