Minor - format code

pull/3090/head
Julio Montoya 6 years ago
parent a6e19a6377
commit fa280ad284
  1. 40
      main/admin/statistics/index.php
  2. 3
      main/admin/user_linking_requests.php
  3. 4
      main/auth/courses_controller.php
  4. 1
      main/auth/external_login/login.azure.php
  5. 3
      main/auth/inscription.php
  6. 2
      main/auth/justification.php
  7. 19
      main/auth/ldap/authldap.php
  8. 23
      main/dropbox/dropbox_init.inc.php
  9. 6
      main/exercise/TestCategory.php
  10. 9
      main/exercise/exercise.class.php
  11. 2
      main/exercise/exercise_result.class.php
  12. 3
      main/exercise/export/qti2/qti2_classes.php
  13. 1
      main/exercise/export/scorm/ScormQuestion.php
  14. 5
      main/exercise/question.class.php
  15. 2
      main/exercise/question_pool.php
  16. 40
      main/gradebook/lib/be/category.class.php
  17. 1
      main/gradebook/lib/fe/gradebooktable.class.php
  18. 5
      main/gradebook/lib/flatview_data_generator.class.php
  19. 10
      main/gradebook/lib/gradebook_data_generator.class.php
  20. 2
      main/inc/ajax/course.ajax.php
  21. 6
      main/inc/ajax/myspace.ajax.php
  22. 6
      main/inc/ajax/statistics.ajax.php
  23. 1
      main/inc/global-min.inc.php
  24. 3
      main/inc/lib/CourseChatUtils.php
  25. 2
      main/inc/lib/CoursesAndSessionsCatalog.class.php
  26. 6
      main/inc/lib/MailTemplateManager.php
  27. 10
      main/inc/lib/NotificationEvent.php
  28. 7
      main/inc/lib/api.lib.php
  29. 2
      main/inc/lib/array.lib.php
  30. 1
      main/inc/lib/certificate.lib.php
  31. 10
      main/inc/lib/course.lib.php
  32. 5
      main/inc/lib/course_home.lib.php
  33. 21
      main/inc/lib/database.lib.php
  34. 27
      main/inc/lib/document.lib.php
  35. 3
      main/inc/lib/events.lib.php
  36. 30
      main/inc/lib/exercise.lib.php
  37. 11
      main/inc/lib/extra_field.lib.php
  38. 8
      main/inc/lib/formvalidator/FormValidator.class.php
  39. 2
      main/inc/lib/hook/HookEvent.php
  40. 2
      main/inc/lib/hook/interfaces/HookAdminBlockObserverInterface.php
  41. 2
      main/inc/lib/hook/interfaces/HookConditionalLoginObserverInterface.php
  42. 2
      main/inc/lib/hook/interfaces/HookCreateCourseObserverInterface.php
  43. 2
      main/inc/lib/hook/interfaces/HookCreateUserObserverInterface.php
  44. 4
      main/inc/lib/hook/interfaces/HookMyStudentsLpTrackingObserverInterface.php
  45. 4
      main/inc/lib/hook/interfaces/HookMyStudentsQuizTrackingObserverInterface.php
  46. 2
      main/inc/lib/hook/interfaces/HookNotificationContentObserverInterface.php
  47. 2
      main/inc/lib/hook/interfaces/HookNotificationTitleObserverInterface.php
  48. 2
      main/inc/lib/hook/interfaces/HookResubscribeObserverInterface.php
  49. 2
      main/inc/lib/hook/interfaces/HookUpdateUserObserverInterface.php
  50. 2
      main/inc/lib/hook/interfaces/HookWSRegistrationObserverInterface.php
  51. 2
      main/inc/lib/hook/interfaces/base/HookEventInterface.php
  52. 3
      main/inc/lib/login.lib.php
  53. 8
      main/inc/lib/message.lib.php
  54. 1
      main/inc/lib/myspace.lib.php
  55. 1
      main/inc/lib/pdf.lib.php
  56. 5
      main/inc/lib/phpmailer/class.phpmailer.php
  57. 14
      main/inc/lib/sessionmanager.lib.php
  58. 31
      main/inc/lib/skill.lib.php
  59. 13
      main/inc/lib/social.lib.php
  60. 3
      main/inc/lib/system_announcements.lib.php
  61. 4
      main/inc/lib/tracking.lib.php
  62. 19
      main/inc/lib/usermanager.lib.php
  63. 2
      main/inc/lib/userportal.lib.php
  64. 91
      main/inc/lib/webservices/Rest.php
  65. 3
      main/inc/lib/webservices/RestResponse.php
  66. 5
      main/install/install.lib.php
  67. 24
      main/lp/learnpath.class.php
  68. 2
      main/session/session_course_user.php
  69. 5
      main/survey/ch_comment.php
  70. 5
      main/survey/ch_dropdown.php
  71. 5
      main/survey/ch_multiplechoice.php
  72. 5
      main/survey/ch_multipleresponse.php
  73. 5
      main/survey/ch_open.php
  74. 5
      main/survey/ch_percentage.php
  75. 5
      main/survey/ch_personality.php
  76. 5
      main/survey/ch_score.php
  77. 5
      main/survey/ch_yesno.php
  78. 1
      main/survey/surveyUtil.class.php
  79. 1
      main/survey/survey_list.php
  80. 10
      main/survey/survey_question.php
  81. 5
      main/webservices/api/v2.php
  82. 8
      plugin/advanced_subscription/src/HookAdvancedSubscription.php
  83. 1
      plugin/azure_active_directory/lang/dutch.php
  84. 2
      plugin/buycourses/lang/english.php
  85. 4
      plugin/buycourses/lang/french.php
  86. 2
      plugin/buycourses/lang/spanish.php
  87. 20
      plugin/buycourses/src/buy_course_plugin.class.php
  88. 18
      plugin/buycourses/src/export_report.php
  89. 8
      plugin/buycourses/src/sales_report.php
  90. 2
      plugin/coursehomenotify/Entity/NotificationRelUser.php
  91. 9
      plugin/embedregistry/EmbedRegistryPlugin.php
  92. 8
      plugin/embedregistry/Entity/Embed.php
  93. 4
      plugin/grading_electronic/generate.php
  94. 4
      plugin/justification/Justification.php
  95. 1
      plugin/justification/add.php
  96. 6
      plugin/justification/cron.php
  97. 1
      plugin/justification/edit.php
  98. 1
      plugin/justification/index.php
  99. 3
      plugin/justification/lang/english.php
  100. 1
      plugin/justification/lang/french.php
  101. Some files were not shown because too many files have changed in this diff Show More

