@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | } |
| 86 | 86 | } |
| 87 | 87 | if ($quota_bytes != 0) { |
| 88 | - $quota_percentage = round($quota_bytes / $total_quota_bytes, 2) * 100; |
|
| 88 | + $quota_percentage = round($quota_bytes / $total_quota_bytes, 2) * 100; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $session[] = array(addslashes(get_lang('Teacher').': '.$user_name).' ('.format_file_size($quota_bytes).')', $quota_percentage); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | } |
| 106 | 106 | $session[] = array(addslashes(sprintf(get_lang('TeacherXInSession'), $user_name)), $quota_percentage); |
| 107 | 107 | |
| 108 | - } |
|
| 108 | + } |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | $quota_percentage = round(($total_quota_bytes - $used_quota_bytes) / $total_quota_bytes, 2) * 100; |
@@ -29,19 +29,19 @@ |
||
| 29 | 29 | require_once __DIR__.'/chamilo_pens.php'; |
| 30 | 30 | |
| 31 | 31 | class ChamiloPackageHandler extends PENSPackageHandler { |
| 32 | - public function processPackage($request, $path_to_package) { |
|
| 33 | - $server = PENSServer::singleton(); |
|
| 34 | - // Moves the package to archive/pens |
|
| 35 | - $path_to_archives = api_get_path(SYS_ARCHIVE_PATH).'pens'; |
|
| 36 | - if (!is_dir($path_to_archives)) { |
|
| 37 | - mkdir($path_to_archives, 0777, true); |
|
| 38 | - } |
|
| 39 | - rename($path_to_package, $path_to_archives.'/'.$request->getFilename()); |
|
| 40 | - // Insert the request in the database |
|
| 41 | - $chamilo_pens = new ChamiloPens($request); |
|
| 42 | - $chamilo_pens->save(); |
|
| 43 | - $server->sendAlert($request, new PENSResponse(0, 'Package successfully processed')); |
|
| 44 | - } |
|
| 32 | + public function processPackage($request, $path_to_package) { |
|
| 33 | + $server = PENSServer::singleton(); |
|
| 34 | + // Moves the package to archive/pens |
|
| 35 | + $path_to_archives = api_get_path(SYS_ARCHIVE_PATH).'pens'; |
|
| 36 | + if (!is_dir($path_to_archives)) { |
|
| 37 | + mkdir($path_to_archives, 0777, true); |
|
| 38 | + } |
|
| 39 | + rename($path_to_package, $path_to_archives.'/'.$request->getFilename()); |
|
| 40 | + // Insert the request in the database |
|
| 41 | + $chamilo_pens = new ChamiloPens($request); |
|
| 42 | + $chamilo_pens->save(); |
|
| 43 | + $server->sendAlert($request, new PENSResponse(0, 'Package successfully processed')); |
|
| 44 | + } |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | $handler = new ChamiloPackageHandler(); |
@@ -326,9 +326,9 @@ |
||
| 326 | 326 | } |
| 327 | 327 | |
| 328 | 328 | /** |
| 329 | - * Serialize the course with the best serializer available |
|
| 330 | - * @return string |
|
| 331 | - */ |
|
| 329 | + * Serialize the course with the best serializer available |
|
| 330 | + * @return string |
|
| 331 | + */ |
|
| 332 | 332 | public static function serialize($course) |
| 333 | 333 | { |
| 334 | 334 | if (extension_loaded('igbinary')) { |
@@ -51,15 +51,15 @@ discard block |
||
| 51 | 51 | /** |
| 52 | 52 | * Displays the title + grid |
| 53 | 53 | */ |
| 54 | - public function display() |
|
| 54 | + public function display() |
|
| 55 | 55 | { |
| 56 | - // action links |
|
| 57 | - echo '<div class="actions" style="margin-bottom:20px">'; |
|
| 56 | + // action links |
|
| 57 | + echo '<div class="actions" style="margin-bottom:20px">'; |
|
| 58 | 58 | echo '<a href="grade_models.php">'.Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM).'</a>'; |
| 59 | - echo '<a href="'.api_get_self().'?action=add">'.Display::return_icon('add.png', get_lang('Add'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
| 60 | - echo '</div>'; |
|
| 59 | + echo '<a href="'.api_get_self().'?action=add">'.Display::return_icon('add.png', get_lang('Add'), '', ICON_SIZE_MEDIUM).'</a>'; |
|
| 60 | + echo '</div>'; |
|
| 61 | 61 | echo Display::grid_html('grade_model'); |
| 62 | - } |
|
| 62 | + } |
|
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * Returns a Form validator Obj |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | */ |
| 255 | 255 | public function delete($id) |
| 256 | 256 | { |
| 257 | - parent::delete($id); |
|
| 257 | + parent::delete($id); |
|
| 258 | 258 | } |
| 259 | 259 | |
| 260 | 260 | /** |
@@ -308,11 +308,11 @@ discard block |
||
| 308 | 308 | /** |
| 309 | 309 | * GradeModelComponents constructor. |
| 310 | 310 | */ |
| 311 | - public function __construct() |
|
| 311 | + public function __construct() |
|
| 312 | 312 | { |
| 313 | 313 | parent::__construct(); |
| 314 | 314 | $this->table = Database::get_main_table(TABLE_GRADE_MODEL_COMPONENTS); |
| 315 | - } |
|
| 315 | + } |
|
| 316 | 316 | |
| 317 | 317 | /** |
| 318 | 318 | * @param array $params |
@@ -321,7 +321,7 @@ discard block |
||
| 321 | 321 | */ |
| 322 | 322 | public function save($params, $show_query = false) |
| 323 | 323 | { |
| 324 | - $id = parent::save($params, $show_query); |
|
| 324 | + $id = parent::save($params, $show_query); |
|
| 325 | 325 | |
| 326 | 326 | return $id; |
| 327 | 327 | } |
@@ -503,10 +503,10 @@ discard block |
||
| 503 | 503 | * @param int exercise |
| 504 | 504 | * @param array $check_in_question_list |
| 505 | 505 | * @param array $categoriesAddedInExercise |
| 506 | - * |
|
| 507 | - * @param int $exerciseId |
|
| 508 | - * @return array |
|
| 509 | - */ |
|
| 506 | + * |
|
| 507 | + * @param int $exerciseId |
|
| 508 | + * @return array |
|
| 509 | + */ |
|
| 510 | 510 | public static function getQuestionsByCat( |
| 511 | 511 | $exerciseId, |
| 512 | 512 | $check_in_question_list = array(), |
@@ -636,9 +636,9 @@ discard block |
||
| 636 | 636 | } |
| 637 | 637 | |
| 638 | 638 | /** |
| 639 | - * Display signs [+] and/or (>0) after question title if question has options |
|
| 640 | - * scoreAlwaysPositive and/or uncheckedMayScore |
|
| 641 | - */ |
|
| 639 | + * Display signs [+] and/or (>0) after question title if question has options |
|
| 640 | + * scoreAlwaysPositive and/or uncheckedMayScore |
|
| 641 | + */ |
|
| 642 | 642 | public function displayQuestionOption($in_objQuestion) |
| 643 | 643 | { |
| 644 | 644 | if ($in_objQuestion->type == MULTIPLE_ANSWER && $in_objQuestion->scoreAlwaysPositive) { |
@@ -654,7 +654,7 @@ discard block |
||
| 654 | 654 | * key of $tabCategoryQuestions are the category id (0 for not in a category) |
| 655 | 655 | * value is the array of question id of this category |
| 656 | 656 | * Sort question by Category |
| 657 | - */ |
|
| 657 | + */ |
|
| 658 | 658 | public static function sortTabByBracketLabel($in_tab) |
| 659 | 659 | { |
| 660 | 660 | $tabResult = array(); |
@@ -715,7 +715,7 @@ discard block |
||
| 715 | 715 | * @param int $exerciseId |
| 716 | 716 | * @author - hubert borderiou |
| 717 | 717 | * @return int |
| 718 | - */ |
|
| 718 | + */ |
|
| 719 | 719 | public static function getNumberMaxQuestionByCat($exerciseId) |
| 720 | 720 | { |
| 721 | 721 | $res_num_max = 0; |
@@ -304,7 +304,7 @@ |
||
| 304 | 304 | |
| 305 | 305 | // Object initialisation |
| 306 | 306 | $dropbox_person = new Dropbox_Person(api_get_user_id(), $is_courseAdmin, $is_courseTutor); |
| 307 | - // note: are the $is_courseAdmin and $is_courseTutor parameters needed???? |
|
| 307 | + // note: are the $is_courseAdmin and $is_courseTutor parameters needed???? |
|
| 308 | 308 | |
| 309 | 309 | // Constructing the array that contains the total number of feedback messages per document. |
| 310 | 310 | $number_feedback = get_total_number_feedback(); |
@@ -595,7 +595,7 @@ |
||
| 595 | 595 | .' width="40px">'; |
| 596 | 596 | $userInfo = api_get_user_info($user_invitation_id); |
| 597 | 597 | $invitations .= '<a href="'.api_get_path(WEB_PATH).'main/social/profile.php?u='.$user_invitation_id.'">' |
| 598 | - .api_get_person_name($userInfo['firstname'], $userInfo['lastname']).'</a>'; |
|
| 598 | + .api_get_person_name($userInfo['firstname'], $userInfo['lastname']).'</a>'; |
|
| 599 | 599 | |
| 600 | 600 | $invitations .= '<div class="pull-right">'; |
| 601 | 601 | $invitations .= Display::toolbarButton( |
@@ -192,7 +192,7 @@ |
||
| 192 | 192 | function listTutorType($condition) |
| 193 | 193 | {
|
| 194 | 194 | global $tableTutorCompany; |
| 195 | - $sql = "SELECT * FROM $tableTutorCompany WHERE ".$condition." ORDER BY alias ASC, document_number ASC;"; |
|
| 195 | + $sql = "SELECT * FROM $tableTutorCompany WHERE ".$condition." ORDER BY alias ASC, document_number ASC;"; |
|
| 196 | 196 | $res = Database::query($sql); |
| 197 | 197 | $aux = array(); |
| 198 | 198 | while ($row = Database::fetch_assoc($res)) {
|
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | if (api_is_platform_admin() && $enable) {
|
| 12 | 12 | echo '<div class="panel panel-default">'; |
| 13 | 13 | echo '<div class="panel-heading" role="tab">'; |
| 14 | - echo '<h4 class="panel-title">'.$title.'</h4>'; |
|
| 14 | + echo '<h4 class="panel-title">'.$title.'</h4>'; |
|
| 15 | 15 | echo '</div>'; |
| 16 | 16 | echo '<div class="panel-collapse collapse in" role="tabpanel">'; |
| 17 | 17 | echo '<div class="panel-body">'; |