1 | <?php |
||
16 | class AuditLogPlugin extends BasePlugin |
||
17 | { |
||
18 | /** |
||
19 | * Return the plugin name. |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | public function getName() |
||
27 | |||
28 | /** |
||
29 | * Return the plugin version. |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getVersion() |
||
37 | |||
38 | /** |
||
39 | * Return the developer name. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getDeveloper() |
||
47 | |||
48 | /** |
||
49 | * Return the developer URL. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getDeveloperUrl() |
||
57 | |||
58 | /** |
||
59 | * Tell Craft we have a Control Panel section. |
||
60 | * |
||
61 | * @return bool |
||
62 | */ |
||
63 | public function hasCpSection() |
||
67 | |||
68 | /** |
||
69 | * Register routes for Control Panel. |
||
70 | * |
||
71 | * @return array |
||
72 | */ |
||
73 | public function registerCpRoutes() |
||
79 | |||
80 | /** |
||
81 | * Let the user decide what to log. |
||
82 | * |
||
83 | * @return array |
||
84 | */ |
||
85 | protected function defineSettings() |
||
95 | |||
96 | /** |
||
97 | * Render the settings template. |
||
98 | * |
||
99 | * @return string |
||
100 | */ |
||
101 | public function getSettingsHtml() |
||
107 | |||
108 | /** |
||
109 | * Log all specific element types that have the right events. |
||
110 | */ |
||
111 | public function init() |
||
131 | } |
||
132 |