@ -439,13 +439,13 @@ switch ($report) {
$averageUser = 0;
$averageCoach = 0;
if (!empty($numberOfWeeks)) {
$sessionAverage = api_number_format($sessionCount/$numberOfWeeks, 2);
$sessionAverage = api_number_format($sessionCount / $numberOfWeeks, 2);
}
if (!empty($numberUsers)) {
$averageUser = api_number_format($sessionCount/$numberUsers, 2);
$averageUser = api_number_format($sessionCount / $numberUsers, 2);
}
if (!empty($uniqueCoaches)) {
$averageCoach = api_number_format($sessionCount/$uniqueCoaches, 2);
$averageCoach = api_number_format($sessionCount / $uniqueCoaches, 2);
}
$table = new HTML_Table(['class' => 'table table-responsive']);
@ -674,7 +674,7 @@ switch ($report) {
$content .= Statistics::printToolStats();
break;
case 'coursebylanguage':
$content .= '<canvas class="col-md-12" id="canvas" height="300px" style="margin-bottom: 20px"></canvas>';
$content .= '<canvas class="col-md-12" id="canvas" height="300px" style="margin-bottom: 20px"></canvas>';
$result = Statistics::printCourseByLanguageStats();
$content .= Statistics::printStats(get_lang('CountCourseByLanguage'), $result, true);
break;
@ -687,21 +687,21 @@ switch ($report) {
$startDate = $values['daterange_start'];
$endDate = $values['daterange_end'];
$content .= '<div class="row">';
$content .= '<div class="col-md-4"><canvas id="canvas1" style="margin-bottom: 20px"></canvas></div>';
$content .= '<div class="col-md-4"><canvas id="canvas2" style="margin-bottom: 20px"></canvas></div>';
$content .= '<div class="col-md-4"><canvas id="canvas3" style="margin-bottom: 20px"></canvas></div>';
$content .= '</div>';
$content .= '<div class="row">';
$content .= '<div class="col-md-4"><canvas id="canvas1" style="margin-bottom: 20px"></canvas></div>';
$content .= '<div class="col-md-4"><canvas id="canvas2" style="margin-bottom: 20px"></canvas></div>';
$content .= '<div class="col-md-4"><canvas id="canvas3" style="margin-bottom: 20px"></canvas></div>';
$content .= '</div>';
$content .= '<div class="row">';
$content .= '<div class="col-md-6"><canvas id="canvas4" style="margin-bottom: 20px"></canvas></div>';
$content .= '<div class="col-md-6"><canvas id="canvas5" style="margin-bottom: 20px"></canvas></div>';
$content .= '</div>';
$content .= '<div class="row">';
$content .= '<div class="col-md-6"><canvas id="canvas4" style="margin-bottom: 20px"></canvas></div>';
$content .= '<div class="col-md-6"><canvas id="canvas5" style="margin-bottom: 20px"></canvas></div>';
$content .= '</div>';
$content .= '<div class="row">';
$content .= '<div class="col-md-6"><canvas id="canvas6" style="margin-bottom: 20px"></canvas></div>';
$content .= '<div class="col-md-6"><canvas id="canvas7" style="margin-bottom: 20px"></canvas></div>';
$content .= '</div>';
$content .= '<div class="row">';
$content .= '<div class="col-md-6"><canvas id="canvas6" style="margin-bottom: 20px"></canvas></div>';
$content .= '<div class="col-md-6"><canvas id="canvas7" style="margin-bottom: 20px"></canvas></div>';
$content .= '</div>';
$conditions = [];
$extraConditions = '';
@ -821,10 +821,10 @@ switch ($report) {
$table->set_header($column, $header, false);
$column++;
}
$content .= $table->return_table();
$content .= $table->return_table();
}
$content = $form->returnForm().$content;
$content = $form->returnForm().$content;
break;
case 'users':
@ -880,7 +880,7 @@ switch ($report) {
$content .= ZombieReport::create(['report' => 'zombies'])->display(true);
break;
case 'activities':
$content .=Statistics::printActivitiesStats();
$content .= Statistics::printActivitiesStats();
break;
case 'messagesent':
$messages_sent = Statistics::getMessages('sent');

@ -87,8 +87,7 @@ if (!empty($action) && $hrm && $assignedId) {
/**
* Get the data to fill the tables on screen.
*
* @param User $hrm
* @param int $status
* @param int $status
*
* @return array
*/

@ -457,14 +457,14 @@ class CoursesController
$url = CourseCategory::getCourseCategoryUrl(1, $pageLength, null, 0, 'display_sessions');
$headers = [];
if (CoursesAndSessionsCatalog::showCourses()) {
$headers[] = [
$headers[] = [
'url' => api_get_self(),
'content' => get_lang('CourseManagement'),
];
}
if (CoursesAndSessionsCatalog::showSessions()) {
$headers[] = [
$headers[] = [
'url' => $url,
'content' => get_lang('SessionList'),
];

@ -4,7 +4,6 @@
require_once __DIR__.'/functions.inc.php';
/** @var array $uData */
if ($uData['auth_source'] === 'azure') {
$plugin = AzureActiveDirectory::create();

@ -122,8 +122,7 @@ if ($user_already_registered_show_terms === false &&
}
}
$LastnameLabel = get_lang('LastName');
if (api_get_configuration_value('registration_add_helptext_for_2_names') == true)
{
if (api_get_configuration_value('registration_add_helptext_for_2_names') == true) {
$LastnameLabel = [$LastnameLabel, get_lang('InsertTwoNames')];
}
if (api_is_western_name_order()) {

@ -170,10 +170,8 @@ $headers = [
];
$justificationTab = Display::tabsOnlyLink($headers, 2);
$justification = $justificationTab.$formValidator->returnForm().$userJustificationList;
$tpl = new Template(get_lang('ModifyProfile'));
SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'home');

@ -26,25 +26,6 @@
3.2 - updated to allow for specific term search for teachers identification
3.1 - updated code to use database settings, to respect coding conventions
* as much as possible (camel-case removed) and to allow for non-anonymous login
3.0 - updated to use ldap_var.inc.php instead of ldap_var.inc (deprecated)
(November 2003)
2.9 - further changes for new login procedure
- (busy) translating french functions to english
(October 2003)
2.8 - adapted for new Claroline login procedure
- ldap package now becomes a standard, in auth/ldap
2.7 - uses more standard LDAP field names: mail, sn, givenname (or cn)
instead of mail, preferredsn, preferredgivenname
there are still
- code cleanup
- fixed bug: dc = xx, dc = yy was configured for UGent
and put literally in the code, this is now a variable
in configuration.php ($LDAPbasedn)
with thanks to
- Stefan De Wannemacker (Ghent University)
- Universite Jean Monet (J Dubois / Michel Courbon)
- Michel Panckoucke for reporting and fixing a bug
- Patrick Cool: fixing security hole
* @author Roan Embrechts

@ -83,29 +83,6 @@ Version 1.1
- index.php: add filesize info in sent/received lists
- dropbox_submit.php: resubmit prevention only for GET action, because it gives some annoying behaviour in POST
* situation: white screen in IE6.
Version 1.2
-----------
- adapted entire dropbox tool so it can be used as a default tool in Dokeos 1.5
- index.php: add event registration to log use of tool in stats tables
- index.php: upload form checks for correct user selection and file specification before uploading the script
- dropbox_init1.inc.php: added dropbox_cnf["allowOverwrite"] to allow or disallow overwriting of files
- index.php: author name textbox is automatically filled in
- mailing functionality (René Haentjens)
- allowStudentToStudent and allowJustUpload options (id.)
- help in separate window (id.)
Version 1.3 (Patrick Cool)
--------------------------
- sortable table
- categories
- fixing a security hole
- tabs (which can be disabled: see $dropbox_cnf['sent_received_tabs'])
- same action on multiple documents ([zip]download, move, delete)
- consistency with the docuements tool (open/download file, icons of documents, ...)
- zip download of complete folder
Version 1.4 (Yannick Warnier)
-----------------------------
- removed all self-built database tables names
*/

@ -342,8 +342,6 @@ class TestCategory
}
/**
* @param Exercise $exercise
*
* @return array
*/
public static function getListOfCategoriesIDForTestObject(Exercise $exercise)
@ -402,8 +400,6 @@ class TestCategory
}
/**
* @param Exercise $exercise
*
* @return array
*/
public static function getListOfCategoriesForTest(Exercise $exercise)
@ -955,8 +951,6 @@ class TestCategory
/**
* Returns the category form.
*
* @param Exercise $exercise
*
* @return string
*/
public function returnCategoryForm(Exercise $exercise)

@ -9467,10 +9467,9 @@ class Exercise
}
/**
* @param Question $objQuestionTmp
* @param int $questionId
* @param bool $show_results
* @param array $question_result
* @param int $questionId
* @param bool $show_results
* @param array $question_result
*/
public function getDelineationResult(Question $objQuestionTmp, $questionId, $show_results, $question_result)
{
@ -10043,8 +10042,6 @@ class Exercise
}
/**
* @param FormValidator $form
*
* @return HTML_QuickForm_group
*/
private function setResultDisabledGroup(FormValidator $form)

@ -227,7 +227,7 @@ class ExerciseResult
$return[$i]['result'] = $result['exresult'];
$return[$i]['max'] = $result['exweight'];
// Revised: 1 = revised, 0 = not revised, -1 = not even finished by user
$return[$i]['status'] = $revised === 1 ? get_lang('Validated') : ($revised === 0 ? get_lang('NotValidated') : get_lang('Unclosed') );
$return[$i]['status'] = $revised === 1 ? get_lang('Validated') : ($revised === 0 ? get_lang('NotValidated') : get_lang('Unclosed'));
$return[$i]['lp_id'] = $result['orig_lp_id'];
$return[$i]['lp_name'] = $result['lp_name'];

@ -15,8 +15,7 @@ interface ImsAnswerInterface
public function imsExportResponses($questionIdent, $questionStatment);
/**
* @param $questionIdent
* @param Question|null $question
* @param $questionIdent
*
* @return mixed
*/

@ -10,7 +10,6 @@
* 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.
*
*
* @author Claro Team <cvs@claroline.net>
* @author Yannick Warnier <yannick.warnier@beeznest.com>
*

@ -1996,9 +1996,8 @@ abstract class Question
/**
* Shows question title an description.
*
* @param Exercise $exercise
* @param int $counter
* @param array $score
* @param int $counter
* @param array $score
*
* @return string HTML string with the header of the question (before the answers table)
*/

@ -66,7 +66,7 @@ $displayMessage = '';
if ($is_allowedToEdit) {
// Duplicating a Question
if (!isset($_POST['recup']) && $question_copy != 0 && isset($fromExercise)) {
$origin_course_id = (int) $_GET['course_id'];
$origin_course_id = (int) $_GET['course_id'];
$origin_course_info = api_get_course_info_by_id($origin_course_id);
$current_course = api_get_course_info();
$old_question_id = $question_copy;

@ -2506,8 +2506,6 @@ class Category implements GradebookItem
/**
* Return HTML code with links to download and view certificate.
*
* @param array $certificate
*
* @return string
*/
public static function getDownloadCertificateBlock(array $certificate)
@ -2578,6 +2576,25 @@ class Category implements GradebookItem
return $this->documentId;
}
/**
* Get the remaining weight in root category.
*
* @return int
*/
public function getRemainingWeight()
{
$subCategories = $this->get_subcategories();
$subWeight = 0;
/** @var Category $subCategory */
foreach ($subCategories as $subCategory) {
$subWeight += $subCategory->get_weight();
}
return $this->weight - $subWeight;
}
/**
* @return Category
*/
@ -2783,23 +2800,4 @@ class Category implements GradebookItem
return api_float_val($categoryScore);
}
/**
* Get the remaining weight in root category.
*
* @return int
*/
public function getRemainingWeight()
{
$subCategories = $this->get_subcategories();
$subWeight = 0;
/** @var Category $subCategory */
foreach ($subCategories as $subCategory) {
$subWeight += $subCategory->get_weight();
}
return $this->weight - $subWeight;
}
}

@ -47,7 +47,6 @@ class GradebookTable extends SortableTable
* @param null $showTeacherView
* @param int $userId
* @param array $studentList
* @param array $loadStats
*/
public function __construct(
$currentcat,

@ -1008,8 +1008,6 @@ class FlatViewDataGenerator
/**
* Add columns heders according to gradebook_flatview_extrafields_columns conf setting.
*
* @param array $headers
*/
private function addExtraFieldColumnsHeaders(array &$headers)
{
@ -1030,8 +1028,7 @@ class FlatViewDataGenerator
/**
* Add columns data according to gradebook_flatview_extrafields_columns conf setting.
*
* @param array $row
* @param int $userId
* @param int $userId
*/
private function addExtraFieldColumnsData(array &$row, $userId)
{

@ -373,7 +373,6 @@ class GradebookDataGenerator
} else {
if (!empty($studentList)) {
foreach ($studentList as $user) {
$score = $this->build_result_column(
$user['user_id'],
$item,
@ -534,8 +533,6 @@ class GradebookDataGenerator
/**
* Get best result of an item.
*
* @param GradebookItem $item
*
* @return array
*/
public function buildBestResultColumn(GradebookItem $item)
@ -571,8 +568,6 @@ class GradebookDataGenerator
}
/**
* @param GradebookItem $item
*
* @return array
*/
public function buildAverageResultColumn(GradebookItem $item)
@ -608,9 +603,8 @@ class GradebookDataGenerator
}
/**
* @param GradebookItem $item
* @param int $userId
* @param int $userCount
* @param int $userId
* @param int $userCount
*
* @return array
*/

@ -39,7 +39,7 @@ switch ($action) {
// changed images that can have some weight
$now = time() + 600; //time must be in GMT anyway
$headers = [
'Expires' => gmdate('D, d M Y H:i:s ', $now) . 'GMT',
'Expires' => gmdate('D, d M Y H:i:s ', $now).'GMT',
'Cache-Control' => 'max-age=600',
];
DocumentManager::file_send_for_download($courseInfo[$image], null, null, null, $headers);

@ -75,7 +75,7 @@ switch ($action) {
$item = [
api_get_local_time($data['login']),
api_time_to_hms(api_strtotime($data['logout']) - api_strtotime($data['login'])),
$data['user_ip']
$data['user_ip'],
];
$tableData[] = $item;
}
@ -88,8 +88,8 @@ switch ($action) {
null,
'stat_table'
);
$table->set_header(1, get_lang('LoginDate'), false);
$table->set_header(2, get_lang('Duration'), false);
$table->set_header(1, get_lang('LoginDate'), false);
$table->set_header(2, get_lang('Duration'), false);
$table->set_header(3, get_lang('IP'), false);
$result['result'] = $table->return_table();

@ -18,8 +18,8 @@ $order = isset($_REQUEST['sord']) && in_array($_REQUEST['sord'], ['asc', 'desc']
switch ($action) {
case 'add_student_to_boss':
$studentId = isset($_GET['student_id']) ? (int) $_GET['student_id'] : 0;
$bossId = isset($_GET['boss_id']) ? (int) $_GET['boss_id'] : 0;
$studentId = isset($_GET['student_id']) ? (int) $_GET['student_id'] : 0;
$bossId = isset($_GET['boss_id']) ? (int) $_GET['boss_id'] : 0;
if ($studentId && $bossId) {
UserManager::subscribeBossToUsers($bossId, [$studentId], false);
@ -576,7 +576,7 @@ switch ($action) {
if (!isset($all[$language])) {
$all[$language] = 0;
}
$all[$language] += 1;
$all[$language]++;
}
break;
}

@ -4,7 +4,6 @@
* This is a minified version of global.inc.php meant *only* for download.php
* to check permissions and deliver the file.
*/
use Chamilo\CoreBundle\Component\Utils\ChamiloApi;
// Include the libraries that are necessary everywhere
require_once __DIR__.'/../../vendor/autoload.php';

@ -745,8 +745,7 @@ class CourseChatUtils
/**
* Format the user data to return it in the user list.
*
* @param User $user
* @param int $status
* @param int $status
*
* @return array
*/

@ -701,7 +701,7 @@ class CoursesAndSessionsCatalog
}
/**
* Search sessions by the title
* Search sessions by the title.
*
* @param string $keyword
* @param array $limit Limit info

@ -209,9 +209,12 @@ class MailTemplateManager extends Model
return false;
}
/**
* Gets a custom mail template by the name of the template it replaces
* Gets a custom mail template by the name of the template it replaces.
*
* @param string $templateType Name of the template file it replaces
*
* @return string
*/
public function getTemplateByType($templateType)
@ -228,6 +231,7 @@ class MailTemplateManager extends Model
if (empty($result)) {
return '';
}
return $result['template'];
}
}

@ -3,6 +3,8 @@
class NotificationEvent extends Model
{
const ACCOUNT_EXPIRATION = 1;
const JUSTIFICATION_EXPIRATION = 2;
public $table;
public $columns = [
'id',
@ -14,9 +16,6 @@ class NotificationEvent extends Model
'event_type',
'event_id',
];
const ACCOUNT_EXPIRATION = 1;
const JUSTIFICATION_EXPIRATION = 2;
public $extraFieldName;
/**
@ -63,7 +62,6 @@ class NotificationEvent extends Model
}
$form->freeze('event_id');
$form->addText('title', get_lang('Title'));
$form->addTextarea('content', get_lang('Content'));
$form->addText('link', get_lang('Link'), false);
@ -156,7 +154,7 @@ class NotificationEvent extends Model
'content' => $event['content'],
'event_text' => get_lang('ExpirationDate').': '.api_get_local_time($userInfo['expiration_date']),
'link' => $event['link'],
'persistent' => $event['persistent']
'persistent' => $event['persistent'],
];
}
break;
@ -197,7 +195,7 @@ class NotificationEvent extends Model
'content' => $event['content'],
'event_text' => $eventText,
'link' => $url,
'persistent' => $event['persistent']
'persistent' => $event['persistent'],
];
}
}

@ -710,7 +710,6 @@ require_once __DIR__.'/internationalization.lib.php';
*
* @return string the requested path or the converted path
*
*
* Notes about the current behaviour model:
* 1. Windows back-slashes are converted to slashes in the result.
* 2. A semi-absolute web-path is detected by its leading slash. On Linux systems, absolute system paths start with
@ -9524,10 +9523,6 @@ function api_unserialize_content($type, $serialized, $ignoreErrors = false)
/**
* Set the From and ReplyTo properties to PHPMailer instance.
*
* @param PHPMailer $mailer
* @param array $sender
* @param array $replyToAddress
*
* @throws phpmailerException
*/
function api_set_noreply_and_from_address_to_mailer(PHPMailer $mailer, array $sender, array $replyToAddress = [])
@ -9568,7 +9563,7 @@ function api_set_noreply_and_from_address_to_mailer(PHPMailer $mailer, array $se
isset($platformEmail['SMTP_UNIQUE_SENDER']) &&
$platformEmail['SMTP_UNIQUE_SENDER']
) {
$senderName = $notification->getDefaultPlatformSenderName();
$senderName = $notification->getDefaultPlatformSenderName();
$senderEmail = $notification->getDefaultPlatformSenderEmail();
if (PHPMailer::ValidateAddress($senderEmail)) {

@ -118,8 +118,6 @@ function array_to_string($array, $separator = ',')
}
/**
* @param array $array
*
* @return array
*/
function array_flatten(array $array)

@ -738,7 +738,6 @@ class Certificate extends Model
true
);
// Find time spent in LP
$timeSpent = Tracking::get_time_spent_in_lp(
$this->user_id,

@ -5272,8 +5272,6 @@ class CourseManager
/**
* Course available settings variables see c_course_setting table.
*
* @param AppPlugin $appPlugin
*
* @return array
*/
public static function getCourseSettingVariables(AppPlugin $appPlugin)
@ -5343,7 +5341,6 @@ class CourseManager
}
/**
* @param AppPlugin $appPlugin
* @param string $variable
* @param string|array $value
* @param int $courseId
@ -6295,8 +6292,6 @@ class CourseManager
/**
* Get the course categories form a course list.
*
* @param array $courseList
*
* @return array
*/
public static function getCourseCategoriesFromCourseList(array $courseList)
@ -6344,8 +6339,6 @@ class CourseManager
}
/**
* @param Course $course
*
* @return bool
*/
public static function hasPicture(Course $course)
@ -6356,8 +6349,7 @@ class CourseManager
/**
* Get the course picture path.
*
* @param Course $course
* @param bool $fullSize
* @param bool $fullSize
*
* @return string|null
*/

@ -1774,9 +1774,8 @@ class CourseHome
/**
* Find the tool icon when homepage_view is activity_big.
*
* @param array $item
* @param int $iconSize
* @param bool $generateId
* @param int $iconSize
* @param bool $generateId
*
* @return string
*/

@ -28,9 +28,6 @@ class Database
self::$em = $em;
}
/**
* @param Connection $connection
*/
public function setConnection(Connection $connection)
{
self::$connection = $connection;
@ -105,8 +102,6 @@ class Database
/**
* Returns the number of affected rows in the last database operation.
*
* @param Statement $result
*
* @return int
*/
public static function affected_rows(Statement $result)
@ -265,8 +260,7 @@ class Database
/**
* Gets the array from a SQL result (as returned by Database::query).
*
* @param Statement $result
* @param string $option Optional: "ASSOC","NUM" or "BOTH"
* @param string $option Optional: "ASSOC","NUM" or "BOTH"
*
* @return array|mixed
*/
@ -282,8 +276,6 @@ class Database
/**
* Gets an associative array from a SQL result (as returned by Database::query).
*
* @param Statement $result
*
* @return array
*/
public static function fetch_assoc(Statement $result)
@ -295,8 +287,6 @@ class Database
* Gets the next row of the result of the SQL query
* (as returned by Database::query) in an object form.
*
* @param Statement $result
*
* @return mixed
*/
public static function fetch_object(Statement $result)
@ -308,8 +298,6 @@ class Database
* Gets the array from a SQL result (as returned by Database::query)
* help achieving database independence.
*
* @param Statement $result
*
* @return mixed
*/
public static function fetch_row(Statement $result)
@ -344,8 +332,6 @@ class Database
}
/**
* @param Statement $result
*
* @return int
*/
public static function num_rows(Statement $result)
@ -361,9 +347,8 @@ class Database
* Acts as the relative *_result() function of most DB drivers and fetches a
* specific line and a field.
*
* @param Statement $resource
* @param int $row
* @param string $field
* @param int $row
* @param string $field
*
* @return mixed
*/

@ -347,10 +347,10 @@ class DocumentManager
* This function streams a file to the client.
*
* @param string $full_file_name
* @param bool $forced Whether to force the browser to download the file
* @param bool $forced Whether to force the browser to download the file
* @param string $name
* @param bool $fixLinksHttpToHttps change file content from http to https
* @param array $extraHeaders Additional headers to be sent
* @param array $extraHeaders Additional headers to be sent
*
* @return false if file doesn't exist, true if stream succeeded
*/
@ -5807,9 +5807,8 @@ class DocumentManager
/**
* Create users shared folder for course.
*
* @param int $userId
* @param array $courseInfo
* @param int $sessionId
* @param int $userId
* @param int $sessionId
*/
public static function createUserSharedFolder($userId, array $courseInfo, $sessionId = 0)
{
@ -6766,7 +6765,6 @@ class DocumentManager
* Get the button to edit document.
*
* @param bool $isReadOnly
* @param array $documentData
* @param string $extension
* @param bool $isCertificateMode
*
@ -6852,10 +6850,9 @@ class DocumentManager
/**
* Get the button to move document.
*
* @param bool $isReadOnly
* @param array $documentData
* @param bool $isCertificateMode
* @param int $parentId
* @param bool $isReadOnly
* @param bool $isCertificateMode
* @param int $parentId
*
* @return string
*/
@ -6894,11 +6891,10 @@ class DocumentManager
/**
* Get the button to set visibility to document.
*
* @param bool $isReadOnly
* @param int $visibility
* @param array $documentData
* @param bool $isCertificateMode
* @param int $parentId
* @param bool $isReadOnly
* @param int $visibility
* @param bool $isCertificateMode
* @param int $parentId
*
* @return string|null
*/
@ -6941,7 +6937,6 @@ class DocumentManager
* GEt the button to delete a document.
*
* @param bool $isReadOnly
* @param array $documentData
* @param bool $isCertificateMode
* @param string $curDirPath
* @param int $parentId

@ -2276,7 +2276,7 @@ class Event
'login_user_id' => $userId,
'login_date' => $loginDate,
'user_ip' => api_get_real_ip(),
'logout_date' => $logoutDate
'logout_date' => $logoutDate,
];
$platformTrackingTable = Database::get_main_table(TABLE_STATISTIC_TRACK_E_LOGIN);
Database::insert($platformTrackingTable, $params);
@ -2364,6 +2364,7 @@ class Event
$sql = "DELETE FROM $platformTrackingTable
WHERE login_id = $loginAccessId";
$result = Database::query($sql);
return $result;
}

@ -3003,8 +3003,7 @@ HOTSPOT;
}
/**
* @param FormValidator $form
* @param string $name
* @param string $name
* @param $weight
* @param $selected
*
@ -5061,11 +5060,10 @@ EOT;
}
/**
* @param Exercise $objExercise
* @param float $score
* @param float $weight
* @param bool $checkPassPercentage
* @param int $countPendingQuestions
* @param float $score
* @param float $weight
* @param bool $checkPassPercentage
* @param int $countPendingQuestions
*
* @return string
*/
@ -5303,10 +5301,9 @@ EOT;
}
/**
* @param DateTime $time
* @param int $userId
* @param int $courseId
* @param int $sessionId
* @param int $userId
* @param int $courseId
* @param int $sessionId
*
* @throws \Doctrine\ORM\Query\QueryException
*
@ -5413,12 +5410,11 @@ EOT;
* Generate a certificate linked to current quiz and.
* Return the HTML block with links to download and view the certificate.
*
* @param float $totalScore
* @param float $totalWeight
* @param Exercise $objExercise
* @param int $studentId
* @param string $courseCode
* @param int $sessionId
* @param float $totalScore
* @param float $totalWeight
* @param int $studentId
* @param string $courseCode
* @param int $sessionId
*
* @return string
*/

@ -813,8 +813,6 @@ class ExtraField extends Model
}
/**
* @param array $options
*
* @return array
*/
public static function tripleSelectConvertArrayToOrderedArray(array $options)
@ -892,8 +890,6 @@ class ExtraField extends Model
}
/**
* @param array $options
*
* @return string
*/
public static function tripleSelectConvertArrayToString(array $options)
@ -3013,8 +3009,7 @@ JAVASCRIPT;
}
/**
* @param array $options
* @param int $parentId
* @param int $parentId
*
* @return array
*/
@ -3027,7 +3022,6 @@ JAVASCRIPT;
/**
* @param \FormValidator $form
* @param array $fieldDetails
* @param int $defaultValueId
* @param bool $freezeElement
*/
@ -3272,7 +3266,6 @@ JAVASCRIPT;
/**
* @param \FormValidator $form
* @param array $fieldDetails
* @param bool $freezeElement Optional
*
* @return string JavaScript code
@ -3342,8 +3335,6 @@ JAVASCRIPT;
/**
* @param \FormValidator $form
* @param array $fieldDetails
* @param array $extraData
* @param bool $freezeElement
*
* @return string

@ -1286,10 +1286,10 @@ EOT;
}
/**
* @param string $name
* @param string $label
* @param array $attributes
* @param bool $required
* @param string $name
* @param string $label
* @param array $attributes
* @param bool $required
*
* @return HTML_QuickForm_element
*/

@ -132,8 +132,6 @@ abstract class HookEvent implements HookEventInterface
/**
* Set an array with data needed by hooks.
*
* @param array $data
*
* @return $this
*/
public function setEventData(array $data)

@ -13,8 +13,6 @@
interface HookAdminBlockObserverInterface extends HookObserverInterface
{
/**
* @param HookAdminBlockEventInterface $hook
*
* @return int
*/
public function hookAdminBlock(HookAdminBlockEventInterface $hook);

@ -16,8 +16,6 @@ interface HookConditionalLoginObserverInterface extends HookObserverInterface
* </code>
* conditional_function returns false to redirect to the url and returns true to continue with the classical login.
*
* @param HookConditionalLoginEventInterface $hook
*
* @return array
*/
public function hookConditionalLogin(HookConditionalLoginEventInterface $hook);

@ -13,8 +13,6 @@
interface HookCreateCourseObserverInterface extends HookObserverInterface
{
/**
* @param HookCreateCourseEventInterface $hook
*
* @return int
*/
public function hookCreateCourse(HookCreateCourseEventInterface $hook);

@ -13,8 +13,6 @@
interface HookCreateUserObserverInterface extends HookObserverInterface
{
/**
* @param HookCreateUserEventInterface $hook
*
* @return int
*/
public function hookCreateUser(HookCreateUserEventInterface $hook);

@ -15,8 +15,6 @@ interface HookMyStudentsLpTrackingObserverInterface extends HookObserverInterfac
* ]
* </code>.
*
* @param HookMyStudentsLpTrackingEventInterface $hook
*
* @return array
*/
public function trackingHeader(HookMyStudentsLpTrackingEventInterface $hook);
@ -30,8 +28,6 @@ interface HookMyStudentsLpTrackingObserverInterface extends HookObserverInterfac
* ]
* </code>.
*
* @param HookMyStudentsLpTrackingEventInterface $hook
*
* @return array
*/
public function trackingContent(HookMyStudentsLpTrackingEventInterface $hook);

@ -15,8 +15,6 @@ interface HookMyStudentsQuizTrackingObserverInterface extends HookObserverInterf
* ]
* </code>.
*
* @param HookMyStudentsQuizTrackingEventInterface $hook
*
* @return array
*/
public function trackingHeader(HookMyStudentsQuizTrackingEventInterface $hook);
@ -30,8 +28,6 @@ interface HookMyStudentsQuizTrackingObserverInterface extends HookObserverInterf
* ]
* </code>.
*
* @param HookMyStudentsQuizTrackingEventInterface $hook
*
* @return array
*/
public function trackingContent(HookMyStudentsQuizTrackingEventInterface $hook);

