From 9f535715a9f1b4e1ddbd08e717899419123625ac Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Sat, 23 Jul 2011 10:23:10 -0500 Subject: [PATCH] Minor - Adapting code comments to phpdoc --- main/exercice/GC.php | 107 ++++++++---------- main/exercice/Hpdownload.php | 7 +- main/exercice/addlimits.php | 8 +- main/exercice/admin.php | 7 +- main/exercice/adminhp.php | 70 ++++++------ main/exercice/exercice.php | 6 +- main/exercice/exercise.class.php | 5 +- main/exercice/exercise.lib.php | 33 +++--- main/exercice/exercise_admin.php | 17 +-- main/exercice/exercise_history.php | 13 ++- main/exercice/exercise_show.php | 6 +- main/exercice/exercise_submit.php | 6 +- main/exercice/exercise_submit_modal.php | 5 +- main/exercice/export/exercise_import.php | 9 +- main/exercice/export/qti/qti_export.php | 20 ++-- main/exercice/export/qti2/qti2_classes.php | 38 +++++-- main/exercice/export/qti2/qti2_export.php | 29 ++--- main/exercice/export/scorm/scorm_classes.php | 21 ++-- main/exercice/export/scorm/scorm_export.php | 16 ++- main/exercice/feedback.php | 6 +- main/exercice/hotpotatoes.php | 8 +- main/exercice/hotspot.inc.php | 5 +- main/exercice/hotspot_actionscript.as.php | 7 +- .../hotspot_actionscript_admin.as.php | 8 +- main/exercice/hotspot_admin.inc.php | 17 +-- main/exercice/hotspot_answers.as.php | 15 ++- main/exercice/hotspot_lang_conversion.php | 8 +- main/exercice/hotspot_save.inc.php | 13 ++- main/exercice/hotspot_savescore.inc.php | 10 +- main/exercice/hotspot_updatescore.inc.php | 25 ++-- main/exercice/mark_free_answer.php | 12 +- ...le_answer_combination_true_false.class.php | 9 +- main/exercice/qti2.php | 6 +- main/exercice/question.class.php | 7 +- main/exercice/question_admin.inc.php | 8 +- main/exercice/question_create.php | 10 +- main/exercice/savescores.php | 7 +- main/exercice/showinframes.php | 17 +-- main/exercice/testheaderpage.php | 7 +- main/exercice/upload_exercise.php | 6 +- 40 files changed, 344 insertions(+), 290 deletions(-) mode change 100644 => 100755 main/exercice/export/qti/qti_export.php mode change 100644 => 100755 main/exercice/export/scorm/scorm_export.php diff --git a/main/exercice/GC.php b/main/exercice/GC.php index 10685a718d..6e9ed9d7b3 100755 --- a/main/exercice/GC.php +++ b/main/exercice/GC.php @@ -1,84 +1,67 @@ "; - HotPotGC($_configuration['root_sys'],1,1); - +echo "Garbage Collector
"; +HotPotGC($_configuration['root_sys'],1,1); - // functions - function HotPotGC($root_sys,$flag,$userID) - { - // flag[0,1] - print or delete the HotPotatoes temp files (.t.html) - $documentPath = $root_sys."courses"; - require_once(api_get_path(LIBRARY_PATH)."fileManage.lib.php"); - HotPotGCt($documentPath,$flag,$userID); - } +/** + * functions + */ +/** + * Garbage collector + */ +function HotPotGC($root_sys,$flag,$userID) { + // flag[0,1] - print or delete the HotPotatoes temp files (.t.html) + $documentPath = $root_sys."courses"; + require_once(api_get_path(LIBRARY_PATH)."fileManage.lib.php"); + HotPotGCt($documentPath,$flag,$userID); +} - function HotPotGCt($folder,$flag,$userID) - { // Garbage Collector - $filelist = array(); +function HotPotGCt($folder,$flag,$userID) { // Garbage Collector + $filelist = array(); if ($dir = @opendir($folder)) { while (($file = readdir($dir)) !== false) { if ( $file != ".") { if ($file != "..") - { + { $full_name = $folder."/".$file; - if (is_dir($full_name)) - { - HotPotGCt($folder."/".$file,$flag); - } - else - { - $filelist[] = $file; + if (is_dir($full_name)) + { + HotPotGCt($folder."/".$file,$flag); + } + else + { + $filelist[] = $file; } } } } closedir($dir); } - while (list ($key, $val) = each ($filelist)) - { - if (stristr($val,$userID.".t.html")) - { if ($flag == 1) - { - my_delete($folder."/".$val); - } - else - { - echo $folder."/".$val."
"; - } - } - } - } - - -?> + while (list ($key, $val) = each ($filelist)) + { + if (stristr($val,$userID.".t.html")) + { if ($flag == 1) + { + my_delete($folder."/".$val); + } + else + { + echo $folder."/".$val."
"; + } + } + } +} diff --git a/main/exercice/Hpdownload.php b/main/exercice/Hpdownload.php index 053a2b67bf..c645981b62 100755 --- a/main/exercice/Hpdownload.php +++ b/main/exercice/Hpdownload.php @@ -1,13 +1,14 @@ \ No newline at end of file +?> diff --git a/main/exercice/addlimits.php b/main/exercice/addlimits.php index 740c23b466..eda1041e13 100755 --- a/main/exercice/addlimits.php +++ b/main/exercice/addlimits.php @@ -6,9 +6,9 @@ * @author * @version $Id: admin.php 10680 2007-01-11 21:26:23Z pcool $ */ -/* - including the global file -*/ +/** + * including the global file + */ require_once '../inc/global.inc.php'; /* @@ -199,4 +199,4 @@ if (isset($_POST['ok'])) { Database::query($query); } } -?> \ No newline at end of file +?> diff --git a/main/exercice/admin.php b/main/exercice/admin.php index c6076e5386..a3a8846d95 100755 --- a/main/exercice/admin.php +++ b/main/exercice/admin.php @@ -1,6 +1,5 @@ '../gradebook/'.$_SESSION['gradebook_dest'], - 'name' => get_lang('ToolGradebook') - ); + $interbreadcrumb[]= array ( + 'url' => '../gradebook/'.$_SESSION['gradebook_dest'], + 'name' => get_lang('ToolGradebook') + ); } $interbreadcrumb[]=array("url" => "exercice.php","name" => get_lang('Exercices')); @@ -98,14 +92,12 @@ require_once(api_get_path(SYS_CODE_PATH).'/exercice/hotpotatoes.lib.php'); window.location='exercice.php'; "; - } +if (isset($newName)) { + if ($newName!="") { + //alter database record for that test + SetComment($hotpotatoesName,$newName); + echo ""; + } } echo "
"; @@ -115,10 +107,12 @@ echo " "; @@ -126,4 +120,4 @@ echo ""; echo "
"; -Display::display_footer(); \ No newline at end of file +Display::display_footer(); diff --git a/main/exercice/exercice.php b/main/exercice/exercice.php index 823775ad41..2ca8b10dff 100755 --- a/main/exercice/exercice.php +++ b/main/exercice/exercice.php @@ -8,7 +8,9 @@ * @author Wolfgang Schneider, code/html cleanup * @author Julio Montoya , lots of cleanup + several improvements */ - +/** + * Code + */ // name of the language file that needs to be included $language_file = array('exercice','tracking'); @@ -1127,4 +1129,4 @@ if ($show == 'result') { if ($origin != 'learnpath') { //so we are not in learnpath tool Display :: display_footer(); -} \ No newline at end of file +} diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index 29e74fdb21..7e81b17b53 100755 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -1,6 +1,5 @@ Feedback , 1=>DirectFeedback, 2=>NoFeedback diff --git a/main/exercice/exercise.lib.php b/main/exercice/exercise.lib.php index 4b4c09f8e4..69c3cff5f5 100755 --- a/main/exercice/exercise.lib.php +++ b/main/exercice/exercise.lib.php @@ -1,16 +1,17 @@ - * @version $Id: exercise.lib.php 22247 2009-07-20 15:57:25Z ivantcholakov $ + * shows a question and its answers + * @package chamilo.exercise + * @author Olivier Brouckaert + * @version $Id: exercise.lib.php 22247 2009-07-20 15:57:25Z ivantcholakov $ + */ +/** + * Code */ - // The initialization class for the online editor is needed here. require_once dirname(__FILE__).'/../inc/lib/fckeditor/fckeditor.php'; @@ -1187,7 +1188,7 @@ function show_score($score, $weight, $show_percentage = true, $use_platform_sett /** * Converts a numeric value in a percentage example 0.66666 to 66.67 % * @param $value - * @return unknown_type + * @return float Converted number */ function convert_to_percentage($value) { $return = '-'; @@ -1427,10 +1428,10 @@ function get_best_attempt_by_user($user_id, $exercise_id, $course_code, $session /** * Get average score (NO Exercises in LPs ) - * @param int exercise id + * @param int exercise id * @param string course code - * @param int session id - * @return + * @param int session id + * @return float Average score */ function get_average_score($exercise_id, $course_code, $session_id) { $user_results = get_all_exercise_results($exercise_id, $course_code, $session_id); @@ -1450,10 +1451,10 @@ function get_average_score($exercise_id, $course_code, $session_id) { /** * Get average score by score (NO Exercises in LPs ) - * @param int exercise id + * @param int exercise id * @param string course code - * @param int session id - * @return + * @param int session id + * @return float Average score */ function get_average_score_by_course($course_code, $session_id) { $user_results = get_all_exercise_results_by_course($course_code, $session_id, false); @@ -1478,7 +1479,7 @@ function get_average_score_by_course($course_code, $session_id) { * @param int exercise id * @param string course code * @param int session id - * @return + * @return float Best average score */ function get_best_average_score_by_exercise($exercise_id, $course_code, $session_id, $user_count) { $user_results = get_best_exercise_results_by_user($exercise_id, $course_code, $session_id); diff --git a/main/exercice/exercise_admin.php b/main/exercice/exercise_admin.php index 5b423699a0..922775a5bd 100755 --- a/main/exercice/exercise_admin.php +++ b/main/exercice/exercise_admin.php @@ -1,14 +1,15 @@ validate()) { } $form->display(); } -Display::display_footer(); \ No newline at end of file +Display::display_footer(); diff --git a/main/exercice/exercise_history.php b/main/exercice/exercise_history.php index b58c4b9d26..28e9517a76 100755 --- a/main/exercice/exercise_history.php +++ b/main/exercice/exercise_history.php @@ -1,6 +1,5 @@ '; -} \ No newline at end of file +} diff --git a/main/exercice/exercise_submit_modal.php b/main/exercice/exercise_submit_modal.php index e096f3e90a..dd9977127b 100755 --- a/main/exercice/exercise_submit_modal.php +++ b/main/exercice/exercise_submit_modal.php @@ -4,6 +4,9 @@ * @package chamilo.exercise * @author Julio Montoya */ +/** + * Code + */ $language_file=array('exercice'); require_once '../inc/global.inc.php'; api_protect_course_script(false); @@ -571,4 +574,4 @@ if ($links!='') { self.parent.window.location.href = "exercise_submit.php?exerciseId='.$exerciseId.'&questionNum='.$questionNum.'&exerciseType='.$exerciseType.'&origin='.$origin.'"; //self.parent.tb_remove(); '; -} \ No newline at end of file +} diff --git a/main/exercice/export/exercise_import.php b/main/exercice/export/exercise_import.php index 97b57d330e..c7eafab801 100755 --- a/main/exercice/export/exercise_import.php +++ b/main/exercice/export/exercise_import.php @@ -1,12 +1,13 @@ */ +/** + * Code + */ require '../../inc/global.inc.php'; diff --git a/main/exercice/export/qti/qti_export.php b/main/exercice/export/qti/qti_export.php old mode 100644 new mode 100755 index b9efd183b4..de7a3de584 --- a/main/exercice/export/qti/qti_export.php +++ b/main/exercice/export/qti/qti_export.php @@ -1,18 +1,16 @@ * @author Amand Tihon * @author Sebastien Piraux - * @author Yannick Warnier - * + * @author Yannick Warnier + * @package chamilo.exercise.qti */ - +/** + * Code + */ +if ( count( get_included_files() ) == 1 ) die( '---' ); include dirname(__FILE__) . '/qti_classes.php'; /*-------------------------------------------------------- Classes @@ -30,6 +28,7 @@ include dirname(__FILE__) . '/qti_classes.php'; * - anonymous_attempts * * @author Amand Tihon + * @package chamilo.exercise.qti */ class ImsSection { @@ -176,6 +175,7 @@ class ImsSection * Every start_*() and corresponding end_*(), as well as export_*() methods return a string. * * @warning Attached files are NOT exported. + * @package chamilo.exercise.qti * @author Amand Tihon */ class ImsItem @@ -348,4 +348,4 @@ function export_question($questionId, $standalone=True) } -?> \ No newline at end of file +?> diff --git a/main/exercice/export/qti2/qti2_classes.php b/main/exercice/export/qti2/qti2_classes.php index 009d4ac2b8..11fb0880fa 100755 --- a/main/exercice/export/qti2/qti2_classes.php +++ b/main/exercice/export/qti2/qti2_classes.php @@ -1,14 +1,14 @@ * @author Yannick Warnier - updated ImsAnswerHotspot to match QTI norms + * @package chamilo.exercise */ +/** + * Code + */ +if ( count( get_included_files() ) == 1 ) die( '---' ); // answer types define('UNIQUE_ANSWER', 1); define('MCUA', 1); @@ -41,7 +41,10 @@ require_once(api_get_path(SYS_CODE_PATH).'/exercice/fill_blanks.class.php'); //include_once $path . '/../../lib/answer_truefalse.class.php'; //include_once $path . '/../../lib/answer_fib.class.php'; //include_once $path . '/../../lib/answer_matching.class.php'; - +/** + * + * @package chamilo.exercise + */ class Ims2Question extends Question { /** @@ -87,7 +90,10 @@ class Ims2Question extends Question return true; } } - +/** + * Class + * @package chamilo.exercise + */ class ImsAnswerMultipleChoice extends Answer { /** @@ -160,6 +166,10 @@ class ImsAnswerMultipleChoice extends Answer } } +/** + * Class + * @package chamilo.exercise + */ class ImsAnswerFillInBlanks extends Answer { /** @@ -288,6 +298,10 @@ class ImsAnswerFillInBlanks extends Answer } } +/** + * Class + * @package chamilo.exercise + */ class ImsAnswerMatching extends Answer { /** @@ -377,6 +391,10 @@ class ImsAnswerMatching extends Answer } +/** + * Class + * @package chamilo.exercise + */ class ImsAnswerHotspot extends Answer { /** @@ -467,6 +485,10 @@ class ImsAnswerHotspot extends Answer } } +/** + * Class + * @package chamilo.exercise + */ class ImsAnswerFree extends Answer { /** diff --git a/main/exercice/export/qti2/qti2_export.php b/main/exercice/export/qti2/qti2_export.php index 1804980875..68d9dc3058 100755 --- a/main/exercice/export/qti2/qti2_export.php +++ b/main/exercice/export/qti2/qti2_export.php @@ -1,20 +1,18 @@ - * @author Yannick Warnier + * @author Yannick Warnier + * @package chamilo.exercise */ - +/** + * Code + */ +if ( count( get_included_files() ) == 1 ) die( '---' ); require dirname(__FILE__) . '/qti2_classes.php'; - -/*-------------------------------------------------------- - Classes - --------------------------------------------------------*/ +/** + * Classes +*/ // answer types define(UNIQUE_ANSWER, 1); define(MULTIPLE_ANSWER, 2); @@ -30,7 +28,8 @@ define(HOT_SPOT_ORDER, 7); * * Every start_*() and corresponding end_*(), as well as export_*() methods return a string. * - * @warning Attached files are NOT exported. + * @note Attached files are NOT exported. + * @package chamilo.exercise */ class ImsAssessmentItem { @@ -158,6 +157,7 @@ class ImsAssessmentItem * - anonymous_attempts * * @author Amand Tihon + * @package chamilo.exercise */ class ImsSection { @@ -304,6 +304,7 @@ class ImsSection * * @warning Attached files are NOT exported. * @author Amand Tihon + * @package chamilo.exercise */ class ImsItem { @@ -475,4 +476,4 @@ function export_question($questionId, $standalone=true) $ims = new ImsAssessmentItem($question); return $ims->export($standalone); -} \ No newline at end of file +} diff --git a/main/exercice/export/scorm/scorm_classes.php b/main/exercice/export/scorm/scorm_classes.php index 56dd622e36..5b5570b0a4 100755 --- a/main/exercice/export/scorm/scorm_classes.php +++ b/main/exercice/export/scorm/scorm_classes.php @@ -1,14 +1,14 @@ - * @author Yannick Warnier + * @author Yannick Warnier + * @package chamilo.exercise.scorm + */ +/** + * Code */ +if ( count( get_included_files() ) == 1 ) die( '---' ); require_once(api_get_path(SYS_CODE_PATH).'exercice/exercise.class.php'); require_once(api_get_path(SYS_CODE_PATH).'exercice/question.class.php'); require_once(api_get_path(SYS_CODE_PATH).'exercice/answer.class.php'); @@ -46,6 +46,7 @@ define('MULTIPLE_ANSWER_COMBINATION', 9); * part (the process). * The two bits are separate to allow for a one-big-javascript and a one-big-html * files to be built. Each export function thus returns an array of HTML+JS + * @package chamilo.exercise.scorm */ class ScormQuestion extends Question { @@ -168,6 +169,7 @@ class ScormQuestion extends Question /** * This class handles the export to SCORM of a multiple choice question * (be it single answer or multiple answers) + * @package chamilo.exercise.scorm */ class ScormAnswerMultipleChoice extends Answer { @@ -278,6 +280,7 @@ class ScormAnswerMultipleChoice extends Answer /** * This class handles the SCORM export of true/false questions + * @package chamilo.exercise.scorm */ class ScormAnswerTrueFalse extends Answer { @@ -335,6 +338,7 @@ class ScormAnswerTrueFalse extends Answer /** * This class handles the SCORM export of fill-in-the-blanks questions + * @package chamilo.exercise.scorm */ class ScormAnswerFillInBlanks extends Answer { @@ -407,6 +411,7 @@ class ScormAnswerFillInBlanks extends Answer /** * This class handles the SCORM export of matching questions + * @package chamilo.exercise.scorm */ class ScormAnswerMatching extends Answer { @@ -515,6 +520,7 @@ class ScormAnswerMatching extends Answer /** * This class handles the SCORM export of free-answer questions + * @package chamilo.exercise.scorm */ class ScormAnswerFree extends Answer { @@ -551,6 +557,7 @@ class ScormAnswerFree extends Answer } /** * This class handles the SCORM export of hotpot questions + * @package chamilo.exercise.scorm */ class ScormAnswerHotspot extends Answer { diff --git a/main/exercice/export/scorm/scorm_export.php b/main/exercice/export/scorm/scorm_export.php old mode 100644 new mode 100755 index 7fb9930f50..38da577eca --- a/main/exercice/export/scorm/scorm_export.php +++ b/main/exercice/export/scorm/scorm_export.php @@ -1,14 +1,12 @@ - * @author Yannick Warnier + * @package chamilo.exercise.scorm */ +/** + * Code + */ +if ( count( get_included_files() ) == 1 ) die( '---' ); require dirname(__FILE__) . '/scorm_classes.php'; @@ -647,4 +645,4 @@ function export_question($questionId, $standalone=true, $js_id) //echo "
".print_r($scorm,1)."
";exit; return $assessmentItem->export(); } -?> \ No newline at end of file +?> diff --git a/main/exercice/feedback.php b/main/exercice/feedback.php index cce98d133a..6d15d96707 100755 --- a/main/exercice/feedback.php +++ b/main/exercice/feedback.php @@ -1,13 +1,15 @@ '; } // Display the footer. -Display::display_footer(); \ No newline at end of file +Display::display_footer(); diff --git a/main/exercice/hotspot.inc.php b/main/exercice/hotspot.inc.php index f8d55ffbbf..3f952bfe1a 100755 --- a/main/exercice/hotspot.inc.php +++ b/main/exercice/hotspot.inc.php @@ -1,11 +1,12 @@ 0){echo str_repeat(' ',0).'$modifyAnswers was set - end'."
\n";} -} \ No newline at end of file +} diff --git a/main/exercice/hotspot_answers.as.php b/main/exercice/hotspot_answers.as.php index 8b2fd7a79a..97c34dd10e 100755 --- a/main/exercice/hotspot_answers.as.php +++ b/main/exercice/hotspot_answers.as.php @@ -1,11 +1,14 @@ \ No newline at end of file +?> diff --git a/main/exercice/hotspot_save.inc.php b/main/exercice/hotspot_save.inc.php index c88fc739fc..83c3c5eede 100755 --- a/main/exercice/hotspot_save.inc.php +++ b/main/exercice/hotspot_save.inc.php @@ -1,13 +1,14 @@ selectId(); -if ($_GET['answerId'] == "0") // click is NOT on a hotspot -{ +if ($_GET['answerId'] == "0") { // click is NOT on a hotspot $hit = 0; $answerId = $hotspotId; @@ -32,9 +31,7 @@ if ($_GET['answerId'] == "0") // click is NOT on a hotspot // Save clicking order //$answerOrderId = count($_SESSION['exerciseResult'][$questionId]['order'])+1; //$_SESSION['exerciseResult'][$questionId]['order'][$answerOrderId] = $answerId; -} -else // user clicked ON a hotspot -{ +} else { // user clicked ON a hotspot $hit = 1; $answerId = $hotspotId; @@ -60,4 +57,4 @@ $TBL_TRACK_E_HOTSPOT = Database::get_statistic_table(STATISTIC_TRACK_E_HOTSPOT // update db $update_id = $_SESSION['exerciseResult'][$questionId]['ids'][$answerId]; $sql = "UPDATE $TBL_TRACK_E_HOTSPOT SET coordinate = '".Database::escape_string($coordinates)."' WHERE id ='".Database::escape_string($update_id)."' LIMIT 1 ;;"; -$result = Database::query($sql); \ No newline at end of file +$result = Database::query($sql); diff --git a/main/exercice/mark_free_answer.php b/main/exercice/mark_free_answer.php index 315fdb3f07..1ebd7e06ba 100755 --- a/main/exercice/mark_free_answer.php +++ b/main/exercice/mark_free_answer.php @@ -1,19 +1,17 @@ * @version $Id: admin.php 10680 2007-01-11 21:26:23Z pcool $ * * @todo respect coding guidelines */ - -/* - INIT SECTION -*/ +/** + * Code + */ // name of the language file that needs to be included $language_file='exercice'; @@ -191,4 +189,4 @@ if($action == 'mark'){ "\n" .""; } -Display::display_footer(); \ No newline at end of file +Display::display_footer(); diff --git a/main/exercice/multiple_answer_combination_true_false.class.php b/main/exercice/multiple_answer_combination_true_false.class.php index 867efb8b41..0c7f2815dc 100644 --- a/main/exercice/multiple_answer_combination_true_false.class.php +++ b/main/exercice/multiple_answer_combination_true_false.class.php @@ -1,13 +1,14 @@ options = array('1'=>get_lang('True'),'0' =>get_lang('False'), '2' =>get_lang('DontKnow')); } } -endif; \ No newline at end of file +endif; diff --git a/main/exercice/qti2.php b/main/exercice/qti2.php index e713da6cd0..bdff74deb7 100755 --- a/main/exercice/qti2.php +++ b/main/exercice/qti2.php @@ -6,7 +6,9 @@ * @author Ronny Velasquez * @version $Id: qti2.php 2010-03-12 12:14:25Z $ */ - +/** + * Code + */ // name of the language file that needs to be included $language_file = 'exercice'; @@ -98,4 +100,4 @@ ch_qti2_display_form(); // display the footer Display::display_footer(); -?> \ No newline at end of file +?> diff --git a/main/exercice/question.class.php b/main/exercice/question.class.php index f8a9d9f257..af442a2e5d 100755 --- a/main/exercice/question.class.php +++ b/main/exercice/question.class.php @@ -1,13 +1,14 @@ lot of bug fixes */ - +/** + * Code + */ if(!class_exists('Question')): // answer types @@ -1306,4 +1307,4 @@ abstract class Question return $question_id; } } -endif; \ No newline at end of file +endif; diff --git a/main/exercice/question_admin.inc.php b/main/exercice/question_admin.inc.php index e4c67454c8..78bf75ad19 100755 --- a/main/exercice/question_admin.inc.php +++ b/main/exercice/question_admin.inc.php @@ -1,6 +1,5 @@ display(); } -} \ No newline at end of file +} diff --git a/main/exercice/question_create.php b/main/exercice/question_create.php index 865520385e..25d1d14847 100755 --- a/main/exercice/question_create.php +++ b/main/exercice/question_create.php @@ -1,6 +1,12 @@ \ No newline at end of file +?> diff --git a/main/exercice/showinframes.php b/main/exercice/showinframes.php index 74e441203a..0d2ead5697 100755 --- a/main/exercice/showinframes.php +++ b/main/exercice/showinframes.php @@ -1,14 +1,13 @@ - \ No newline at end of file + diff --git a/main/exercice/testheaderpage.php b/main/exercice/testheaderpage.php index 0b9a49ac25..7182589bce 100755 --- a/main/exercice/testheaderpage.php +++ b/main/exercice/testheaderpage.php @@ -2,9 +2,12 @@ /* For licensing terms, see /license.txt */ /** * Code library for HotPotatoes integration. -* @package dokeos.exercise +* @package chamilo.exercise * @author Istvan Mandak */ +/** + * Code + */ // name of the language file that needs to be included $language_file='exercice'; @@ -34,4 +37,4 @@ if (!empty($gradebook) && $gradebook=='view') { } $interbreadcrumb[]= array ("url"=>"./exercice.php", "name"=> get_lang('Exercices')); Display::display_header($nameTools,"Exercise"); -echo ""; \ No newline at end of file +echo ""; diff --git a/main/exercice/upload_exercise.php b/main/exercice/upload_exercise.php index 166923dcf2..9b00a242b5 100755 --- a/main/exercice/upload_exercise.php +++ b/main/exercice/upload_exercise.php @@ -6,7 +6,9 @@ * Encoding fixes Julio Montoya * @package chamilo.exercise */ -// Language files that should be included +/** + * Language files that should be included + */ $language_file[] = 'learnpath'; $language_file[] = 'exercice'; // setting the help @@ -294,4 +296,4 @@ function lp_upload_quiz_action_handling() { echo ''; } } -} \ No newline at end of file +}