| 1 | <?php |
||
| 3 | class DNAdmin extends ModelAdmin { |
||
| 4 | |||
| 5 | /** |
||
| 6 | * @var string |
||
| 7 | */ |
||
| 8 | public static $menu_title = "Deploynaut Projects"; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var string |
||
| 12 | */ |
||
| 13 | public static $url_segment = "naut"; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array |
||
| 17 | */ |
||
| 18 | public static $managed_models = [ |
||
| 19 | 'DNProject' => ['title' => 'Projects'], |
||
| 20 | 'DNDataTransfer' => ['title' => 'Transfers'], |
||
| 21 | 'DNDataArchive' => ['title' => 'Archives'], |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private static $menu_priority = 100; |
||
| 28 | |||
| 29 | public function getEditForm($id = null, $fields = null) { |
||
| 43 | |||
| 44 | } |
||
| 45 |
This check marks property names that have not been written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection string becomes
databaseConnectionString.