Version: current

     1 <?php
     2
     3 class BaseObjectCategory extends Page {
     4
     5     static $agentCategory = array(
     6         'agency' => 'Агентство',
     7         'owner' => 'Владелец',
     8         'developer' => 'Застройщик',
     9     );
    10
    11     static function getAgentCategory($empty = true) {
    12         if ($empty)
    13             return array_merge(array('unspecified' => 'Не выбрано'), self::$agentCategory);
    14         return self::$agentCategory;
    15     }
    16
    17 }

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