/** * Speeds up SettingsCurrent creation * @param string $variable The variable itself * @param string $subKey The subkey * @param string $type The type of setting (text, radio, select, etc) * @param string $category The category (Platform, User, etc) * @param string $selectedValue The default value * @param string $title The setting title string name * @param string $comment The setting comment string name * @param string $scope The scope * @param string $subKeyText Text if there is a subKey * @param int $accessUrl What URL it is for * @param bool $accessUrlChangeable Whether it can be changed on each url * @param bool $accessUrlLocked Whether the setting for the current URL is * locked to the current value * @param array $options Optional array in case of a radio-type field, * to insert options */ public function addSettingCurrent($variable, $subKey, $type, $category, $selectedValue, $title, $comment, $scope = '', $subKeyText = '', $accessUrl = 1, $accessUrlChangeable = false, $accessUrlLocked = true, $options = array()) { $setting = new SettingsCurrent(); $setting->setVariable($variable)->setSubkey($subKey)->setType($type)->setCategory($category)->setSelectedValue($selectedValue)->setTitle($title)->setComment($comment)->setScope($scope)->setSubkeytext($subKeyText)->setAccessUrl($accessUrl)->setAccessUrlChangeable($accessUrlChangeable)->setAccessUrlLocked($accessUrlLocked); $this->getEntityManager()->persist($setting); if (count($options) > 0) { foreach ($options as $option) { if (empty($option['text'])) { if ($option['value'] == 'true') { $option['text'] = 'Yes'; } else { $option['text'] = 'No'; } } $settingOption = new SettingsOptions(); $settingOption->setVariable($variable)->setValue($option['value'])->setDisplayText($option['text']); $this->getEntityManager()->persist($settingOption); } } $this->getEntityManager()->flush(); }
/** * @param ObjectManager $manager */ public function createOptions(ObjectManager $manager) { $option = new SettingsOptions(); $option->setVariable('show_administrator_data'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_administrator_data'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_tutor_data'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_tutor_data'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_teacher_data'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_teacher_data'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('homepage_view'); $option->setValue('activity'); $option->setDisplayText('HomepageViewActivity'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('homepage_view'); $option->setValue('2column'); $option->setDisplayText('HomepageView2column'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('homepage_view'); $option->setValue('3column'); $option->setDisplayText('HomepageView3column'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('homepage_view'); $option->setValue('vertical_activity'); $option->setDisplayText('HomepageViewVerticalActivity'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('homepage_view'); $option->setValue('activity_big'); $option->setDisplayText('HomepageViewActivityBig'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_toolshortcuts'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_toolshortcuts'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_group_categories'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_group_categories'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_name_change'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_name_change'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_officialcode_change'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_officialcode_change'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_registration'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_registration'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_registration'); $option->setValue('approval'); $option->setDisplayText('AfterApproval'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_registration_as_teacher'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_registration_as_teacher'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_lostpassword'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_lostpassword'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_user_headings'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_user_headings'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_personal_agenda'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_personal_agenda'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_coursecode_in_courselist'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_coursecode_in_courselist'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_teacher_in_courselist'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_teacher_in_courselist'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('permanently_remove_deleted_files'); $option->setValue('true'); $option->setDisplayText('YesWillDeletePermanently'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('permanently_remove_deleted_files'); $option->setValue('false'); $option->setDisplayText('NoWillDeletePermanently'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_overwrite'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_overwrite'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_just_upload'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_just_upload'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_student_to_student'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_student_to_student'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_group'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_group'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_mailing'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('dropbox_allow_mailing'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('extended_profile'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('extended_profile'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('student_view_enabled'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('student_view_enabled'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_navigation_menu'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_navigation_menu'); $option->setValue('icons'); $option->setDisplayText('IconsOnly'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_navigation_menu'); $option->setValue('text'); $option->setDisplayText('TextOnly'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_navigation_menu'); $option->setValue('iconstext'); $option->setDisplayText('IconsText'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_tool_introduction'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_tool_introduction'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('page_after_login'); $option->setValue('index.php'); $option->setDisplayText('CampusHomepage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('page_after_login'); $option->setValue('user_portal.php'); $option->setDisplayText('MyCourses'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('page_after_login'); $option->setValue('main/auth/courses.php'); $option->setDisplayText('CourseCatalog'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('breadcrumbs_course_homepage'); $option->setValue('get_lang'); $option->setDisplayText('CourseHomepage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('breadcrumbs_course_homepage'); $option->setValue('course_code'); $option->setDisplayText('CourseCode'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('breadcrumbs_course_homepage'); $option->setValue('course_title'); $option->setDisplayText('CourseTitle'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('example_material_course_creation'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('example_material_course_creation'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('use_session_mode'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('use_session_mode'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_email_editor'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_email_editor'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_email_addresses'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_email_addresses'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('wcag_anysurfer_public_pages'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('wcag_anysurfer_public_pages'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('upload_extensions_list_type'); $option->setValue('blacklist'); $option->setDisplayText('Blacklist'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('upload_extensions_list_type'); $option->setValue('whitelist'); $option->setDisplayText('Whitelist'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('upload_extensions_skip'); $option->setValue('true'); $option->setDisplayText('Remove'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('upload_extensions_skip'); $option->setValue('false'); $option->setDisplayText('Rename'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_number_of_courses'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_number_of_courses'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_empty_course_categories'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_empty_course_categories'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_back_link_on_top_of_tree'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_back_link_on_top_of_tree'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_different_course_language'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_different_course_language'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('split_users_upload_directory'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('split_users_upload_directory'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('hide_dltt_markup'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('hide_dltt_markup'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_categories_on_homepage'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_categories_on_homepage'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('default_forum_view'); $option->setValue('flat'); $option->setDisplayText('Flat'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('default_forum_view'); $option->setValue('threaded'); $option->setDisplayText('Threaded'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('default_forum_view'); $option->setValue('nested'); $option->setDisplayText('Nested'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('survey_email_sender_noreply'); $option->setValue('coach'); $option->setDisplayText('CourseCoachEmailSender'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('survey_email_sender_noreply'); $option->setValue('noreply'); $option->setDisplayText('NoReplyEmailSender'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('openid_authentication'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('openid_authentication'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('gradebook_enable'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('gradebook_enable'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('user_selected_theme'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('user_selected_theme'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_course_theme'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_course_theme'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_mini_month_calendar'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_mini_month_calendar'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_upcoming_events'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('display_upcoming_events'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_closed_courses'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_closed_courses'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('ldap_version'); $option->setValue('2'); $option->setDisplayText('LDAPVersion2'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('ldap_version'); $option->setValue('3'); $option->setDisplayText('LDAPVersion3'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('visio_use_rtmpt'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('visio_use_rtmpt'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('add_users_by_coach'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('add_users_by_coach'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('extend_rights_for_coach'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('extend_rights_for_coach'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('extend_rights_for_coach_on_survey'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('extend_rights_for_coach_on_survey'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_session_coach'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_session_coach'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_users_to_create_courses'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_users_to_create_courses'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('breadcrumbs_course_homepage'); $option->setValue('session_name_and_course_title'); $option->setDisplayText('SessionNameAndCourseTitle'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('advanced_filemanager'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('advanced_filemanager'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_reservation'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_reservation'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_message_tool'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_message_tool'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_social_tool'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_social_tool'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_students_to_browse_courses'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_students_to_browse_courses'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_email_of_teacher_or_tutor '); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_email_of_teacher_or_tutor '); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_session_data '); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_session_data '); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_use_sub_language'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_use_sub_language'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_glossary_in_documents'); $option->setValue('none'); $option->setDisplayText('ShowGlossaryInDocumentsIsNone'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_glossary_in_documents'); $option->setValue('ismanual'); $option->setDisplayText('ShowGlossaryInDocumentsIsManual'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_glossary_in_documents'); $option->setValue('isautomatic'); $option->setDisplayText('ShowGlossaryInDocumentsIsAutomatic'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_terms_conditions'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_terms_conditions'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('search_enabled'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('search_enabled'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('search_show_unlinked_results'); $option->setValue('true'); $option->setDisplayText('SearchShowUnlinkedResults'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('search_show_unlinked_results'); $option->setValue('false'); $option->setDisplayText('SearchHideUnlinkedResults'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_courses_descriptions_in_catalog'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_courses_descriptions_in_catalog'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_coach_to_edit_course_session'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_coach_to_edit_course_session'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); /*$option = new SettingsOptions(); $option->setVariable('show_glossary_in_extra_tools'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option);*/ /*$option = new SettingsOptions(); $option->setVariable('show_glossary_in_extra_tools'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option);*/ $option = new SettingsOptions(); $option->setVariable('send_email_to_admin_when_create_course'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('send_email_to_admin_when_create_course'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('go_to_course_after_login'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('go_to_course_after_login'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('math_mimetex'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('math_mimetex'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('math_asciimathML'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('math_asciimathML'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_asciisvg'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_asciisvg'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('include_asciimathml_script'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('include_asciimathml_script'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('youtube_for_students'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('youtube_for_students'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('block_copy_paste_for_students'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('block_copy_paste_for_students'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('more_buttons_maximized_mode'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('more_buttons_maximized_mode'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('students_download_folders'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('students_download_folders'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('users_copy_files'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('users_copy_files'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_students_to_create_groups_in_social'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_students_to_create_groups_in_social'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_send_message_to_all_platform_users'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_send_message_to_all_platform_users'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('use_users_timezone'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('use_users_timezone'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_user_course_subscription_by_course_admin'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_user_course_subscription_by_course_admin'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_link_bug_notification'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_link_bug_notification'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('course_validation'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('course_validation'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('sso_authentication'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('sso_authentication'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('sso_authentication_protocol'); $option->setValue('http://'); $option->setDisplayText('http://'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('sso_authentication_protocol'); $option->setValue('https://'); $option->setDisplayText('https://'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_wiris'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_wiris'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_spellcheck'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_spellcheck'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('force_wiki_paste_as_plain_text'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('force_wiki_paste_as_plain_text'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_googlemaps'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_googlemaps'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_imgmap'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_imgmap'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_support_svg'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_support_svg'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('pdf_export_watermark_enable'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('pdf_export_watermark_enable'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('pdf_export_watermark_by_course'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('pdf_export_watermark_by_course'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_insertHtml'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_insertHtml'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('students_export2pdf'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('students_export2pdf'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_users_folders'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_users_folders'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_default_folders'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_default_folders'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_chat_folder'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_chat_folder'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_text2audio'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_text2audio'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_support_pixlr'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enabled_support_pixlr'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_groups_to_users'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_groups_to_users'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('accessibility_font_resize'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('accessibility_font_resize'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('hide_courses_in_sessions'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('hide_courses_in_sessions'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_quiz_scenario'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_quiz_scenario'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_nanogong'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_nanogong'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_documents_preview'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_documents_preview'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('htmlpurifier_wiki'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('htmlpurifier_wiki'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('cas_activate'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('cas_activate'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('cas_protocol'); $option->setValue('CAS1'); $option->setDisplayText('CAS1Text'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('cas_protocol'); $option->setValue('CAS2'); $option->setDisplayText('CAS2Text'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('cas_protocol'); $option->setValue('SAML'); $option->setDisplayText('SAMLText'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('cas_add_user_activate'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('cas_add_user_activate'); $option->setValue('platform'); $option->setDisplayText('casAddUserActivatePlatform'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('cas_add_user_activate'); $option->setValue('extldap'); $option->setDisplayText('casAddUserActivateLDAP'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('update_user_info_cas_with_ldap'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('update_user_info_cas_with_ldap'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('scorm_cumulative_session_time'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('scorm_cumulative_session_time'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_hr_skills_management'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_hr_skills_management'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_help_link'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_help_link'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_users_to_change_email_with_no_password'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_users_to_change_email_with_no_password'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_admin_toolbar'); $option->setValue('do_not_show'); $option->setDisplayText('DoNotShow'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_admin_toolbar'); $option->setValue('show_to_admin'); $option->setDisplayText('ShowToAdminsOnly'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_admin_toolbar'); $option->setValue('show_to_admin_and_teachers'); $option->setDisplayText('ShowToAdminsAndTeachers'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_admin_toolbar'); $option->setValue('show_to_all'); $option->setDisplayText('ShowToAllUsers'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('use_custom_pages'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('use_custom_pages'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority1'); $option->setValue('platform_lang'); $option->setDisplayText('PlatformLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority1'); $option->setValue('user_profil_lang'); $option->setDisplayText('UserLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority1'); $option->setValue('user_selected_lang'); $option->setDisplayText('UserSelectedLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority1'); $option->setValue('course_lang'); $option->setDisplayText('CourseLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority2'); $option->setValue('platform_lang'); $option->setDisplayText('PlatformLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority2'); $option->setValue('user_profil_lang'); $option->setDisplayText('UserLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority2'); $option->setValue('user_selected_lang'); $option->setDisplayText('UserSelectedLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority2'); $option->setValue('course_lang'); $option->setDisplayText('CourseLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority3'); $option->setValue('platform_lang'); $option->setDisplayText('PlatformLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority3'); $option->setValue('user_profil_lang'); $option->setDisplayText('UserLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority3'); $option->setValue('user_selected_lang'); $option->setDisplayText('UserSelectedLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority3'); $option->setValue('course_lang'); $option->setDisplayText('CourseLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority4'); $option->setValue('platform_lang'); $option->setDisplayText('PlatformLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority4'); $option->setValue('user_profil_lang'); $option->setDisplayText('UserLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority4'); $option->setValue('user_selected_lang'); $option->setDisplayText('UserSelectedLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('languagePriority4'); $option->setValue('course_lang'); $option->setDisplayText('CourseLanguage'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_global_chat'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_global_chat'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('login_is_email'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('login_is_email'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('courses_default_creation_visibility'); $option->setValue('3'); $option->setDisplayText('OpenToTheWorld'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('courses_default_creation_visibility'); $option->setValue('2'); $option->setDisplayText('OpenToThePlatform'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('courses_default_creation_visibility'); $option->setValue('1'); $option->setDisplayText('Private'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('courses_default_creation_visibility'); $option->setValue('0'); $option->setDisplayText('CourseVisibilityClosed'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_browser_sniffer'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_browser_sniffer'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_wami_record'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_wami_record'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('teachers_can_change_score_settings'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('teachers_can_change_score_settings'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('gradebook_locking_enabled'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('gradebook_locking_enabled'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('gradebook_enable_grade_model'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('gradebook_enable_grade_model'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_session_admins_to_manage_all_sessions'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_session_admins_to_manage_all_sessions'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_skills_tool'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_skills_tool'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_public_certificates'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_public_certificates'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('platform_unsubscribe_allowed'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('platform_unsubscribe_allowed'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('activate_email_template'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('activate_email_template'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_iframe_inclusion'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_iframe_inclusion'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_hot_courses'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('show_hot_courses'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_webcam_clip'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('enable_webcam_clip'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('session_tutor_reports_visibility'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('session_tutor_reports_visibility'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('gradebook_show_percentage_in_reports'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('gradebook_show_percentage_in_reports'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('session_page_enabled'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('session_page_enabled'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_teachers_to_create_sessions'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_teachers_to_create_sessions'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('use_virtual_keyboard'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('use_virtual_keyboard'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('disable_copy_paste'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('disable_copy_paste'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('login_as_allowed'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('login_as_allowed'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('admins_can_set_users_pass'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('admins_can_set_users_pass'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('breadcrumb_navigation_display'); $option->setValue('true'); $option->setDisplayText('Show'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('breadcrumb_navigation_display'); $option->setValue('false'); $option->setDisplayText('Hide'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('default_calendar_view'); $option->setValue('month'); $option->setDisplayText('Month'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('default_calendar_view'); $option->setValue('basicWeek'); $option->setDisplayText('BasicWeek'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('default_calendar_view'); $option->setValue('agendaWeek'); $option->setDisplayText('Week'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('default_calendar_view'); $option->setValue('agendaDay'); $option->setDisplayText('Day'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('documents_default_visibility_defined_in_course'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('documents_default_visibility_defined_in_course'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_personal_user_files'); $option->setValue('true'); $option->setDisplayText('Yes'); $manager->persist($option); $option = new SettingsOptions(); $option->setVariable('allow_personal_user_files'); $option->setValue('false'); $option->setDisplayText('No'); $manager->persist($option); $manager->flush(); }