@ -12,8 +12,6 @@
interface HookNotificationContentObserverInterface extends HookObserverInterface
{
/**
* @param HookNotificationContentEventInterface $hook
*
* @return array
*/
public function hookNotificationContent(HookNotificationContentEventInterface $hook);

@ -12,8 +12,6 @@
interface HookNotificationTitleObserverInterface extends HookObserverInterface
{
/**
* @param HookNotificationTitleEventInterface $hook
*
* @return array
*/
public function hookNotificationTitle(HookNotificationTitleEventInterface $hook);

@ -13,8 +13,6 @@
interface HookResubscribeObserverInterface extends HookObserverInterface
{
/**
* @param HookResubscribeEventInterface $hook
*
* @return int
*/
public function hookResubscribe(HookResubscribeEventInterface $hook);

@ -13,8 +13,6 @@
interface HookUpdateUserObserverInterface extends HookObserverInterface
{
/**
* @param HookUpdateUserEventInterface $hook
*
* @return int
*/
public function hookUpdateUser(HookUpdateUserEventInterface $hook);

@ -13,8 +13,6 @@
interface HookWSRegistrationObserverInterface extends HookObserverInterface
{
/**
* @param HookWSRegistrationEventInterface $hook
*
* @return int
*/
public function hookWSRegistration(HookWSRegistrationEventInterface $hook);

@ -51,8 +51,6 @@ interface HookEventInterface
/**
* Set an array with data needed by hooks.
*
* @param array $data
*
* @return $this
*/
public function setEventData(array $data);

@ -210,9 +210,6 @@ class Login
}
}
/**
* @param User $user
*/
public static function sendResetEmail(User $user)
{
$uniqueId = api_get_unique_id();

@ -2652,8 +2652,6 @@ class MessageManager
/**
* Send a notification to all admins when a new user is registered.
*
* @param User $user
*/
public static function sendNotificationOfNewRegisteredUser(User $user)
{
@ -2698,9 +2696,7 @@ class MessageManager
/**
* Send a notification to all admins when a new user is registered
* while the approval method is used for users registration
*
* @param User $user
* while the approval method is used for users registration.
*/
public static function sendNotificationOfNewRegisteredUserApproval(User $user)
{
@ -2728,7 +2724,7 @@ class MessageManager
$extraFieldValues = new ExtraFieldValue('user');
$userExtraFields = $extraFieldValues->getAllValuesByItem($userId);
$values = [];
foreach($userExtraFields as $field => $value) {
foreach ($userExtraFields as $field => $value) {
$values[$value['variable']] = $value['value'];
}
$tplMailBody->assign(

@ -3309,5 +3309,4 @@ class MySpace
);
}
}
}

@ -930,7 +930,6 @@ class PDF
* Fix images source paths to allow export to pdf.
*
* @param string $documentHtml
* @param array $courseInfo
* @param string $dirName
*
* @return string

@ -2038,10 +2038,7 @@ class PHPMailer
protected function SendmailSend($header, $body)
{
if (!(is_file($this->Sendmail) and is_executable($this->Sendmail))) {
throw new phpmailerException(
$this->lang('execute').$this->Sendmail,
self::STOP_CRITICAL
);
throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
}
if (!empty($this->Sender) and $this->validateAddress($this->Sender)) {
if ($this->Mailer == 'qmail') {

@ -2078,6 +2078,7 @@ class SessionManager
SET nbr_users = (SELECT count(user_id) FROM $tbl_session_rel_user WHERE session_id = $sessionId)
WHERE id = $sessionId";
Database::query($sql);
return true;
}
@ -4398,7 +4399,6 @@ class SessionManager
* Copies a session with the same data to a new session.
* The new copy is not assigned to the same promotion.
*
*
* @param int $id Session ID
* @param bool $copy_courses Whether to copy the relationship with courses
* @param bool $copyTeachersAndDrh
@ -6777,8 +6777,7 @@ class SessionManager
* Returns the number of days the student has left in a session when using
* sessions durations.
*
* @param array $sessionInfo
* @param int $userId
* @param int $userId
*
* @return int
*/
@ -7700,8 +7699,7 @@ class SessionManager
}
/**
* @param FormValidator $form
* @param array $sessionInfo Optional
* @param array $sessionInfo Optional
*
* @return array
*/
@ -8970,9 +8968,6 @@ class SessionManager
}
/**
* @param Course $course
* @param Session $session
*
* @return int
*/
public static function getCountUsersInCourseSession(
@ -9002,9 +8997,6 @@ class SessionManager
/**
* Get course IDs where user in not subscribed in session.
*
* @param User $user
* @param Session $session
*
* @return array
*/
public static function getAvoidedCoursesInSession(User $user, Session $session)

@ -629,8 +629,6 @@ class SkillRelUser extends Model
/**
* Get the URL for the issue.
*
* @param SkillRelUserEntity $skillIssue
*
* @return string
*/
public static function getIssueUrl(SkillRelUserEntity $skillIssue)
@ -641,8 +639,6 @@ class SkillRelUser extends Model
/**
* Get the URL for the All issues page.
*
* @param SkillRelUserEntity $skillIssue
*
* @return string
*/
public static function getIssueUrlAll(SkillRelUserEntity $skillIssue)
@ -653,8 +649,6 @@ class SkillRelUser extends Model
/**
* Get the URL for the assertion.
*
* @param SkillRelUserEntity $skillIssue
*
* @return string
*/
public static function getAssertionUrl(SkillRelUserEntity $skillIssue)
@ -1344,9 +1338,8 @@ class Skill extends Model
}
/**
* @param Vertex $vertex
* @param array $skills
* @param int $level
* @param array $skills
* @param int $level
*
* @return string
*/
@ -2379,8 +2372,7 @@ class Skill extends Model
}
/**
* @param FormValidator $form
* @param array $skillInfo
* @param array $skillInfo
*
* @return array
*/
@ -2519,10 +2511,9 @@ class Skill extends Model
/**
* Assign a user with a SkilRelItem object.
*
* @param FormValidator $form
* @param int $typeId see ITEM_TYPE_* constants
* @param int $itemId
* @param int $userId
* @param int $typeId see ITEM_TYPE_* constants
* @param int $itemId
* @param int $userId
*/
public static function addSkillsToUserForm(FormValidator $form, $typeId, $itemId, $userId, $resultId = 0, $addHeader = false)
{
@ -2595,9 +2586,8 @@ class Skill extends Model
/**
* Add skills select ajax for an item (exercise, lp).
*
* @param FormValidator $form
* @param int $typeId see ITEM_TYPE_* constants
* @param int $itemId
* @param int $typeId see ITEM_TYPE_* constants
* @param int $itemId
*
* @throws Exception
*
@ -2874,8 +2864,6 @@ class Skill extends Model
/**
* Relate skill with an item (exercise, gradebook, lp, etc).
*
* @param FormValidator $form
*
* @return bool
*/
public static function saveSkillsToCourseFromForm(FormValidator $form)
@ -2959,8 +2947,7 @@ class Skill extends Model
/**
* Get the icon (badge image) URL.
*
* @param SkillEntity $skill
* @param bool $getSmall Optional. Allow get the small image
* @param bool $getSmall Optional. Allow get the small image
*
* @return string
*/

@ -2082,13 +2082,12 @@ class SocialManager extends UserManager
/**
* Generate the social block for a user.
*
* @param Template $template
* @param int $userId The user id
* @param string $groupBlock Optional. Highlight link possible values:
* group_add, home, messages, messages_inbox, messages_compose,
* messages_outbox, invitations, shared_profile, friends, groups, search
* @param int $groupId Optional. Group ID
* @param bool $show_full_profile
* @param int $userId The user id
* @param string $groupBlock Optional. Highlight link possible values:
* group_add, home, messages, messages_inbox, messages_compose,
* messages_outbox, invitations, shared_profile, friends, groups, search
* @param int $groupId Optional. Group ID
* @param bool $show_full_profile
*
* @return string The HTML code with the social block
*/

@ -564,7 +564,6 @@ class SystemAnnouncementManager
$params,
['id = ? ' => $id]
);
}
foreach ($list as $key => $title) {
@ -741,7 +740,7 @@ class SystemAnnouncementManager
$promotionList = $promotion->get_all_promotions_by_career_id($announcement->career_id);
if (isset($announcement->promotion_id) && !empty($announcement->promotion_id)) {
$promotionList = [];
$promotionList[] = $promotion->get($announcement->promotion_id);
$promotionList[] = $promotion->get($announcement->promotion_id);
}
if (!empty($promotionList)) {
foreach ($promotionList as $promotion) {

@ -220,7 +220,7 @@ class Tracking
$extra .= '<div id="dialog-confirm" title="'.get_lang('ConfirmYourChoice').'">';
$form = new FormValidator('report', 'post', null, null, ['class' => 'form-vertical']);
$form->addCheckBox('add_logo', '' , get_lang('AddRightLogo'), ['id' => 'export_format_csv_label']);
$form->addCheckBox('add_logo', '', get_lang('AddRightLogo'), ['id' => 'export_format_csv_label']);
$extra .= $form->returnForm();
$extra .= '</div>';
@ -6435,9 +6435,7 @@ class Tracking
}
/**
* @param User $user
* @param string $tool
* @param Course $course
* @param sessionEntity |null $session Optional
*
* @throws \Doctrine\ORM\NonUniqueResultException

@ -126,7 +126,6 @@ class UserManager
/**
* @param string $raw
* @param User $user
*
* @return string
*/
@ -1798,7 +1797,6 @@ class UserManager
$sql_result = Database::query($sql);
if ($getCount) {
$result = Database::fetch_array($sql_result);
return $result['count'];
@ -1812,7 +1810,6 @@ class UserManager
return $return_array;
}
/**
* Get a list of users of which the given conditions match with a LIKE '%cond%'.
*
@ -5228,7 +5225,6 @@ class UserManager
/**
* Remove the requests for assign a user to a HRM.
*
* @param User $hrmId
* @param array $usersId List of user IDs from whom to remove all relations requests with HRM
*/
public static function clearHrmRequestsForUser(User $hrmId, $usersId)
@ -5559,9 +5555,6 @@ class UserManager
return $icon_link;
}
/**
* @param User $user
*/
public static function add_user_as_admin(User $user)
{
$table_admin = Database::get_main_table(TABLE_MAIN_ADMIN);
@ -5611,8 +5604,8 @@ class UserManager
/**
* Subscribe boss to students.
*
* @param int $bossId The boss id
* @param array $usersId The users array
* @param int $bossId The boss id
* @param array $usersId The users array
* @param bool $deleteOtherAssignedUsers
*
* @return int Affected rows
@ -6202,8 +6195,6 @@ SQL;
/**
* Send user confirmation mail.
*
* @param User $user
*
* @throws Exception
*/
public static function sendUserConfirmationMail(User $user)
@ -6511,8 +6502,7 @@ SQL;
}
/**
* @param array $userInfo
* @param int $searchYear
* @param int $searchYear
*
* @throws Exception
*
@ -6689,7 +6679,6 @@ SQL;
/**
* Return the user's full name. Optionally with the username.
*
* @param User $user
* @param bool $includeUsername Optional. By default username is not included.
*
* @return string
@ -6824,8 +6813,6 @@ SQL;
}
/**
* @param User $user
*
* @return \Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface
*/
private static function getEncoder(User $user)

@ -2290,8 +2290,6 @@ class IndexManager
/**
* Generate the HTML code for items when displaying the right-side blocks.
*
* @param array $items
*
* @return string
*/
private static function returnRightBlockItems(array $items)

@ -220,7 +220,7 @@ class Rest extends WebService
return $messages;
}
/**
/**
* @return array
*/
public function getUserReceivedMessages()
@ -643,8 +643,7 @@ class Rest extends WebService
'title' => $forumInfo['forum_title'],
'description' => $forumInfo['forum_comment'],
'image' => $forumInfo['forum_image'] ? ($webCoursePath.$forumInfo['forum_image']) : '',
'numberOfThreads' =>
isset($forumInfo['number_of_threads']) ? intval($forumInfo['number_of_threads']) : 0,
'numberOfThreads' => isset($forumInfo['number_of_threads']) ? intval($forumInfo['number_of_threads']) : 0,
'lastPost' => null,
];
@ -957,8 +956,7 @@ class Rest extends WebService
}
/**
* @param array $postValues
* @param int $forumId
* @param int $forumId
*
* @return array
*/
@ -1032,7 +1030,6 @@ class Rest extends WebService
/**
* @param string $subject
* @param string $text
* @param array $receivers
*
* @return array
*/
@ -1101,8 +1098,7 @@ class Rest extends WebService
}
/**
* @param array $values
* @param int $forumId
* @param int $forumId
*
* @return array
*/
@ -1121,8 +1117,6 @@ class Rest extends WebService
}
/**
* @param array $params
*
* @return array
*/
public function getUsersCampus(array $params)
@ -1147,8 +1141,6 @@ class Rest extends WebService
}
/**
* @param array $params
*
* @return array
*/
public function getCoursesCampus(array $params)
@ -1170,8 +1162,6 @@ class Rest extends WebService
}
/**
* @param array $params
*
* @return array
*/
public function addSession(array $params)
@ -1223,8 +1213,6 @@ class Rest extends WebService
}
/**
* @param array $courseParam
*
* @return array
*/
public function addCourse(array $courseParam)
@ -1523,8 +1511,6 @@ class Rest extends WebService
}
/**
* @param array $params
*
* @throws Exception
*
* @return array
@ -1555,8 +1541,6 @@ class Rest extends WebService
}
/**
* @param array $params
*
* @return array
*/
public function addUsersSession(array $params)
@ -1582,31 +1566,16 @@ class Rest extends WebService
}
/**
* @param array $additionalParams Optional
*
* @return string
*/
private function encodeParams(array $additionalParams = [])
{
$params = array_merge($additionalParams, [
'api_key' => $this->apiKey,
'username' => $this->user->getUsername(),
]);
$encoded = json_encode($params);
return $encoded;
}
/**
* Creates a session from a model session
* Creates a session from a model session.
*
* @param $modelSessionId
* @param $sessionName
* @param $startDate
* @param $endDate
* @param array $extraFields
* @return int, the id of the new session
*
* @throws Exception
*
* @return int, the id of the new session
*/
public function createSessionFromModel($modelSessionId, $sessionName, $startDate, $endDate, array $extraFields = [])
{
@ -1705,12 +1674,14 @@ class Rest extends WebService
}
/**
* subscribes a user to a session
* subscribes a user to a session.
*
* @param int $sessionId the session id
* @param int $sessionId the session id
* @param string $loginName the user's login name
* @return boolean, whether it worked
*
* @throws Exception
*
* @return boolean, whether it worked
*/
public function subscribeUserToSessionFromUsername($sessionId, $loginName)
{
@ -1719,7 +1690,7 @@ class Rest extends WebService
}
$userId = UserManager::get_user_id_from_username($loginName);
if (False === $userId) {
if (false === $userId) {
throw new Exception(get_lang('UserNotFound'));
}
@ -1736,12 +1707,14 @@ class Rest extends WebService
}
/**
* finds the session which has a specific value in a specific extra field
* finds the session which has a specific value in a specific extra field.
*
* @param $fieldName
* @param $fieldValue
* @return int, the matching session id
*
* @throws Exception when no session matched or more than one session matched
*
* @return int, the matching session id
*/
public function getSessionFromExtraField($fieldName, $fieldValue)
{
@ -1765,11 +1738,13 @@ class Rest extends WebService
}
/**
* updates a user identified by its login name
* updates a user identified by its login name.
*
* @param array $parameters
* @return boolean, true on success
*
* @throws Exception on failure
*
* @return boolean, true on success
*/
public function updateUserFromUserName($parameters)
{
@ -1900,8 +1875,7 @@ class Rest extends WebService
$fieldValue = $field['field_value'];
if (!isset($fieldName) || !isset($fieldValue) ||
!UserManager::update_extra_field_value($userId, $fieldName, $fieldValue)) {
throw new Exception(
get_lang('CouldNotUpdateExtraFieldValue').': '.print_r($field, true));
throw new Exception(get_lang('CouldNotUpdateExtraFieldValue').': '.print_r($field, true));
}
}
} else {
@ -1960,13 +1934,30 @@ class Rest extends WebService
}
/**
* Returns whether a user login name exists
* Returns whether a user login name exists.
*
* @param string $loginname the user login name
*
* @return bool whether the user login name exists
*/
public function usernameExist($loginname)
{
return false !== api_get_user_info_from_username($loginname);
}
/**
* @param array $additionalParams Optional
*
* @return string
*/
private function encodeParams(array $additionalParams = [])
{
$params = array_merge($additionalParams, [
'api_key' => $this->apiKey,
'username' => $this->user->getUsername(),
]);
$encoded = json_encode($params);
return $encoded;
}
}

