Example #1
0
 function it_uses_callback_to_build_settings(SettingsBuilderInterface $settingsBuilder)
 {
     $this->beConstructedWith(function (SettingsBuilderInterface $settingsBuilder) {
         $settingsBuilder->setDefaults(['foo' => 'bar']);
     }, function () {
     });
     $settingsBuilder->setDefaults(['foo' => 'bar'])->shouldBeCalled();
     $this->buildSettings($settingsBuilder);
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setOptional(array('default_tax_zone'))->setAllowedTypes(array('default_tax_zone' => array('null', 'Sylius\\Component\\Addressing\\Model\\ZoneInterface')))->setTransformer('default_tax_zone', new ObjectToIdentifierTransformer($this->zoneRepository));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('allow_personal_agenda' => '', 'display_mini_month_calendar' => '', 'display_upcoming_events' => '', 'number_of_upcoming_events' => '0', 'default_calendar_view' => ''))->setAllowedTypes(array('allow_personal_agenda' => array('string'), 'display_mini_month_calendar' => array('string'), 'display_upcoming_events' => array('string'), 'number_of_upcoming_events' => array('string'), 'default_calendar_view' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('allow_delete_attendance' => 'false'))->setAllowedTypes(array());
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('allow_message_tool' => 'true', 'allow_send_message_to_all_platform_users' => 'false', 'message_max_upload_filesize' => '20971520'))->setAllowedTypes(array('allow_message_tool' => array('string'), 'message_max_upload_filesize' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('allow_group_categories' => ''))->setAllowedTypes(array('allow_group_categories' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('show_chat_folder' => '', 'allow_global_chat' => ''))->setAllowedTypes(array('show_chat_folder' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array_merge(array('title' => 'Sylius - Modern ecommerce for Symfony2', 'meta_keywords' => 'symfony, sylius, ecommerce, webshop, shopping cart', 'meta_description' => 'Sylius is modern ecommerce solution for PHP. Based on the Symfony2 framework.', 'locale' => 'en', 'currency' => 'USD'), $this->defaults))->setAllowedTypes(array('title' => array('string'), 'meta_keywords' => array('string'), 'meta_description' => array('string'), 'locale' => array('string'), 'currency' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('add_users_by_coach' => 'false', 'extend_rights_for_coach' => 'false', 'show_session_coach' => 'false', 'show_session_data' => 'false', 'allow_coach_to_edit_course_session' => 'true', 'show_groups_to_users' => 'false', 'hide_courses_in_sessions' => 'false', 'allow_session_admins_to_manage_all_sessions' => 'false', 'session_tutor_reports_visibility' => 'false', 'session_page_enabled' => 'true', 'allow_teachers_to_create_sessions' => 'false', 'prevent_session_admins_to_manage_all_users' => 'false', 'session_course_ordering' => 'false', 'limit_session_admin_role' => 'false', 'allow_tutors_to_assign_students_to_session' => 'false', 'drh_can_access_all_session_content' => 'true', 'catalog_allow_session_auto_subscription' => 'false'))->setAllowedTypes(array('add_users_by_coach' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('filter_terms' => '', 'allow_browser_sniffer' => '', 'admins_can_set_users_pass' => ''))->setAllowedTypes(array('filter_terms' => array('string'), 'allow_browser_sniffer' => array('string'), 'admins_can_set_users_pass' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('gradebook_enable' => '', 'gradebook_score_display_coloring' => '', 'gradebook_score_display_custom' => '', 'gradebook_score_display_colorsplit' => '', 'gradebook_score_display_upperlimit' => '', 'gradebook_number_decimals' => '0', 'allow_hr_skills_management' => '', 'teachers_can_change_score_settings' => '', 'teachers_can_change_grade_model_settings' => '', 'gradebook_enable_grade_model' => '', 'gradebook_default_weight' => '100', 'gradebook_locking_enabled' => '', 'gradebook_default_grade_model_id' => '', 'gradebook_show_percentage_in_rep' => ''))->setAllowedTypes(array('gradebook_enable' => array('string'), 'gradebook_number_decimals' => array('string'), 'gradebook_default_weight' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('allow_social_tool' => '', 'allow_students_to_create_groups_in_social' => ''))->setAllowedTypes(array('allow_social_tool' => array('string'), 'allow_students_to_create_groups_in_social' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('gradebook_enable' => 'true', 'gradebook_score_display_custom' => 'false', 'gradebook_score_display_colorsplit' => '50', 'gradebook_score_display_upperlimit' => 'false', 'gradebook_number_decimals' => '0', 'teachers_can_change_score_settings' => 'true', 'teachers_can_change_grade_model_settings' => 'true', 'gradebook_enable_grade_model' => 'false', 'gradebook_default_weight' => '100', 'gradebook_locking_enabled' => 'false', 'gradebook_default_grade_model_id' => '', 'gradebook_show_percentage_in_reports' => '', 'my_display_coloring' => 'false', 'student_publication_to_take_in_gradebook' => 'first', 'gradebook_detailed_admin_view' => 'false', 'openbadges_backpack' => 'https://backpack.openbadges.org/'))->setAllowedTypes(array('gradebook_enable' => array('string'), 'gradebook_number_decimals' => array('string'), 'gradebook_default_weight' => array('string'), 'student_publication_to_take_in_gradebook' => array('string'), 'gradebook_detailed_admin_view' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('allow_email_editor' => '', 'math_mimetex' => '', 'math_asciimathML' => '', 'enabled_asciisvg' => '', 'include_asciimathml_script' => '', 'youtube_for_students' => '', 'block_copy_paste_for_students' => '', 'more_buttons_maximized_mode' => '', 'enabled_wiris' => '', 'allow_spellcheck' => '', 'force_wiki_paste_as_plain_text' => '', 'enabled_googlemaps' => '', 'enabled_imgmap' => '', 'enabled_support_svg' => '', 'enabled_insertHtml' => '', 'enabled_support_pixlr' => '', 'htmlpurifier_wiki' => '', 'enable_iframe_inclusion' => ''))->setAllowedTypes(array());
 }
Example #15
0
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(['enabled' => false])->setAllowedTypes(['enabled' => ['bool']]);
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('noreply_email_address' => '*****@*****.**', 'activate_email_template' => 'false'))->setAllowedTypes(array());
 }
Example #17
0
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(['facebook' => null, 'twitter' => null, 'youtube' => null, 'google_plus' => null, 'linkedin' => null, 'pinterest' => null, 'instagram' => null]);
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('survey_email_sender_noreply' => 'coach', 'extend_rights_for_coach_on_survey' => 'true'))->setAllowedTypes(array());
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('institution' => 'Chamilo.org', 'institution_url' => 'http://www.chamilo.org', 'site_name' => 'Chamilo site', 'timezone' => 'Europe/Paris', 'theme' => 'chamilo', 'gravatar_enabled' => 'false', 'gravatar_type' => 'mm', 'gamification_mode' => ' ', 'order_user_list_by_official_code' => 'false', 'cookie_warning' => 'false', 'donotlistcampus' => 'false', 'catalog_show_courses_sessions' => '0', 'course_catalog_hide_private' => 'false'))->setAllowedTypes(array('institution' => array('string'), 'institution_url' => array('string'), 'site_name' => array('string'), 'timezone' => array('string'), 'gravatar_enabled' => array('string'), 'gravatar_type' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('dropbox_allow_overwrite' => 'true', 'dropbox_max_filesize' => '100000000', 'dropbox_allow_just_upload' => 'true', 'dropbox_allow_student_to_student' => 'true', 'dropbox_allow_group' => 'true', 'dropbox_allow_mailing' => 'false'))->setAllowedTypes(array('dropbox_allow_overwrite' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('exercise_min_score' => '0', 'exercise_max_score' => '0', 'enable_quiz_scenario' => ''))->setAllowedTypes(array('exercise_min_score' => array('string'), 'exercise_max_score' => array('string'), 'enable_quiz_scenario' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('administrator_email' => '', 'administrator_name' => '', 'administrator_surname' => '', 'administrator_phone' => '', 'redirect_admin_to_courses_list' => 'false'))->setAllowedTypes(array('administrator_email' => array('string'), 'administrator_name' => array('string'), 'administrator_surname' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('decode_utf8' => 'false', 'messaging_allow_send_push_notification' => 'false', 'messaging_gdc_project_number' => '', 'messaging_gdc_api_key' => ''))->setAllowedTypes(array('messaging_gdc_project_number' => ['string'], 'messaging_gdc_api_key' => ['string']));
 }
Example #24
0
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(['default_tax_zone' => null])->setAllowedTypes('default_tax_zone', ['null', ZoneInterface::class])->setDefault('default_tax_calculation_strategy', 'order_items_based')->setAllowedTypes('default_tax_calculation_strategy', 'string')->setTransformer('default_tax_zone', new ResourceToIdentifierTransformer($this->zoneRepository));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('enabled' => ''))->setAllowedTypes(array('enabled' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('enable_help_link' => 'true', 'show_administrator_data' => 'true', 'show_tutor_data' => 'true', 'show_teacher_data' => 'true', 'showonline' => 'world', 'allow_user_headings' => 'false', 'time_limit_whosonline' => '30', 'show_email_addresses' => 'false', 'show_number_of_courses' => 'false', 'show_empty_course_categories' => 'true', 'show_back_link_on_top_of_tree' => 'false', 'show_different_course_language' => 'true', 'display_categories_on_homepage' => 'false', 'show_closed_courses' => 'false', 'allow_students_to_browse_courses' => 'true', 'show_link_bug_notification' => 'true', 'accessibility_font_resize' => 'false', 'show_admin_toolbar' => 'show_to_admin', 'show_hot_courses' => 'true', 'user_name_order' => '', 'user_name_sort_by' => '', 'use_virtual_keyboard' => '', 'disable_copy_paste' => '', 'breadcrumb_navigation_display' => '', 'bug_report_link' => ''))->setAllowedTypes(array('time_limit_whosonline' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('header_extra_content' => '', 'footer_extra_content' => ''))->setAllowedTypes(array('header_extra_content' => array('string'), 'footer_extra_content' => array('string')));
 }
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('administrator_email' => '', 'administrator_name' => '', 'administrator_surname' => '', 'administrator_phone' => ''))->setAllowedTypes(array('administrator_email' => array('string'), 'administrator_name' => array('string'), 'administrator_surname' => array('string'), 'administrator_phone' => array('string')));
 }
Example #29
0
 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefined('default_tax_zone')->setAllowedTypes('default_tax_zone', ['null', ZoneInterface::class])->setTransformer('default_tax_zone', new ObjectToIdentifierTransformer($this->zoneRepository));
 }
Example #30
0
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(['head_extra' => null, 'business_type' => 'LocalBusiness']);
 }