當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Schema\SettingsBuilderInterface類代碼示例

本文整理匯總了PHP中Sylius\Bundle\SettingsBundle\Schema\SettingsBuilderInterface的典型用法代碼示例。如果您正苦於以下問題:PHP SettingsBuilderInterface類的具體用法?PHP SettingsBuilderInterface怎麽用?PHP SettingsBuilderInterface使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了SettingsBuilderInterface類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: function

 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);
 }
開發者ID:loic425,項目名稱:Sylius,代碼行數:9,代碼來源:CallbackSchemaSpec.php

示例2: buildSettings

 /**
  * {@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));
 }
開發者ID:aleherse,項目名稱:Sylius,代碼行數:7,代碼來源:TaxationSettingsSchema.php

示例3: buildSettings

 /**
  * {@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')));
 }
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:7,代碼來源:AgendaSettingsSchema.php

示例4: buildSettings

 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('allow_delete_attendance' => 'false'))->setAllowedTypes(array());
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:7,代碼來源:AttendanceSettingsSchema.php

示例5: buildSettings

 /**
  * {@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')));
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:7,代碼來源:MessageSettingsSchema.php

示例6: buildSettings

 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('allow_group_categories' => ''))->setAllowedTypes(array('allow_group_categories' => array('string')));
 }
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:7,代碼來源:GroupSettingsSchema.php

示例7: buildSettings

 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(array('show_chat_folder' => '', 'allow_global_chat' => ''))->setAllowedTypes(array('show_chat_folder' => array('string')));
 }
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:7,代碼來源:ChatSettingsSchema.php

示例8: buildSettings

 /**
  * {@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')));
 }
開發者ID:Avazanga1,項目名稱:Sylius,代碼行數:7,代碼來源:GeneralSettingsSchema.php

示例9: buildSettings

 /**
  * {@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')));
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:7,代碼來源:SessionSettingsSchema.php

示例10: buildSettings

 /**
  * {@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')));
 }
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:7,代碼來源:SecuritySettingsSchema.php

示例11: buildSettings

 /**
  * {@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')));
 }
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:7,代碼來源:GradebookSettingsSchema.php

示例12: buildSettings

 /**
  * {@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')));
 }
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:7,代碼來源:SocialSettingsSchema.php

示例13: buildSettings

 /**
  * {@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')));
 }
開發者ID:omaoibrahim,項目名稱:chamilo-lms,代碼行數:7,代碼來源:GradebookSettingsSchema.php

示例14: buildSettings

 /**
  * {@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());
 }
開發者ID:ragebat,項目名稱:chamilo-lms,代碼行數:7,代碼來源:EditorSettingsSchema.php

示例15: buildSettings

 /**
  * {@inheritdoc}
  */
 public function buildSettings(SettingsBuilderInterface $builder)
 {
     $builder->setDefaults(['enabled' => false])->setAllowedTypes(['enabled' => ['bool']]);
 }
開發者ID:okwinza,項目名稱:Sylius,代碼行數:7,代碼來源:SecuritySettingsSchema.php


注:本文中的Sylius\Bundle\SettingsBundle\Schema\SettingsBuilderInterface類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。