Skip to content

Commit f8317a7

Browse files
Merge pull request #6191 from christianbeeznest/fixes-updates84
Internal: Add setting titles and comments for multiple config categories
2 parents 0e3a6bb + aa8a15c commit f8317a7

File tree

4 files changed

+148
-3
lines changed

4 files changed

+148
-3
lines changed

src/CoreBundle/DataFixtures/SettingsCurrentFixtures.php

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,11 @@ public static function getExistingSettings(): array
595595
],
596596
],
597597
'social' => [
598+
[
599+
'name' => 'hide_social_groups_block',
600+
'title' => 'Hide groups block in social network',
601+
'comment' => 'Removes the groups section from the social network view.',
602+
],
598603
[
599604
'name' => 'allow_social_tool',
600605
'title' => 'Social network tool (Facebook-like)',
@@ -719,6 +724,31 @@ public static function getExistingSettings(): array
719724
],
720725
],
721726
'language' => [
727+
[
728+
'name' => 'platform_language',
729+
'title' => 'Default platform language',
730+
'comment' => 'Main language, used by default when no user language is set.',
731+
],
732+
[
733+
'name' => 'language_priority_1',
734+
'title' => 'Highest priority language',
735+
'comment' => 'Primary language selected when multiple language contexts are set.',
736+
],
737+
[
738+
'name' => 'language_priority_2',
739+
'title' => 'Secondary priority language',
740+
'comment' => 'Secondary fallback language if first priority is unavailable or out of context.',
741+
],
742+
[
743+
'name' => 'language_priority_3',
744+
'title' => 'Third priority language',
745+
'comment' => 'Tertiary language fallback if higher priorities fail.',
746+
],
747+
[
748+
'name' => 'language_priority_4',
749+
'title' => 'Fourth priority language',
750+
'comment' => 'Last language fallback option by order of priority.',
751+
],
722752
[
723753
'name' => 'allow_use_sub_language',
724754
'title' => 'Allow definition and use of sub-languages',
@@ -1016,6 +1046,16 @@ public static function getExistingSettings(): array
10161046
],
10171047
],
10181048
'platform' => [
1049+
[
1050+
'name' => 'chamilo_database_version',
1051+
'title' => 'Current version of the database schema used by Chamilo',
1052+
'comment' => 'Displays the current DB version to match the Chamilo core version.',
1053+
],
1054+
[
1055+
'name' => 'notification_event',
1056+
'title' => 'Enable the notification tool for a more impactful communication channel with students',
1057+
'comment' => 'Activates popup or system notifications for important platform events.',
1058+
],
10191059
[
10201060
'name' => 'institution',
10211061
'title' => 'Organization name',
@@ -1377,6 +1417,11 @@ public static function getExistingSettings(): array
13771417
],
13781418
],
13791419
'announcement' => [
1420+
[
1421+
'name' => 'announcements_hide_send_to_hrm_users',
1422+
'title' => 'Hide option to send announcements to HR users',
1423+
'comment' => 'Remove the checkbox to enable sending announcements to users with HR roles (still requires to confirm in the announcements tool).',
1424+
],
13801425
[
13811426
'name' => 'hide_global_announcements_when_not_connected',
13821427
'title' => 'Hide global announcements for anonymous',
@@ -1678,6 +1723,11 @@ public static function getNewConfigurationSettings(): array
16781723
],
16791724
],
16801725
'agenda' => [
1726+
[
1727+
'name' => 'agenda_reminders_sender_id',
1728+
'title' => 'ID of the user who officially sends the agenda reminders',
1729+
'comment' => 'Sets which user appears as the sender of agenda reminder emails.',
1730+
],
16811731
[
16821732
'name' => 'agenda_colors',
16831733
'title' => 'Agenda colours',
@@ -2131,6 +2181,11 @@ public static function getNewConfigurationSettings(): array
21312181
],
21322182
],
21332183
'lp' => [
2184+
[
2185+
'name' => 'lp_prerequisite_on_quiz_unblock_if_max_attempt_reached',
2186+
'title' => 'Unlock prerequisites after last test attempt',
2187+
'comment' => 'Allows users to continue in a learning path after using all quiz attempts of a test used as prerequisite for other items.',
2188+
],
21342189
[
21352190
'name' => 'add_all_files_in_lp_export',
21362191
'title' => 'Export all files when exporting a learning path',
@@ -2672,6 +2727,11 @@ public static function getNewConfigurationSettings(): array
26722727
],
26732728
],
26742729
'gradebook' => [
2730+
[
2731+
'name' => 'my_display_coloring',
2732+
'title' => 'Display colors for scores in the gradebook',
2733+
'comment' => 'Enables color coding for better score visibility in the gradebook.',
2734+
],
26752735
[
26762736
'name' => 'allow_gradebook_comments',
26772737
'title' => 'Gradebook comments',
@@ -2786,6 +2846,11 @@ public static function getNewConfigurationSettings(): array
27862846
],
27872847
],
27882848
'profile' => [
2849+
[
2850+
'name' => 'visible_options',
2851+
'title' => 'List of visible fields in profile',
2852+
'comment' => 'Controls which profile fields are visible to users and others.',
2853+
],
27892854
[
27902855
'name' => 'add_user_course_information_in_mailto',
27912856
'title' => 'Pre-fill the mail with user and course info in footer contact',
@@ -2923,6 +2988,21 @@ public static function getNewConfigurationSettings(): array
29232988
],
29242989
],
29252990
'mail' => [
2991+
[
2992+
'name' => 'smtp_unique_sender',
2993+
'title' => 'Send all e-mails as one single sender',
2994+
'comment' => 'Overrides sender for all emails to appear from a unique address.',
2995+
],
2996+
[
2997+
'name' => 'smtp_from_email',
2998+
'title' => 'Send all e-mails from this e-mail address',
2999+
'comment' => 'Sets the default email address used in the "from" field of emails.',
3000+
],
3001+
[
3002+
'name' => 'smtp_from_name',
3003+
'title' => 'Send all e-mails as originating from this (organizational) name',
3004+
'comment' => 'Sets the default display name used for sending platform emails. e.g. "Support team".',
3005+
],
29263006
[
29273007
'name' => 'allow_email_editor_for_anonymous',
29283008
'title' => 'E-mail editor for anonymous',
@@ -3019,6 +3099,21 @@ public static function getNewConfigurationSettings(): array
30193099
],
30203100
],
30213101
'security' => [
3102+
[
3103+
'name' => 'password_requirements',
3104+
'title' => 'Minimal password syntax requirements',
3105+
'comment' => 'Defines the required structure for user passwords.',
3106+
],
3107+
[
3108+
'name' => 'allow_online_users_by_status',
3109+
'title' => 'Filter users that can be seen as online',
3110+
'comment' => 'Limits online user visibility to specific user roles.',
3111+
],
3112+
[
3113+
'name' => 'anonymous_autoprovisioning',
3114+
'title' => 'Auto-provision more anonymous users',
3115+
'comment' => 'Dynamically creates new anonymous users to support high visitor traffic.',
3116+
],
30223117
[
30233118
'name' => 'admins_can_set_users_pass',
30243119
'title' => 'Admins can set users passwords manually',
@@ -3086,6 +3181,11 @@ public static function getNewConfigurationSettings(): array
30863181
],
30873182
],
30883183
'session' => [
3184+
[
3185+
'name' => 'duplicate_specific_session_content_on_session_copy',
3186+
'title' => 'Enable the copy of session-specific content to another session',
3187+
'comment' => 'Allows duplication of resources that were created in the session when duplicating the session.',
3188+
],
30893189
[
30903190
'name' => 'allow_delete_user_for_session_admin',
30913191
'title' => 'Session admins can delete users',
@@ -3467,6 +3567,53 @@ public static function getNewConfigurationSettings(): array
34673567
'comment' => "Allow ticket projects to be accesses by specific user roles. Example: ['permissions' => [1 => [17]] where project_id = 1, STUDENT_BOSS = 17.",
34683568
],
34693569
],
3570+
'ai_helpers' => [
3571+
[
3572+
'name' => 'enable_ai_helpers',
3573+
'title' => 'Enable the AI helper tool',
3574+
'comment' => 'Enables all available AI-powered features in the platform.',
3575+
],
3576+
[
3577+
'name' => 'ai_providers',
3578+
'title' => 'AI providers connection data',
3579+
'comment' => 'Configuration data to connect with external AI services.',
3580+
],
3581+
[
3582+
'name' => 'learning_path_generator',
3583+
'title' => 'Learning paths generator',
3584+
'comment' => 'Generates personalized learning paths using AI suggestions.',
3585+
],
3586+
[
3587+
'name' => 'exercise_generator',
3588+
'title' => 'Exercise generator',
3589+
'comment' => 'Generates personalized tests with AI based on course content.',
3590+
],
3591+
[
3592+
'name' => 'open_answers_grader',
3593+
'title' => 'Open answers grader',
3594+
'comment' => 'Automatically grades open-ended answers using AI.',
3595+
],
3596+
[
3597+
'name' => 'tutor_chatbot',
3598+
'title' => 'Tutor chatbot energized by AI',
3599+
'comment' => 'Provides students with an AI-powered tutoring assistant.',
3600+
],
3601+
[
3602+
'name' => 'task_grader',
3603+
'title' => 'Assignments grader',
3604+
'comment' => 'Uses AI to evaluate and grade uploaded assignments.',
3605+
],
3606+
[
3607+
'name' => 'content_analyser',
3608+
'title' => 'Content analyser',
3609+
'comment' => 'Analyses learning materials to extract insights or improve quality.',
3610+
],
3611+
[
3612+
'name' => 'image_generator',
3613+
'title' => 'Image generator',
3614+
'comment' => 'Generates images based on prompts or content using AI.',
3615+
],
3616+
],
34703617
];
34713618
}
34723619
}

