Version: current

     1 <?php
     2 // Áŕçîâűé ęëŕńń çŕęŕçŕ óńëóă
     3 class ServiceOrder extends DataObject {
     4     static $db = array(
     5         'Count' => 'Int',
     6         'ServiceTitle' => 'Varchar(200)',
     7         'ServicePrice' => 'Decimal(10, 2)',
     8     );
     9
    10     static $default_sort = "ID";
    11
    12     function canView($member = null) {
    13         return Permission::check('CMS_ACCESS_BookingOrderAdmin', 'any', $member);
    14     }
    15
    16     function canEdit($member = null) {
    17         return Permission::check('CMS_ACCESS_BookingOrderAdmin', 'any', $member);
    18     }
    19
    20     function canDelete($member = null) {
    21         return Permission::check('CMS_ACCESS_BookingOrderAdmin', 'any', $member);
    22     }
    23
    24     function canCreate($member = null) {
    25         return Permission::check('CMS_ACCESS_BookingOrderAdmin', 'any', $member);
    26     }
    27 }

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