Minor - Adapting code comments to phpdoc

skala
Yannick Warnier 15 years ago
parent f1e59a9bab
commit a8828b931d
  1. 5
      main/coursecopy/backup.php
  2. 3
      main/coursecopy/classes/CourseRestorer.class.php
  3. 3
      main/coursecopy/classes/Document.class.php
  4. 8
      main/coursecopy/classes/DummyCourseCreator.class.php
  5. 5
      main/coursecopy/classes/Event.class.php
  6. 5
      main/coursecopy/classes/Forum.class.php
  7. 5
      main/coursecopy/classes/ForumCategory.class.php
  8. 4
      main/coursecopy/classes/ForumPost.class.php
  9. 3
      main/coursecopy/classes/Glossary.class.php
  10. 4
      main/coursecopy/classes/Link.class.php
  11. 4
      main/coursecopy/classes/LinkCategory.class.php
  12. 5
      main/coursecopy/classes/Quiz.class.php
  13. 5
      main/coursecopy/classes/QuizQuestion.class.php
  14. 4
      main/coursecopy/classes/ScormDocument.class.php
  15. 4
      main/coursecopy/classes/SurveyInvitation.class.php
  16. 3
      main/coursecopy/classes/SurveyQuestion.class.php
  17. 5
      main/coursecopy/classes/ToolIntro.class.php
  18. 7
      main/coursecopy/copy_course.php
  19. 7
      main/coursecopy/copy_course_session.php
  20. 7
      main/coursecopy/create_backup.php
  21. 5
      main/coursecopy/import_backup.php
  22. 5
      main/coursecopy/recycle_course.php
  23. 8
      main/external_module/external_module.php
  24. 9
      main/newscorm/aicc.class.php
  25. 1
      main/newscorm/aiccItem.class.php
  26. 4
      main/newscorm/audiorecorder.inc.php
  27. 5
      main/newscorm/back_compat.inc.php
  28. 7
      main/newscorm/blank.php
  29. 4
      main/newscorm/display_audiorecorder.php
  30. 7
      main/newscorm/index.php
  31. 6
      main/newscorm/learnpath.class.php
  32. 8
      main/newscorm/lp_add_item.php
  33. 6
      main/newscorm/lp_admin_view.php
  34. 4
      main/newscorm/lp_ajax_initialize.php
  35. 4
      main/newscorm/lp_ajax_last_update_status.php
  36. 5
      main/newscorm/lp_ajax_log.php
  37. 5
      main/newscorm/lp_ajax_save_objectives.php
  38. 4
      main/newscorm/lp_ajax_switch_item.php
  39. 5
      main/newscorm/lp_ajax_switch_item_toc.php
  40. 7
      main/newscorm/lp_api.php
  41. 6
      main/newscorm/lp_author_image.php
  42. 4
      main/newscorm/lp_build.php
  43. 5
      main/newscorm/lp_comm.common.php
  44. 5
      main/newscorm/lp_comm.server.php
  45. 6
      main/newscorm/lp_content.php
  46. 7
      main/newscorm/lp_edit.php
  47. 5
      main/newscorm/lp_edit_item.php
  48. 5
      main/newscorm/lp_edit_item_prereq.php
  49. 4
      main/newscorm/lp_footer.php
  50. 8
      main/newscorm/lp_header.php
  51. 6
      main/newscorm/lp_list.php
  52. 3
      main/newscorm/lp_list_search.php
  53. 4
      main/newscorm/lp_log.php
  54. 5
      main/newscorm/lp_message.php
  55. 4
      main/newscorm/lp_move_item.php
  56. 6
      main/newscorm/lp_nav.php
  57. 5
      main/newscorm/lp_stats.php
  58. 4
      main/newscorm/lp_toc.php
  59. 5
      main/newscorm/lp_upload.php
  60. 4
      main/newscorm/lp_view.php
  61. 4
      main/newscorm/lp_view_item.php
  62. 5
      main/newscorm/openoffice_text.class.php
  63. 7
      main/newscorm/openoffice_text_document.class.php
  64. 4
      main/newscorm/resourcelinker.inc.php
  65. 4
      main/newscorm/resourcelinker.php
  66. 4
      main/newscorm/scorm_admin.php

@ -1,13 +1,14 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Create a backup.
*
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
/**
* Code
*/
// Language files that need to be included
$language_file = array('exercice', 'coursebackup', 'admin');

