Version: current

     1 <?php
     2
     3 /**
     4  * Управление документами
     5  *
     6  * @author inxo
     7  */
     8 class NewDocumentsAdmin extends ModelAdmin {
     9
    10     static $url_segment = 'docs';
    11     static $url_rule = '/$Action';
    12     public static $allowed_actions = array(
    13         'add',
    14         'edit',
    15         'delete',
    16         'handleList',
    17         'handleItem',
    18     );
    19     public static $managed_models = array(
    20         'DocumentItem',
    21         'DocumentType',
    22         'DocumentHaving',
    23         'DocumentDirection'
    24     );
    25     static $menu_title = 'Доки';
    26
    27     function init() {
    28         //Requirements::javascript('documents/javascript/NewDocumentsAdmin.js');
    29         parent::init();
    30     }
    31
    32 }
    33
    34 ?>
    35

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