Version: current

     1 <?php
     2 /*
     3  * Временной период тарификации
     4  * начинается с указанной даты, заканчивается при начале следующего периода
     5  *
     6  * @author dvp
     7  */
     8 class RatePeriod extends DataObject {
     9     static $db = array(
    10         'Date' => 'Date',
    11     );
    12
    13     static $casting = array(
    14         'Price' => 'Decimal',
    15     );
    16
    17     static $default_sort = 'Date';
    18     static $searchable_fields = array('Date');
    19     static $summary_fields = array('Date');
    20
    21     function getTitle() {
    22         return _t('RatePeriod.FROM') . $this->Date;
    23     }
    24 }
    25

[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. -