@ -4,6 +4,9 @@
* Course Restorer script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Course.class.php';
require_once 'Event.class.php';
require_once 'Link.class.php';

@ -4,6 +4,9 @@
* Document class file
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
define('DOCUMENT','file');

@ -4,6 +4,9 @@
* Dummy course creator
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Course.class.php';
require_once 'Document.class.php';
require_once 'Event.class.php';
@ -16,7 +19,10 @@ require_once 'ForumPost.class.php';
require_once 'CourseDescription.class.php';
require_once 'CourseCopyLearnpath.class.php';
require_once 'CourseRestorer.class.php';
/**
* Class
* @package chamilo.backup
*/
class DummyCourseCreator
{
/**

@ -4,11 +4,14 @@
* Event backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* An event
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
class Event extends Resource
{

@ -4,11 +4,14 @@
* Forum backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* A forum
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
class Forum extends Resource
{

@ -4,11 +4,14 @@
* Forum category backup class
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* A forum-category
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
class ForumCategory extends Resource
{

@ -4,11 +4,15 @@
* Forum post backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* A forum-post
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
class ForumPost extends Resource
{

@ -4,6 +4,9 @@
* Glossary backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**

@ -4,11 +4,15 @@
* Link backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* A WWW-link from the Links-module in a Chamilo-course.
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
class Link extends Resource
{

@ -4,11 +4,15 @@
* Link category backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* A LinkCategory
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
class LinkCategory extends Resource
{

@ -4,9 +4,10 @@
* Exercises backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* An Quiz
* @author Bart Mollet <bart.mollet@hogent.be>

@ -4,9 +4,10 @@
* Exercises questions backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* An QuizQuestion
* @author Bart Mollet <bart.mollet@hogent.be>

@ -4,8 +4,10 @@
* SCORM document backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* ScormDocument class
* @author Olivier Brouckaert <oli.brouckaert@dokeos.com>

@ -4,8 +4,10 @@
* Survey invitations backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* An SurveyInvitation
* @author Yannick Warnier <yannick.warnier@beeznest.com>

@ -4,6 +4,9 @@
* Survey questions backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* A SurveyQuestion

@ -4,11 +4,14 @@
* Tool intro backup script
* @package chamilo.backup
*/
/**
* Code
*/
require_once 'Resource.class.php';
/**
* A WWW-link from the Links-module in a Chamilo-course.
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
class ToolIntro extends Resource
{

@ -1,6 +1,11 @@
<?php
/* For licensing terms, see /license.txt */
/**
* @package chamilo.backup
*/
/**
* Code
*/
// Language files that need to be included
$language_file = array('exercice', 'coursebackup', 'admin');

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Copy resources from one course in a session to another one.
*
@ -8,7 +7,9 @@
* @author Julio Montoya <gugli100@gmail.com> Lots of bug fixes/improvements
* @package chamilo.backup
*/
/**
* Code
*/
/* INIT SECTION */
// Language files that need to be included
@ -406,4 +407,4 @@ if ((isset($_POST['action']) && $_POST['action'] == 'course_select_form') || (is
/* FOOTER */
Display::display_footer();
Display::display_footer();

@ -1,13 +1,14 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Create a backup.
*
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
/**
* Code
*/
// Language files that need to be included
$language_file = array('exercice', 'admin', 'coursebackup');
@ -102,4 +103,4 @@ if ((isset($_POST['action']) && $_POST['action'] == 'course_select_form') || (is
}
/* FOOTER */
Display::display_footer();
Display::display_footer();

@ -1,13 +1,14 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Import a backup.
*
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
/**
* Code
*/
/* INIT SECTION */
// Language files that need to be included

@ -1,13 +1,14 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Delete resources from a course.
*
* @author Bart Mollet <bart.mollet@hogent.be>
* @package chamilo.backup
*/
/**
* Code
*/
// Language files that need to be included
$language_file = array ('exercice', 'admin', 'course_info', 'coursebackup');

@ -1,7 +1,6 @@
<?php
/* For licensing terms, see /license.txt */
/**
==============================================================================
* This script is used for adding hyperlinks to a course homepage.
* It used to be able to link html documents as well,
* which it displayed in context, but that was abandoned
@ -13,9 +12,10 @@
*
* @package chamilo.external_module
* @todo this code is useless?
==============================================================================
*/
/**
* Code
*/
// name of the language file that needs to be included
$language_file='external_module';
@ -163,4 +163,4 @@ if(!empty($msgErr))
}
Display::display_footer();
?>
?>

@ -7,13 +7,18 @@
* @author Yannick Warnier <ywarnier@beeznest.org>
* @license GNU/GPL
*/
/**
* Code
*/
require_once 'aiccItem.class.php';
//require_once 'aiccMetadata.class.php';
//require_once 'aiccOrganization.class.php';
require_once 'aiccResource.class.php';
require_once 'aiccBlock.class.php';
/**
* Class
* @package chamilo.learnpath
*/
class aicc extends learnpath {
public $config = array();

@ -10,6 +10,7 @@
/**
* This class handles the elements from an AICC Descriptor file.
* @package chamilo.learnpath
*/
require_once 'learnpathItem.class.php';
class aiccItem extends learnpathItem {

@ -9,7 +9,9 @@
* @author Arnaud Ligot <arnaud@cblue.be>
* @package chamilo.learnpath
*/
/**
* Code
*/
global $_configuration;
$web_path = api_get_path(WEB_CODE_PATH);
$getid3_path = api_get_path(LIBRARY_PATH);

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script used to allow compatibility between the New SCORM tool and both
* version 1.6.3 and 1.8 of Dokeos by loading libraries in a different way.
@ -8,7 +7,9 @@
* something like lp_includes.inc.php
* @package chamilo.learnpath
*/
/**
* Code
*/
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'database.lib.php';
require_once api_get_path(LIBRARY_PATH).'document.lib.php';

@ -1,12 +1,13 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script that displays a blank page (with later a message saying why)
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
$language_file = array('learnpath', 'document','exercice');
// Flag to allow for anonymous user - needs to be set before global.inc.php.
@ -42,4 +43,4 @@ if (isset($_GET['error'])) {
}
?>
</body>
</html>
</html>

@ -7,7 +7,9 @@
* @author Yannick Warnier <ywarnier@beeznest.org>
* @license GNU/GPL
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -1,14 +1,15 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Redirection script
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;
require 'back_compat.inc.php';
header('location: lp_controller.php?'.api_get_cidReq().'&action=list');
header('location: lp_controller.php?'.api_get_cidReq().'&action=list');

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This class defines the parent attributes and methods for Chamilo learnpaths and SCORM
* learnpaths. It is used by the scorm class.
@ -9,12 +8,10 @@
* @author Yannick Warnier <ywarnier@beeznest.org>
* @author Julio Montoya <gugli100@gmail.com> Several improvements and fixes
*/
/**
* Defines the learnpath parent class
* @package chamilo.learnpath
*/
class learnpath {
public $attempt = 0; // The number for the current ID view.
@ -3449,8 +3446,7 @@ class learnpath {
* and the prerequisite string on error.
* This function is based on the rules for aicc_script language as described in the SCORM 1.2 CAM documentation page 108.
* @param integer Optional item ID. If none given, uses the current open item.
* @return boolean True if prerequisites are matched, false otherwise
* @return string Empty string if true returned, prerequisites string otherwise.
* @return boolean True if prerequisites are matched, false otherwise - Empty string if true returned, prerequisites string otherwise.
*/
public function prerequisites_match($item = null) {
if ($this->debug > 0) {

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This is a learning path creation and player tool in Chamilo - previously
* learnpath_handler.php
@ -12,8 +11,9 @@
* @author Julio Montoya - Improving the list of templates
* @package chamilo.learnpath
*/
/* INIT SECTION */
/**
* INIT SECTION
*/
$this_section = SECTION_COURSES;
@ -363,4 +363,4 @@ echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
echo '</table>';
/* FOOTER */
Display::display_footer();
Display::display_footer();

@ -11,7 +11,9 @@
* @package chamilo.learnpath
*/
/* INIT SECTION */
/**
* INIT SECTION
*/
$this_section = SECTION_COURSES;
@ -303,4 +305,4 @@ if (isset($_POST['save_audio'])) {
echo $_SESSION['oLP']->overview();
/* FOOTER */
Display::display_footer();
Display::display_footer();

@ -9,7 +9,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -20,7 +20,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <yannick.warnier@beeznest.com>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php'
$use_anonymous = true;

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script contains the server part of the xajax interaction process. The client part is located
* in lp_api.php or other api's.
@ -9,7 +8,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script contains the server part of the xajax interaction process. The client part is located
* in lp_api.php or other api's.
@ -8,7 +7,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -8,7 +8,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script contains the server part of the xajax interaction process. The client part is located
* in lp_api.php or other api's.
@ -8,7 +7,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -1,13 +1,14 @@
<?php
/* For licensing terms, see /license.txt */
/**
* DEPRECATED (temporarily left here)
* Script that displays the footer frame for lp_view.php
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;
@ -20,4 +21,4 @@ include_once '../inc/reduced_header.inc.php';
<body>
<!--div id="clickme" style="border: 1px solid black; width:10px; height:7px;" onclick="myxajax.xajax_get_statuses();"></div-->
</body>
</html>
</html>

@ -6,7 +6,9 @@
* @package chamilo.learnpath
* @author Julio Montoya Armas <gugli100@gmail.com>
*/
/**
* Code
*/
$use_anonymous = true;
require_once 'back_compat.inc.php';
require_once 'learnpath.class.php';
@ -47,4 +49,4 @@ echo '<body dir="'.api_get_text_direction().'">';
echo '</div>';
?>
</body>
</html>
</html>

@ -11,7 +11,9 @@
* @package chamilo.learnpath
*/
/* INIT SECTION */
/**
* INIT SECTION
*/
$_SESSION['whereami'] = 'lp/build';
$this_section = SECTION_COURSES;

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script contains the server part of the xajax interaction process. The client part is located
* in lp_api.php or other api's.
@ -8,7 +7,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script contains the server part of the xajax interaction process. The client part is located
* in lp_api.php or other api's.
@ -8,7 +7,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -6,7 +6,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Including the global initialization file.
require_once '../inc/global.inc.php';
@ -96,4 +98,4 @@ $save_setting = api_get_setting('show_navigation_menu');
global $_setting;
$_setting['show_navigation_menu'] = false;
if ($debug > 0) { error_log('New LP - In lp_content.php - Loading '.$src, 0); }
header("Location: ".urldecode($src));
header("Location: ".urldecode($src));

@ -1,12 +1,13 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script allowing simple edition of learnpath information (title, description, etc)
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';
@ -226,4 +227,4 @@ echo '<table><tr><td width="550px">';
$form -> display();
echo '</td><td valign="top"><img src="../img/course_setting_layout.png" /></td></tr></table>';
Display::display_footer();
Display::display_footer();

@ -11,8 +11,9 @@
* @author Julio Montoya - Improving the list of templates
* @package chamilo.learnpath
*/
/* INIT SECTION */
/**
* INIT SECTION
*/
$this_section = SECTION_COURSES;

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This is a learning path creation and player tool in Chamilo - previously learnpath_handler.php
*
@ -10,7 +9,9 @@
* @author Yannick Warnier <ywarnier@beeznest.org> - cleaning and update for new SCORM tool
* @package chamilo.learnpath
*/
/**
* Code
*/
/* INIT SECTION */
$this_section = SECTION_COURSES;

@ -6,7 +6,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -1,13 +1,13 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script that displays the header frame for lp_view.php
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;
@ -80,4 +80,4 @@ echo '</td></tr><table>';
echo '</div>';
?>
</body>
</html>
</html>

@ -9,7 +9,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
$this_section = SECTION_COURSES;
if (empty($lp_controller_touched) || $lp_controller_touched != 1) {
header('location: lp_controller.php?action=list');
@ -497,4 +499,4 @@ if (is_array($flat_list)) {
echo "</table>";
echo "<br /><br />";
/* FOOTER */
Display::display_footer();
Display::display_footer();

@ -9,6 +9,9 @@
* @author Julio Montoya <gugli100@gmail.com> Lots of bug fixing
*
*/
/**
* Code
*/
require_once api_get_path(LIBRARY_PATH).'sortabletable.class.php';
require api_get_path(LIBRARY_PATH).'search/search_widget.php';
require api_get_path(LIBRARY_PATH).'search/DokeosQuery.php';

@ -15,7 +15,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Container script for the messages coming from the learnpath object. Initially, this wasn't supposed to be
* a separate file but rather some text included in lp_view.php, but SCORM involves loading a script that
@ -15,7 +14,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -10,7 +10,9 @@
* @author Yannick Warnier <ywarnier@beeznest.org> - cleaning and update for new SCORM tool
* @package chamilo.learnpath
*/
/**
* Code
*/
/* INIT SECTION */
$this_section = SECTION_COURSES;

@ -7,7 +7,9 @@
* @author Yannick Warnier <ywarnier@beeznest.org>
* @license GNU/GPL
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;
@ -58,4 +60,4 @@ if (isset($_SESSION['lpobject'])) {
}
session_write_close();
?>
<span><?php echo (!empty($mediaplayer)) ? $mediaplayer : '&nbsp;' ?></span>
<span><?php echo (!empty($mediaplayer)) ? $mediaplayer : '&nbsp;' ?></span>

@ -1,15 +1,16 @@
<?php
/* For licensing terms, see /license.txt */
/**
* This script displays statistics on the current learning path (scorm)
*
* This script must be included by lp_controller.php to get basic initialisation
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
* @todo clean this file like the exercise files J.M
*/
/**
* Code
*/
require_once 'learnpath.class.php';
require_once 'resourcelinker.inc.php';
require_once api_get_path(LIBRARY_PATH).'tracking.lib.php';

@ -6,7 +6,9 @@
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;

@ -1,12 +1,13 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Script managing the learnpath upload. To best treat the uploaded file, make sure we can identify it.
* @package chamilo.learnpath
* @author Yannick Warnier <ywarnier@beeznest.org>
*/
/**
* Code
*/
// Flag to allow for anonymous user - needs to be set before global.inc.php.
$use_anonymous = true;
require_once 'back_compat.inc.php';

@ -13,7 +13,9 @@
* @author Roan Embrechts, code improvements and refactoring
* @license GNU/GPL - See Chamilo license directory for details
*/
/**
* Code
*/
/* INIT SECTION */
$_SESSION['whereami'] = 'lp/view';

@ -10,7 +10,9 @@
* @author Yannick Warnier <ywarnier@beeznest.org> - cleaning and update for new SCORM tool
* @package chamilo.learnpath
*/
/**
* Code
*/
// Prevents FF 3.6 + Adobe Reader 9 bug see BT#794 when calling a pdf file in a LP.
if (isset($_GET['src'])) {
// Including the global initialization file.

@ -12,7 +12,6 @@
/**
* Defines the "OpenofficeText" child of class "learnpath"
* @package chamilo.learnpath.OpenofficeDocument
*/
require_once 'openoffice_document.class.php';
if (api_get_setting('search_enabled') == 'true') {
@ -20,7 +19,9 @@ if (api_get_setting('search_enabled') == 'true') {
require_once api_get_path(LIBRARY_PATH).'search/DokeosIndexer.class.php';
require_once api_get_path(LIBRARY_PATH).'search/IndexableChunk.class.php';
}
/**
* @package chamilo.learnpath.OpenofficeDocument
*/
class OpenofficeText extends OpenofficeDocument {
public $split_steps;

@ -1,6 +1,5 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Defines the OpenOfficeDocument class, which is meant as a conversion
* tool from Office text documents (.doc, .sxw, .odt, .docx) to
@ -9,16 +8,16 @@
* @author Eric Marguin <eric.marguin@dokeos.com>
* @license GNU/GPL
*/
/**
* Defines the "OpenOfficeTextDocument" child of class "learnpath"
* @package chamilo.learnpath.openofficedocument
*/
require_once 'openoffice_document.class.php';
require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';
require_once api_get_path(LIBRARY_PATH).'search/DokeosIndexer.class.php';
require_once api_get_path(LIBRARY_PATH).'search/IndexableChunk.class.php';
/**
* @package chamilo.learnpath.openofficedocument
*/
class OpenOfficeTextDocument extends OpenofficeDocument {
public $split_steps;

@ -9,7 +9,9 @@
* @todo use the constants for the tools
* @todo use Database API instead of creating table names locally.
*/
/**
* Code
*/
/* INIT SECTION */
//$language_file = 'resourcelinker';

@ -9,7 +9,9 @@
* @todo reorganise code,
* use Database API instead of creating table names locally.
*/
/**
* Code
*/
/* INIT SECTION */
// Flag to allow for anonymous user - needs to be set before global.inc.php.

@ -11,7 +11,9 @@
* @author Roan Embrechts, code improvements and refactoring
* @author Yannick Warnier, complete refactoring <ywarnier@beeznest.org>
*/
/**
* Code (exit)
*/
exit;
// Flag to allow for anonymous user - needs to be set before global.inc.php.

Loading…
Cancel
Save