src/CoreBundle/Settings/MailSettingsSchema.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public function buildSettings(AbstractSettingsBuilder $builder): void
3131
'send_notification_score_in_percentage' => 'false',
3232
'cron_notification_help_desk' => '',
3333
'notifications_extended_footer_message' => '',
34-
3534
'smtp_unique_sender' => 'false',
3635
'smtp_from_email' => '',
3736
'smtp_from_name' => '',

src/CoreBundle/Settings/PlatformSettingsSchema.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public function buildSettings(AbstractSettingsBuilder $builder): void
9393
'redirect_index_to_url_for_logged_users' => '',
9494
'default_menu_entry_for_course_or_session' => 'my_courses',
9595
'notification_event' => 'false',
96-
'access_to_personal_file_for_all' => 'false',
9796
]
9897
)
9998
->setTransformer(
@@ -272,7 +271,6 @@ public function buildForm(FormBuilderInterface $builder): void
272271
]
273272
)
274273
->add('notification_event', YesNoType::class)
275-
->add('access_to_personal_file_for_all', YesNoType::class)
276274
;
277275

278276
$this->updateFormFieldsFromSettingsInfo($builder);

src/CoreBundle/Settings/SessionSettingsSchema.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ public function buildForm(FormBuilderInterface $builder): void
206206
]
207207
)
208208
->add('session_model_list_field_ordered_by_id', YesNoType::class)
209+
->add('duplicate_specific_session_content_on_session_copy', YesNoType::class)
209210
;
210211

211212
$this->updateFormFieldsFromSettingsInfo($builder);

0 commit comments

Comments
 (0)