|
|
|
@ -501,26 +501,6 @@ class Version20150522222222 extends AbstractMigrationChamilo |
|
|
|
|
[0 => ['value' => 'true', 'text' => 'Yes'], 1 => ['value' => 'false', 'text' => 'No']] |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Filters administration users lists by the session admin who created them. |
|
|
|
|
// Change to true to restrict the visibility |
|
|
|
|
//$_configuration['prevent_session_admins_to_manage_all_users'] = false; |
|
|
|
|
$value = api_get_configuration_value('prevent_session_admins_to_manage_all_users'); |
|
|
|
|
$this->addSettingCurrent( |
|
|
|
|
'prevent_session_admins_to_manage_all_users', |
|
|
|
|
'', |
|
|
|
|
'radio', |
|
|
|
|
'Session', |
|
|
|
|
($value?$value:'false'), |
|
|
|
|
'PreventSessionAdminsToManageAllUsersTitle', |
|
|
|
|
'PreventSessionAdminsToManageAllUsersComment', |
|
|
|
|
null, |
|
|
|
|
'', |
|
|
|
|
1, |
|
|
|
|
true, |
|
|
|
|
false, |
|
|
|
|
[0 => ['value' => 'true', 'text' => 'Yes'], 1 => ['value' => 'false', 'text' => 'No']] |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// If there are any tool available and the user is not registered hide the group |
|
|
|
|
//$_configuration['hide_course_group_if_no_tools_available'] = false; |
|
|
|
|
$value = api_get_configuration_value('hide_course_group_if_no_tools_available'); |
|
|
|
@ -541,16 +521,16 @@ class Version20150522222222 extends AbstractMigrationChamilo |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
// Allow student to enroll into a session without an approval needing |
|
|
|
|
//$_configuration['catalog_allow_session_auto_subscription'] = true; |
|
|
|
|
//$_configuration['catalog_allow_session_auto_subscription'] = false; |
|
|
|
|
$value = api_get_configuration_value('catalog_allow_session_auto_subscription'); |
|
|
|
|
$this->addSettingCurrent( |
|
|
|
|
'catalog_allow_session_auto_subscription', |
|
|
|
|
'', |
|
|
|
|
'radio', |
|
|
|
|
'Session', |
|
|
|
|
($value?$value:'true'), |
|
|
|
|
'CatalogueAllowSessionAutoSubscriptionTitle', |
|
|
|
|
($value?$value:'false'), |
|
|
|
|
'CatalogueAllowSessionAutoSubscriptionTitle', |
|
|
|
|
'CatalogueAllowSessionAutoSubscriptionComment', |
|
|
|
|
null, |
|
|
|
|
'', |
|
|
|
|
1, |
|
|
|
@ -634,7 +614,7 @@ class Version20150522222222 extends AbstractMigrationChamilo |
|
|
|
|
true, |
|
|
|
|
false, |
|
|
|
|
[ |
|
|
|
|
0 => ['value' => 'mm', 'text' => 'mm'], |
|
|
|
|
0 => ['value' => 'mm', 'text' => 'mystery-man'], |
|
|
|
|
1 => ['value' => 'identicon', 'text' => 'identicon'], |
|
|
|
|
2 => ['value' => 'monsterid', 'text' => 'monsterid'], |
|
|
|
|
3 => ['value' => 'wavatar', 'text' => 'wavatar'] |
|
|
|
@ -742,7 +722,7 @@ class Version20150522222222 extends AbstractMigrationChamilo |
|
|
|
|
//$_configuration['force_sso_redirect'] = false; |
|
|
|
|
$value = api_get_configuration_value('force_sso_redirect'); |
|
|
|
|
$this->addSettingCurrent( |
|
|
|
|
'force_sso_redirect', |
|
|
|
|
'sso_force_redirect', |
|
|
|
|
'', |
|
|
|
|
'radio', |
|
|
|
|
'Security', |
|
|
|
@ -789,8 +769,8 @@ class Version20150522222222 extends AbstractMigrationChamilo |
|
|
|
|
*/ |
|
|
|
|
public function down(Schema $schema) |
|
|
|
|
{ |
|
|
|
|
$this->addSql("DELETE FROM settings_options WHERE variable IN ('session_course_ordering', 'force_sso_redirect', 'dropbox_hide_course_coach', 'hide_certificate_export_link', 'hide_certificate_export_link_students', 'show_session_description', 'limit_session_admin_role', 'gravatar_type', 'gravatar_enabled', 'allow_delete_attendance', 'registration.soap.php.decode_utf8', 'catalog_allow_session_auto_subscription', 'hide_course_group_if_no_tools_available', 'prevent_session_admins_to_manage_all_users', 'cookie_warning', 'openbadges_backpack', 'add_gradebook_certificates_cron_task_enabled', 'document_if_file_exists_option', 'exercise_max_ckeditors_in_page', 'certificate_filter_by_official_code', 'student_publication_to_take_in_gradebook', 'course_images_in_courses_list', 'redirect_admin_to_courses_list', 'hide_logout_button', 'allow_session_course_copy_for_teachers', 'lp_show_reduced_report', 'auto_detect_language_custom_pages', 'catalog_show_courses_sessions', 'course_catalog_hide_private', 'show_official_code_exercise_result_list', 'allow_lp_return_link', 'hide_scorm_export_link', 'hide_scorm_copy_link', 'hide_scorm_pdf_link', 'session_days_before_coach_access', 'session_days_after_coach_access', 'pdf_logo_header', 'order_user_list_by_official_code', 'email_alert_manager_on_new_quiz')"); |
|
|
|
|
$this->addSql("DELETE FROM settings_current WHERE variable IN ('session_course_ordering', 'force_sso_redirect', 'dropbox_hide_course_coach', 'hide_certificate_export_link', 'hide_certificate_export_link_students', 'show_session_description', 'limit_session_admin_role', 'gravatar_type', 'gravatar_enabled', 'allow_delete_attendance', 'registration.soap.php.decode_utf8', 'catalog_allow_session_auto_subscription', 'hide_course_group_if_no_tools_available', 'prevent_session_admins_to_manage_all_users', 'cookie_warning', 'openbadges_backpack', 'add_gradebook_certificates_cron_task_enabled', 'document_if_file_exists_option', 'exercise_max_ckeditors_in_page', 'certificate_filter_by_official_code', 'student_publication_to_take_in_gradebook', 'course_images_in_courses_list', 'redirect_admin_to_courses_list', 'hide_logout_button', 'allow_session_course_copy_for_teachers', 'lp_show_reduced_report', 'auto_detect_language_custom_pages', 'catalog_show_courses_sessions', 'course_catalog_hide_private', 'show_official_code_exercise_result_list', 'allow_lp_return_link', 'hide_scorm_export_link', 'hide_scorm_copy_link', 'hide_scorm_pdf_link', 'session_days_before_coach_access', 'session_days_after_coach_access', 'pdf_logo_header', 'order_user_list_by_official_code', 'email_alert_manager_on_new_quiz')"); |
|
|
|
|
$this->addSql("DELETE FROM settings_options WHERE variable IN ('session_course_ordering', 'sso_force_redirect', 'dropbox_hide_course_coach', 'hide_certificate_export_link', 'hide_certificate_export_link_students', 'show_session_description', 'limit_session_admin_role', 'gravatar_type', 'gravatar_enabled', 'allow_delete_attendance', 'registration.soap.php.decode_utf8', 'catalog_allow_session_auto_subscription', 'hide_course_group_if_no_tools_available', 'cookie_warning', 'openbadges_backpack', 'add_gradebook_certificates_cron_task_enabled', 'document_if_file_exists_option', 'exercise_max_ckeditors_in_page', 'certificate_filter_by_official_code', 'student_publication_to_take_in_gradebook', 'course_images_in_courses_list', 'redirect_admin_to_courses_list', 'hide_logout_button', 'allow_session_course_copy_for_teachers', 'lp_show_reduced_report', 'auto_detect_language_custom_pages', 'catalog_show_courses_sessions', 'course_catalog_hide_private', 'show_official_code_exercise_result_list', 'allow_lp_return_link', 'hide_scorm_export_link', 'hide_scorm_copy_link', 'hide_scorm_pdf_link', 'session_days_before_coach_access', 'session_days_after_coach_access', 'pdf_logo_header', 'order_user_list_by_official_code', 'email_alert_manager_on_new_quiz')"); |
|
|
|
|
$this->addSql("DELETE FROM settings_current WHERE variable IN ('session_course_ordering', 'sso_force_redirect', 'dropbox_hide_course_coach', 'hide_certificate_export_link', 'hide_certificate_export_link_students', 'show_session_description', 'limit_session_admin_role', 'gravatar_type', 'gravatar_enabled', 'allow_delete_attendance', 'registration.soap.php.decode_utf8', 'catalog_allow_session_auto_subscription', 'hide_course_group_if_no_tools_available', 'cookie_warning', 'openbadges_backpack', 'add_gradebook_certificates_cron_task_enabled', 'document_if_file_exists_option', 'exercise_max_ckeditors_in_page', 'certificate_filter_by_official_code', 'student_publication_to_take_in_gradebook', 'course_images_in_courses_list', 'redirect_admin_to_courses_list', 'hide_logout_button', 'allow_session_course_copy_for_teachers', 'lp_show_reduced_report', 'auto_detect_language_custom_pages', 'catalog_show_courses_sessions', 'course_catalog_hide_private', 'show_official_code_exercise_result_list', 'allow_lp_return_link', 'hide_scorm_export_link', 'hide_scorm_copy_link', 'hide_scorm_pdf_link', 'session_days_before_coach_access', 'session_days_after_coach_access', 'pdf_logo_header', 'order_user_list_by_official_code', 'email_alert_manager_on_new_quiz')"); |
|
|
|
|
|
|
|
|
|
$this->addSql('ALTER TABLE user DROP COLUMN last_login'); |
|
|
|
|
$this->addSql(" |
|
|
|
|