@ -29,9 +29,6 @@ class RestResponse
$this->data = [];
}
/**
* @param array $data
*/
public function setData(array $data)
{
$this->error = false;

@ -2176,8 +2176,7 @@ function installSettings(
* Executes DB changes based in the classes defined in
* src/Chamilo/CoreBundle/Migrations/Schema/*.
*
* @param string $chamiloVersion
* @param EntityManager $manager
* @param string $chamiloVersion
*
* @throws \Doctrine\DBAL\DBALException
*
@ -2248,8 +2247,6 @@ function migrate($chamiloVersion, EntityManager $manager)
}
/**
* @param EntityManager $em
*
* @throws \Doctrine\DBAL\DBALException
*/
function fixIds(EntityManager $em)

@ -3013,9 +3013,10 @@ class learnpath
}
/**
* Returns the CSS class name associated with a given item status
* Returns the CSS class name associated with a given item status.
*
* @param $status string an item status
*
* @return string CSS class name
*/
public static function getStatusCSSClassName($status)
@ -3023,6 +3024,7 @@ class learnpath
if (array_key_exists($status, self::STATUS_CSS_CLASS_NAME)) {
return self::STATUS_CSS_CLASS_NAME[$status];
}
return '';
}
@ -3032,12 +3034,11 @@ class learnpath
* (title and descriptions as secured)
* and clues for CSS class composition:
* - booleans is_current, is_parent_of_current, is_chapter
* - string status_css_class_name
* - string status_css_class_name.
*
* @param $parentId int restrict returned list to children of this parent
*
* @return array TOC as a table
*
*/
public function getTOCTree($parentId = 0)
{
@ -4565,8 +4566,6 @@ class learnpath
/**
* Check if the learnpath category is visible for a user.
*
* @param CLpCategory $category
* @param User $user
* @param int
* @param int
*
@ -4610,8 +4609,8 @@ class learnpath
return true;
}
$noUserSubscribed = false;
$noGroupSubscribed = true;
$noUserSubscribed = false;
$noGroupSubscribed = true;
$users = $category->getUsers();
if (empty($users) || !$users->count()) {
$noUserSubscribed = true;
@ -4634,7 +4633,7 @@ class learnpath
$course = $courseRepo->find($courseId);
if ($courseId!=0) {
if ($courseId != 0) {
// Subscribed groups to a LP
$subscribedGroupsInLp = $itemRepo->getGroupsSubscribedToItem(
TOOL_LEARNPATH_CATEGORY,
@ -4644,7 +4643,7 @@ class learnpath
);
}
if (!empty($subscribedGroupsInLp)) {
if (!empty($subscribedGroupsInLp)) {
$noGroupSubscribed = false;
if (!empty($groups)) {
$groups = array_column($groups, 'iid');
@ -4659,14 +4658,14 @@ class learnpath
}
}
$response = $noGroupSubscribed && $noUserSubscribed;
return $response;
}
/**
* Check if a learnpath category is published as course tool.
*
* @param CLpCategory $category
* @param int $courseId
* @param int $courseId
*
* @return bool
*/
@ -13565,9 +13564,6 @@ EOD;
return $value;
}
/**
* @param FormValidator $form
*/
public function setItemTitle(FormValidator $form)
{
if (api_get_configuration_value('save_titles_as_html')) {

@ -122,8 +122,6 @@ echo $form->returnForm();
Display::display_footer();
/**
* @param Session $session
*
* @return array
*/
function getSessionCourseList(Session $session)

@ -7,9 +7,8 @@
class ch_comment extends survey_question
{
/**
* @param FormValidator $form
* @param array $questionData
* @param string $answers
* @param array $questionData
* @param string $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = '')
{

@ -24,9 +24,8 @@ class ch_dropdown extends survey_question
}
/**
* @param FormValidator $form
* @param array $questionData
* @param array $answers
* @param array $questionData
* @param array $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = [])
{

@ -49,9 +49,8 @@ class ch_multiplechoice extends survey_question
}
/**
* @param FormValidator $form
* @param array $questionData
* @param array $answers
* @param array $questionData
* @param array $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = [])
{

@ -39,9 +39,8 @@ class ch_multipleresponse extends survey_question
}
/**
* @param FormValidator $form
* @param array $questionData
* @param array $answers
* @param array $questionData
* @param array $answers
*/
public function render(
FormValidator $form,

@ -7,9 +7,8 @@
class ch_open extends survey_question
{
/**
* @param FormValidator $form
* @param array $questionData
* @param string $answers
* @param array $questionData
* @param string $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = '')
{

@ -7,9 +7,8 @@
class ch_percentage extends survey_question
{
/**
* @param FormValidator $form
* @param array $questionData
* @param array $answers
* @param array $questionData
* @param array $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = '')
{

@ -85,9 +85,8 @@ class ch_personality extends survey_question
}
/**
* @param FormValidator $form
* @param array $questionData
* @param array $answers
* @param array $questionData
* @param array $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = [])
{

@ -33,9 +33,8 @@ class ch_score extends survey_question
}
/**
* @param FormValidator $form
* @param array $questionData
* @param array $answers
* @param array $questionData
* @param array $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = [])
{

@ -46,9 +46,8 @@ class ch_yesno extends survey_question
}
/**
* @param FormValidator $form
* @param array $questionData
* @param array $answers
* @param array $questionData
* @param array $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = null)
{

@ -2801,7 +2801,6 @@ class SurveyUtil
/**
* This function displays the sortable table with all the surveys.
*
*
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University
*
* @version January 2007

@ -12,7 +12,6 @@
*
* @todo use quickforms for the forms
*/
use ChamiloSession as Session;
if (!isset($_GET['cidReq'])) {

@ -13,8 +13,7 @@ class survey_question
private $form;
/**
* @param FormValidator $form
* @param array $surveyData
* @param array $surveyData
*/
public function addParentMenu(FormValidator $form, $surveyData)
{
@ -330,7 +329,7 @@ class survey_question
Session::write('answer_count', $counter);
}
$newAnswers=[];
$newAnswers = [];
foreach ($formData['answers'] as $key => &$value) {
if ($key > $deleted) {
// swap with previous (deleted) option slot
@ -452,9 +451,8 @@ class survey_question
}
/**
* @param FormValidator $form
* @param array $questionData
* @param array $answers
* @param array $questionData
* @param array $answers
*/
public function render(FormValidator $form, $questionData = [], $answers = [])
{

@ -1,7 +1,7 @@
<?php
/* For licensing terms, see /license.txt */
/**
* Entry point for REST web services in Chamilo
* Entry point for REST web services in Chamilo.
*
* Call it with the 'authenticate' action first, to get an api_key, then use
* the api_key in all subsequent calls.
@ -307,7 +307,7 @@ try {
$subscribed = $restApi->subscribeUserToSessionFromUsername($_POST['sessionId'], $_POST['loginname']);
$restResponse->setData([$subscribed]);
break;
case Rest::GET_SESSION_FROM_EXTRA_FIELD;
case Rest::GET_SESSION_FROM_EXTRA_FIELD:
if (empty($_POST['field_name']) || empty($_POST['field_value'])) {
throw new Exception(get_lang('NoData'));
}
@ -334,5 +334,4 @@ try {
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');
echo $restResponse->format();

@ -30,8 +30,6 @@ class HookAdvancedSubscription extends HookObserver implements HookAdminBlockObs
}
/**
* @param HookAdminBlockEventInterface $hook
*
* @return array
*/
public function hookAdminBlock(HookAdminBlockEventInterface $hook)
@ -53,8 +51,6 @@ class HookAdvancedSubscription extends HookObserver implements HookAdminBlockObs
/**
* Add Webservices to registration.soap.php.
*
* @param HookWSRegistrationEventInterface $hook
*
* @return mixed (int or false)
*/
public function hookWSRegistration(HookWSRegistrationEventInterface $hook)
@ -626,8 +622,6 @@ class HookAdvancedSubscription extends HookObserver implements HookAdminBlockObs
/**
* Return notification content when the hook has been triggered.
*
* @param HookNotificationContentEventInterface $hook
*
* @return mixed (int or false)
*/
public function hookNotificationContent(HookNotificationContentEventInterface $hook)
@ -662,8 +656,6 @@ class HookAdvancedSubscription extends HookObserver implements HookAdminBlockObs
/**
* Return the notification data title if the hook was triggered.
*
* @param HookNotificationTitleEventInterface $hook
*
* @return array|bool
*/
public function hookNotificationTitle(HookNotificationTitleEventInterface $hook)

@ -7,5 +7,4 @@
*
* @package chamilo.plugin.azure_active_directory
*/
$strings['InvalidId'] = 'Deze identificatie is niet geldig (verkeerde log-in of wachtwoord). Errocode: AZMNF';

@ -190,6 +190,6 @@ $strings['SubscriptionToServiceXSuccessful'] = "Subscription to service %s compl
$strings['ClickHereToFinish'] = "Click here to finish";
$strings['OrderCancelled'] = "Order cancelled";
$strings['use_currency_symbol'] = "Use currency symbol";
$strings['ExportReport'] = "Export Sales Report";
$strings['ExportReport'] = "Export Sales Report";
$strings['OrderTime'] = "Order time";
$strings['SelectDateRange'] = "Select a <strong>start date</strong> and <strong>end date</strong> for the report";

@ -160,6 +160,6 @@ $strings['BoughtBy'] = "Acheté par";
$strings['PurchaserUser'] = "Utilisateur acheteur";
$strings['Pending'] = "En attente";
$strings['Names'] = "Nom";
$strings['ExportReport'] = "Export du rapport des ventes";
$strings['ExportReport'] = "Export du rapport des ventes";
$strings['OrderTime'] = "Heure de commande";
$strings['SelectDateRange'] = "Sélectionnez une date de début et une date de fin pour le rapport";
$strings['SelectDateRange'] = "Sélectionnez une date de début et une date de fin pour le rapport";

@ -213,4 +213,4 @@ $strings['BankAccountIntro'] = "Información cuentas bancarias";
$strings['CurrencyIsNotConfigured'] = "Por favor, confogure una moneda antes de continuar.";
$strings['ExportReport'] = "Exportar reporte de ventas";
$strings['OrderTime'] = "Hora de pedido";
$strings['SelectDateRange'] = "Seleccione una <strong>fecha de inicio</strong> y <strong>fecha de fin</strong> para el reporte";
$strings['SelectDateRange'] = "Seleccione una <strong>fecha de inicio</strong> y <strong>fecha de fin</strong> para el reporte";

@ -1283,8 +1283,10 @@ class BuyCoursesPlugin extends Plugin
*
* @param string $dateStart
* @param string $dateEnd
* @return array
*
* @throws Exception
*
* @return array
*/
public function getSaleListReport($dateStart = null, $dateEnd = null)
{
@ -1296,7 +1298,7 @@ class BuyCoursesPlugin extends Plugin
INNER JOIN $userTable u ON s.user_id = u.id
";
$list = Database::select(
['c.iso_code', 'u.firstname', 'u.lastname', 'u.email' , 's.*'],
['c.iso_code', 'u.firstname', 'u.lastname', 'u.email', 's.*'],
"$saleTable s $innerJoins",
[
'order' => 'id DESC',
@ -1346,7 +1348,7 @@ class BuyCoursesPlugin extends Plugin
$this->get_lang('ProductType'),
$this->get_lang('ProductName'),
$this->get_lang('UserName'),
get_lang('Email')
get_lang('Email'),
];
//Validation Export
$dateStart = strtotime($dateStart);
@ -1368,6 +1370,7 @@ class BuyCoursesPlugin extends Plugin
];
}
}
return $listExport;
}
@ -1576,8 +1579,9 @@ class BuyCoursesPlugin extends Plugin
INNER JOIN $currencyTable c ON s.currency_id = c.id
INNER JOIN $userTable u ON s.user_id = u.id
";
return Database::select(
['c.iso_code', 'u.firstname', 'u.lastname', 'u.email' , 's.*'],
['c.iso_code', 'u.firstname', 'u.lastname', 'u.email', 's.*'],
"$saleTable s $innerJoins",
[
'where' => [
@ -1609,6 +1613,7 @@ class BuyCoursesPlugin extends Plugin
INNER JOIN $currencyTable c ON s.currency_id = c.id
INNER JOIN $userTable u ON s.user_id = u.id
";
return Database::select(
['c.iso_code', 'u.firstname', 'u.lastname', 'u.email', 's.*'],
"$saleTable s $innerJoins",
@ -1624,8 +1629,7 @@ class BuyCoursesPlugin extends Plugin
/**
* Convert the course info to array with necessary course data for save item.
*
* @param Course $course
* @param array $defaultCurrency Optional. Currency data
* @param array $defaultCurrency Optional. Currency data
*
* @return array
*/
@ -2766,8 +2770,6 @@ class BuyCoursesPlugin extends Plugin
}
/**
* @param Session $session
*
* @return array
*/
public function getBuyCoursePluginPrice(Session $session)
@ -2790,8 +2792,6 @@ class BuyCoursesPlugin extends Plugin
}
/**
* @param array $saleInfo
*
* @return string
*/
public function getSubscriptionSuccessMessage(array $saleInfo)

@ -12,7 +12,7 @@ $form = new FormValidator('export_validate');
$form->addDatePicker('date_start', get_lang('DateStart'), false);
$form->addDatePicker('date_end', get_lang('DateEnd'), false);
$form->addButton('export_sales',get_lang('ExportExcel'),'check','primary');
$form->addButton('export_sales', get_lang('ExportExcel'), 'check', 'primary');
$salesStatus = [];
if ($form->validate()) {
@ -23,14 +23,14 @@ if ($form->validate()) {
if ($dateStart == null || $dateEnd == null) {
Display::addFlash(
Display::return_message($plugin->get_lang('SelectDateRange'),'error', false)
Display::return_message($plugin->get_lang('SelectDateRange'), 'error', false)
);
} else if ($dateStart>$dateEnd) {
} elseif ($dateStart > $dateEnd) {
Display::addFlash(
Display::return_message(get_lang('EndDateCannotBeBeforeTheStartDate'),'error', false)
Display::return_message(get_lang('EndDateCannotBeBeforeTheStartDate'), 'error', false)
);
} else {
$salesStatus = $plugin->getSaleListReport($dateStart,$dateEnd);
$salesStatus = $plugin->getSaleListReport($dateStart, $dateEnd);
}
}
@ -39,16 +39,16 @@ if (!empty($salesStatus)) {
Export::arrayToXls($salesStatus, $archiveFile);
}
$interbreadcrumb[] = [
'url' => '../index.php', 'name' => $plugin->get_lang('plugin_title')
'url' => '../index.php', 'name' => $plugin->get_lang('plugin_title'),
];
$interbreadcrumb[] = [
'url' => api_get_path(WEB_PLUGIN_PATH).'buycourses/src/sales_report.php',
'name' => $plugin->get_lang('SalesReport')
'name' => $plugin->get_lang('SalesReport'),
];
$templateName = $plugin->get_lang('ExportReport');
$toolbar = Display::url(
Display::return_icon('back.png',get_lang('GoBack'),[],ICON_SIZE_MEDIUM),
Display::return_icon('back.png', get_lang('GoBack'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_PLUGIN_PATH).'buycourses/src/sales_report.php'
);
$template = new Template($templateName);
@ -60,4 +60,4 @@ $template->assign('form', $form->returnForm());
$content = $template->fetch('buycourses/view/export_report.tpl');
$template->assign('header', $templateName);
$template->assign('content', $content);
$template->display_one_col_template();
$template->display_one_col_template();

@ -69,8 +69,8 @@ $paymentTypes = $plugin->getPaymentTypes();
$selectedFilterType = '0';
$selectedStatus = isset($_GET['status']) ? $_GET['status'] : BuyCoursesPlugin::SALE_STATUS_PENDING;
$selectedSale = isset($_GET['sale']) ? intval($_GET['sale']) : 0;
$dateStart = isset($_GET['date_start']) ? $_GET['date_start'] : date('Y-m-d H:i', mktime(0,0,0));
$dateEnd = isset($_GET['date_end']) ? $_GET['date_end'] : date('Y-m-d H:i', mktime(23,59,59));
$dateStart = isset($_GET['date_start']) ? $_GET['date_start'] : date('Y-m-d H:i', mktime(0, 0, 0));
$dateEnd = isset($_GET['date_end']) ? $_GET['date_end'] : date('Y-m-d H:i', mktime(23, 59, 59));
$searchTerm = '';
$email = '';
@ -100,7 +100,7 @@ $form->addRadio(
$plugin->get_lang('ByStatus'),
$plugin->get_lang('ByUser'),
$plugin->get_lang('ByDate'),
$plugin->get_lang('ByEmail')
$plugin->get_lang('ByEmail'),
]
);
$form->addHtml('<div id="report-by-status" '.($selectedFilterType !== '0' ? 'style="display:none"' : '').'>');
@ -121,7 +121,7 @@ $form->setDefaults([
'status' => $selectedStatus,
'date_start' => $dateStart,
'date_end' => $dateEnd,
'email' => $email
'email' => $email,
]);
switch ($selectedFilterType) {

@ -68,8 +68,6 @@ class NotificationRelUser
}
/**
* @param Notification $notification
*
* @return NotificationRelUser
*/
public function setNotification(Notification $notification)

@ -138,9 +138,6 @@ class EmbedRegistryPlugin extends Plugin
}
/**
* @param Course $course
* @param Session|null $session
*
* @throws \Doctrine\ORM\NonUniqueResultException
*
* @return Embed
@ -172,8 +169,6 @@ class EmbedRegistryPlugin extends Plugin
}
/**
* @param Embed $embed
*
* @return string
*/
public function formatDisplayDate(Embed $embed)
@ -193,8 +188,6 @@ class EmbedRegistryPlugin extends Plugin
}
/**
* @param Embed $embed
*
* @return string
*/
public function getViewUrl(Embed $embed)
@ -203,8 +196,6 @@ class EmbedRegistryPlugin extends Plugin
}
/**
* @param Embed $embed
*
* @throws \Doctrine\ORM\Query\QueryException
*
* @return int

@ -113,8 +113,6 @@ class Embed
}
/**
* @param \DateTime $displayStartDate
*
* @return Embed
*/
public function setDisplayStartDate(\DateTime $displayStartDate)
@ -133,8 +131,6 @@ class Embed
}
/**
* @param \DateTime $displayEndDate
*
* @return Embed
*/
public function setDisplayEndDate(\DateTime $displayEndDate)
@ -173,8 +169,6 @@ class Embed
}
/**
* @param Course $course
*
* @return Embed
*/
public function setCourse(Course $course)
@ -193,8 +187,6 @@ class Embed
}
/**
* @param Session|null $session
*
* @return Embed
*/
public function setSession(Session $session = null)

@ -28,9 +28,7 @@ try {
$form = $gradingElectronic->getForm();
if (!$form->validate()) {
throw new Exception(
implode('<br>', $form->_errors)
);
throw new Exception(implode('<br>', $form->_errors));
}
$em = Database::getManager();

@ -10,7 +10,7 @@ class Justification extends Plugin
'Julio Montoya',
[
'tool_enable' => 'boolean',
'default_course_id' => 'text'
'default_course_id' => 'text',
]
);
}
@ -64,7 +64,7 @@ class Justification extends Plugin
}
/**
* Install
* Install.
*/
public function install()
{

@ -62,7 +62,6 @@ $tpl->assign(
Display::toolbarAction('toolbar', [$actionLinks])
);
$content = $form->returnForm();
$tpl->assign('content', $content);

@ -68,13 +68,15 @@ foreach ($userList as $user) {
unsubscribeUser($userId, $courseInfo);
}
function unsubscribeUser($userId, $courseInfo) {
function unsubscribeUser($userId, $courseInfo)
{
$courseId = $courseInfo['real_id'];
CourseManager::unsubscribe_user($userId, $courseInfo['code']);
echo "Unsubscribe user id #$userId to course #$courseId".PHP_EOL;
}
function subscribeUser($userId, $courseInfo) {
function subscribeUser($userId, $courseInfo)
{
$courseId = $courseInfo['real_id'];
$isUserSubscribed = CourseManager::is_user_subscribed_in_course($userId, $courseInfo['code']);
if ($isUserSubscribed === false) {

@ -70,7 +70,6 @@ $tpl->assign(
Display::toolbarAction('toolbar', [$actionLinks])
);
$content = $form->returnForm();
$tpl->assign('content', $content);

@ -2,4 +2,3 @@
/* For license terms, see /license.txt */
$plugin = Justification::create();

@ -19,6 +19,3 @@ $strings['SubscribeToASession'] = "Subscribe to a session";
$strings['JustificationName'] = "Justification name";
$strings['JustificationDate'] = "Justification date";
$strings['DocumentListForUserX'] = "Document list of user %s";

@ -19,4 +19,3 @@ $strings['JustificationDate'] = "Date du justificatif";
$strings['SubscribeToASession'] = "S'inscrire à une session d'examen";
$strings['DocumentListForUserX'] = "Liste des documents pour %s";

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save