Adding gradebook grading DB options see BT#3004

skala
Julio Montoya 13 years ago
parent 788ed158f7
commit 9588f5ed71
  1. 2
      main/admin/settings.php
  2. 9
      main/install/db_main.sql

@ -79,7 +79,7 @@ if (isset($_POST['new_model']) && isset($_POST['number_evaluations']) && !empty(
$array_to_save['variable'] = 'grading_model'; $array_to_save['variable'] = 'grading_model';
$array_to_save['display_text'] = $_POST['new_model']; $array_to_save['display_text'] = $_POST['new_model'];
$array_to_save['value'] = $string_to_save; $array_to_save['value'] = $string_to_save;
var_dump($array_to_save);
$result = api_set_setting_option($array_to_save); $result = api_set_setting_option($array_to_save);
} }

@ -852,6 +852,8 @@ VALUES
('scorm_cumulative_session_time', NULL, 'radio', 'Course', 'true', 'ScormCumulativeSessionTimeTitle', 'ScormCumulativeSessionTimeComment', NULL, NULL, 0), ('scorm_cumulative_session_time', NULL, 'radio', 'Course', 'true', 'ScormCumulativeSessionTimeTitle', 'ScormCumulativeSessionTimeComment', NULL, NULL, 0),
('allow_hr_skills_management', NULL, 'radio', 'Gradebook', 'true', 'AllowHRSkillsManagementTitle', 'AllowHRSkillsManagementComment', NULL, NULL, 1), ('allow_hr_skills_management', NULL, 'radio', 'Gradebook', 'true', 'AllowHRSkillsManagementTitle', 'AllowHRSkillsManagementComment', NULL, NULL, 1),
('enable_help_link', NULL, 'radio', 'Platform', 'true', 'EnableHelpLinkTitle', 'EnableHelpLinkTitle', NULL, NULL, 0), ('enable_help_link', NULL, 'radio', 'Platform', 'true', 'EnableHelpLinkTitle', 'EnableHelpLinkTitle', NULL, NULL, 0),
('allow_teacher_change_gradebook_grading_model', NULL, 'radio', 'Gradebook', 'false', 'AllowTeacherChangeGradebookGradingModelTitle', 'AllowTeacherChangeGradebookGradingModelComment', NULL, NULL, 1),
('grading_model', 'grading_model', 'custom', 'Gradebook', 'false', 'GradingModelTitle', 'GradingModelComment', NULL, NULL, 1),
('chamilo_database_version',NULL,'textfield',NULL, '1.9.0.15858','DokeosDatabaseVersion','', NULL, NULL, 0); ('chamilo_database_version',NULL,'textfield',NULL, '1.9.0.15858','DokeosDatabaseVersion','', NULL, NULL, 0);
/* /*
@ -1152,7 +1154,12 @@ VALUES
('allow_hr_skills_management', 'true', 'Yes'), ('allow_hr_skills_management', 'true', 'Yes'),
('allow_hr_skills_management', 'false', 'No'), ('allow_hr_skills_management', 'false', 'No'),
('enable_help_link', 'true', 'Yes'), ('enable_help_link', 'true', 'Yes'),
('enable_help_link', 'false', 'No'); ('enable_help_link', 'false', 'No'),
('allow_teacher_change_gradebook_grading_model', 'true', 'Yes'),
('allow_teacher_change_gradebook_grading_model', 'false', 'No'),
('grading_model', '1*X+2*X+3*X/4', 'Model 1'),
('grading_model', '1*X+1*X+1*X/3', 'Model 2'),
('grading_model', '1*X+1*X+1*X+1*X/4', 'Model 3');
/* /*
('use_custom_pages','true','Yes'), ('use_custom_pages','true','Yes'),

Loading…
Cancel
Save