Version: current

     1 <?php
     2 /**
     3  * Настройки для каталога
     4  *
     5  * @package Booking
     6  * @author menedem
     7  */
     8 class BookingSiteConfig extends SiteConfigDecorator {
     9
    10     function extraStatics() {
    11         return array(
    12             'db' => array(
    13                 'RequireAllPersonsFIO' => 'Boolean', // Требовать заполнять ФИО для всех гостей
    14             )
    15         );
    16     }
    17
    18     public function updateCMSFields(FieldSet &$fields) {
    19         $tab = self::get_config_tab($fields, 'Booking');
    20         $tab->push(new CheckboxField('RequireAllPersonsFIO', $this->owner->FieldLabel('RequireAllPersonsFIO')));
    21     }
    22 }
    23

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -