本文整理汇总了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);
}
示例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));
}
示例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')));
}
示例4: buildSettings
/**
* {@inheritdoc}
*/
public function buildSettings(SettingsBuilderInterface $builder)
{
$builder->setDefaults(array('allow_delete_attendance' => 'false'))->setAllowedTypes(array());
}
示例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')));
}
示例6: buildSettings
/**
* {@inheritdoc}
*/
public function buildSettings(SettingsBuilderInterface $builder)
{
$builder->setDefaults(array('allow_group_categories' => ''))->setAllowedTypes(array('allow_group_categories' => array('string')));
}
示例7: buildSettings
/**
* {@inheritdoc}
*/
public function buildSettings(SettingsBuilderInterface $builder)
{
$builder->setDefaults(array('show_chat_folder' => '', 'allow_global_chat' => ''))->setAllowedTypes(array('show_chat_folder' => array('string')));
}
示例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')));
}
示例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')));
}
示例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')));
}
示例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')));
}
示例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')));
}
示例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')));
}
示例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());
}
示例15: buildSettings
/**
* {@inheritdoc}
*/
public function buildSettings(SettingsBuilderInterface $builder)
{
$builder->setDefaults(['enabled' => false])->setAllowedTypes(['enabled' => ['bool']]);
}