|
| 1 | +<?php namespace October\Test; |
| 2 | + |
| 3 | +use Backend; |
| 4 | +use System\Classes\PluginBase; |
| 5 | + |
| 6 | +/** |
| 7 | + * Test Plugin Information File |
| 8 | + */ |
| 9 | +class Plugin extends PluginBase |
| 10 | +{ |
| 11 | + /** |
| 12 | + * Returns information about this plugin. |
| 13 | + * |
| 14 | + * @return array |
| 15 | + */ |
| 16 | + public function pluginDetails() |
| 17 | + { |
| 18 | + return [ |
| 19 | + 'name' => 'October Tester', |
| 20 | + 'description' => 'Used for testing the Relation Controller behavior and others.', |
| 21 | + 'author' => 'Alexey Bobkov, Samuel Georges', |
| 22 | + 'icon' => 'icon-child', |
| 23 | + 'homepage' => 'https://github.com/daftspunk/oc-test-plugin' |
| 24 | + ]; |
| 25 | + } |
| 26 | + |
| 27 | + public $require = ['Renatio.SeoManager']; |
| 28 | + |
| 29 | + public function registerNavigation() |
| 30 | + { |
| 31 | + return [ |
| 32 | + 'test' => [ |
| 33 | + 'label' => 'Playground', |
| 34 | + 'url' => Backend::url('october/test/people'), |
| 35 | + 'icon' => 'icon-child', |
| 36 | + 'order' => 200, |
| 37 | + |
| 38 | + 'sideMenu' => [ |
| 39 | + 'people' => [ |
| 40 | + 'label' => 'People', |
| 41 | + 'icon' => 'icon-database', |
| 42 | + 'url' => Backend::url('october/test/people'), |
| 43 | + ], |
| 44 | + 'posts' => [ |
| 45 | + 'label' => 'Posts', |
| 46 | + 'icon' => 'icon-database', |
| 47 | + 'url' => Backend::url('october/test/posts'), |
| 48 | + ], |
| 49 | + 'users' => [ |
| 50 | + 'label' => 'Users', |
| 51 | + 'icon' => 'icon-database', |
| 52 | + 'url' => Backend::url('october/test/users'), |
| 53 | + ], |
| 54 | + 'countries' => [ |
| 55 | + 'label' => 'Countries', |
| 56 | + 'icon' => 'icon-database', |
| 57 | + 'url' => Backend::url('october/test/countries'), |
| 58 | + ], |
| 59 | + 'reviews' => [ |
| 60 | + 'label' => 'Reviews', |
| 61 | + 'icon' => 'icon-database', |
| 62 | + 'url' => Backend::url('october/test/reviews'), |
| 63 | + ], |
| 64 | + 'galleries' => [ |
| 65 | + 'label' => 'Galleries', |
| 66 | + 'icon' => 'icon-database', |
| 67 | + 'url' => Backend::url('october/test/galleries'), |
| 68 | + ], |
| 69 | + 'trees' => [ |
| 70 | + 'label' => 'Trees', |
| 71 | + 'icon' => 'icon-database', |
| 72 | + 'url' => Backend::url('october/test/trees'), |
| 73 | + ], |
| 74 | + ] |
| 75 | + ] |
| 76 | + ]; |
| 77 | + } |
| 78 | + |
| 79 | + public function registerFormWidgets() |
| 80 | + { |
| 81 | + return [ |
| 82 | + 'October\Test\FormWidgets\TimeChecker' => [ |
| 83 | + 'code' => 'timecheckertest' |
| 84 | + ] |
| 85 | + ]; |
| 86 | + } |
| 87 | +} |
0 commit comments