Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 147 additions & 0 deletions src/CoreBundle/DataFixtures/SettingsCurrentFixtures.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,11 @@ public static function getExistingSettings(): array
],
],
'social' => [
[
'name' => 'hide_social_groups_block',
'title' => 'Hide groups block in social network',
'comment' => 'Removes the groups section from the social network view.',
],
[
'name' => 'allow_social_tool',
'title' => 'Social network tool (Facebook-like)',
Expand Down Expand Up @@ -719,6 +724,31 @@ public static function getExistingSettings(): array
],
],
'language' => [
[
'name' => 'platform_language',
'title' => 'Default platform language',
'comment' => 'Main language, used by default when no user language is set.',
],
[
'name' => 'language_priority_1',
'title' => 'Highest priority language',
'comment' => 'Primary language selected when multiple language contexts are set.',
],
[
'name' => 'language_priority_2',
'title' => 'Secondary priority language',
'comment' => 'Secondary fallback language if first priority is unavailable or out of context.',
],
[
'name' => 'language_priority_3',
'title' => 'Third priority language',
'comment' => 'Tertiary language fallback if higher priorities fail.',
],
[
'name' => 'language_priority_4',
'title' => 'Fourth priority language',
'comment' => 'Last language fallback option by order of priority.',
],
[
'name' => 'allow_use_sub_language',
'title' => 'Allow definition and use of sub-languages',
Expand Down Expand Up @@ -1016,6 +1046,16 @@ public static function getExistingSettings(): array
],
],
'platform' => [
[
'name' => 'chamilo_database_version',
'title' => 'Current version of the database schema used by Chamilo',
'comment' => 'Displays the current DB version to match the Chamilo core version.',
],
[
'name' => 'notification_event',
'title' => 'Enable the notification tool for a more impactful communication channel with students',
'comment' => 'Activates popup or system notifications for important platform events.',
],
[
'name' => 'institution',
'title' => 'Organization name',
Expand Down Expand Up @@ -1377,6 +1417,11 @@ public static function getExistingSettings(): array
],
],
'announcement' => [
[
'name' => 'announcements_hide_send_to_hrm_users',
'title' => 'Hide option to send announcements to HR users',
'comment' => 'Remove the checkbox to enable sending announcements to users with HR roles (still requires to confirm in the announcements tool).',
],
[
'name' => 'hide_global_announcements_when_not_connected',
'title' => 'Hide global announcements for anonymous',
Expand Down Expand Up @@ -1678,6 +1723,11 @@ public static function getNewConfigurationSettings(): array
],
],
'agenda' => [
[
'name' => 'agenda_reminders_sender_id',
'title' => 'ID of the user who officially sends the agenda reminders',
'comment' => 'Sets which user appears as the sender of agenda reminder emails.',
],
[
'name' => 'agenda_colors',
'title' => 'Agenda colours',
Expand Down Expand Up @@ -2131,6 +2181,11 @@ public static function getNewConfigurationSettings(): array
],
],
'lp' => [
[
'name' => 'lp_prerequisite_on_quiz_unblock_if_max_attempt_reached',
'title' => 'Unlock prerequisites after last test attempt',
'comment' => 'Allows users to continue in a learning path after using all quiz attempts of a test used as prerequisite for other items.',
],
[
'name' => 'add_all_files_in_lp_export',
'title' => 'Export all files when exporting a learning path',
Expand Down Expand Up @@ -2672,6 +2727,11 @@ public static function getNewConfigurationSettings(): array
],
],
'gradebook' => [
[
'name' => 'my_display_coloring',
'title' => 'Display colors for scores in the gradebook',
'comment' => 'Enables color coding for better score visibility in the gradebook.',
],
[
'name' => 'allow_gradebook_comments',
'title' => 'Gradebook comments',
Expand Down Expand Up @@ -2786,6 +2846,11 @@ public static function getNewConfigurationSettings(): array
],
],
'profile' => [
[
'name' => 'visible_options',
'title' => 'List of visible fields in profile',
'comment' => 'Controls which profile fields are visible to users and others.',
],
[
'name' => 'add_user_course_information_in_mailto',
'title' => 'Pre-fill the mail with user and course info in footer contact',
Expand Down Expand Up @@ -2923,6 +2988,21 @@ public static function getNewConfigurationSettings(): array
],
],
'mail' => [
[
'name' => 'smtp_unique_sender',
'title' => 'Send all e-mails as one single sender',
'comment' => 'Overrides sender for all emails to appear from a unique address.',
],
[
'name' => 'smtp_from_email',
'title' => 'Send all e-mails from this e-mail address',
'comment' => 'Sets the default email address used in the "from" field of emails.',
],
[
'name' => 'smtp_from_name',
'title' => 'Send all e-mails as originating from this (organizational) name',
'comment' => 'Sets the default display name used for sending platform emails. e.g. "Support team".',
],
[
'name' => 'allow_email_editor_for_anonymous',
'title' => 'E-mail editor for anonymous',
Expand Down Expand Up @@ -3019,6 +3099,21 @@ public static function getNewConfigurationSettings(): array
],
],
'security' => [
[
'name' => 'password_requirements',
'title' => 'Minimal password syntax requirements',
'comment' => 'Defines the required structure for user passwords.',
],
[
'name' => 'allow_online_users_by_status',
'title' => 'Filter users that can be seen as online',
'comment' => 'Limits online user visibility to specific user roles.',
],
[
'name' => 'anonymous_autoprovisioning',
'title' => 'Auto-provision more anonymous users',
'comment' => 'Dynamically creates new anonymous users to support high visitor traffic.',
],
[
'name' => 'admins_can_set_users_pass',
'title' => 'Admins can set users passwords manually',
Expand Down Expand Up @@ -3086,6 +3181,11 @@ public static function getNewConfigurationSettings(): array
],
],
'session' => [
[
'name' => 'duplicate_specific_session_content_on_session_copy',
'title' => 'Enable the copy of session-specific content to another session',
'comment' => 'Allows duplication of resources that were created in the session when duplicating the session.',
],
[
'name' => 'allow_delete_user_for_session_admin',
'title' => 'Session admins can delete users',
Expand Down Expand Up @@ -3467,6 +3567,53 @@ public static function getNewConfigurationSettings(): array
'comment' => "Allow ticket projects to be accesses by specific user roles. Example: ['permissions' => [1 => [17]] where project_id = 1, STUDENT_BOSS = 17.",
],
],
'ai_helpers' => [
[
'name' => 'enable_ai_helpers',
'title' => 'Enable the AI helper tool',
'comment' => 'Enables all available AI-powered features in the platform.',
],
[
'name' => 'ai_providers',
'title' => 'AI providers connection data',
'comment' => 'Configuration data to connect with external AI services.',
],
[
'name' => 'learning_path_generator',
'title' => 'Learning paths generator',
'comment' => 'Generates personalized learning paths using AI suggestions.',
],
[
'name' => 'exercise_generator',
'title' => 'Exercise generator',
'comment' => 'Generates personalized tests with AI based on course content.',
],
[
'name' => 'open_answers_grader',
'title' => 'Open answers grader',
'comment' => 'Automatically grades open-ended answers using AI.',
],
[
'name' => 'tutor_chatbot',
'title' => 'Tutor chatbot energized by AI',
'comment' => 'Provides students with an AI-powered tutoring assistant.',
],
[
'name' => 'task_grader',
'title' => 'Assignments grader',
'comment' => 'Uses AI to evaluate and grade uploaded assignments.',
],
[
'name' => 'content_analyser',
'title' => 'Content analyser',
'comment' => 'Analyses learning materials to extract insights or improve quality.',
],
[
'name' => 'image_generator',
'title' => 'Image generator',
'comment' => 'Generates images based on prompts or content using AI.',
],
],
];
}
}
1 change: 0 additions & 1 deletion src/CoreBundle/Settings/MailSettingsSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public function buildSettings(AbstractSettingsBuilder $builder): void
'send_notification_score_in_percentage' => 'false',
'cron_notification_help_desk' => '',
'notifications_extended_footer_message' => '',

'smtp_unique_sender' => 'false',
'smtp_from_email' => '',
'smtp_from_name' => '',
Expand Down
2 changes: 0 additions & 2 deletions src/CoreBundle/Settings/PlatformSettingsSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public function buildSettings(AbstractSettingsBuilder $builder): void
'redirect_index_to_url_for_logged_users' => '',
'default_menu_entry_for_course_or_session' => 'my_courses',
'notification_event' => 'false',
'access_to_personal_file_for_all' => 'false',
]
)
->setTransformer(
Expand Down Expand Up @@ -272,7 +271,6 @@ public function buildForm(FormBuilderInterface $builder): void
]
)
->add('notification_event', YesNoType::class)
->add('access_to_personal_file_for_all', YesNoType::class)
;

$this->updateFormFieldsFromSettingsInfo($builder);
Expand Down
1 change: 1 addition & 0 deletions src/CoreBundle/Settings/SessionSettingsSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public function buildForm(FormBuilderInterface $builder): void
]
)
->add('session_model_list_field_ordered_by_id', YesNoType::class)
->add('duplicate_specific_session_content_on_session_copy', YesNoType::class)
;

$this->updateFormFieldsFromSettingsInfo($builder);
Expand Down
Loading