-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathelgg-plugin.php
102 lines (100 loc) · 2.62 KB
/
elgg-plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
require_once(dirname(__FILE__) . '/lib/functions.php');
return [
'plugin' => [
'version' => '12.1.3',
],
'entities' => [
[
'type' => 'object',
'subtype' => 'csv_export',
'class' => \CSVExport::class,
'capabilities' => [
'commentable' => false,
],
],
],
'settings' => [
'separator' => ';',
],
'actions' => [
'csv_exporter/admin/restart' => [
'access' => 'admin',
],
'csv_exporter/edit' => [
'access' => 'admin',
],
'csv_exporter/group' => [],
],
'routes' => [
'collection:object:csv_export:group' => [
'path' => '/csv_exporter/group/{guid}/{filter?}',
'defaults' => [
'filter' => 'configure',
],
'middleware' => [
\Elgg\Router\Middleware\Gatekeeper::class,
\Elgg\Router\Middleware\GroupPageOwnerCanEditGatekeeper::class,
],
'resource' => 'csv_exporter/group',
],
],
'events' => [
'cron' => [
'daily' => [
'\ColdTrick\CSVExporter\Cron::cleanupExports' => [],
],
'minute' => [
'\ColdTrick\CSVExporter\Cron::processExports' => [],
],
],
'export_value' => [
'csv_exporter' => [
'\ColdTrick\CSVExporter\ExportableValues::exportEntityValue' => [],
'\ColdTrick\CSVExporter\ExportableValues::exportObjectValue' => [],
'\ColdTrick\CSVExporter\ExportableValues::exportUserValue' => [],
'\ColdTrick\CSVExporter\ExportableValues::exportUserGroupValue' => [],
'\ColdTrick\CSVExporter\ExportableValues::exportGroupValue' => [],
],
],
'form:prepare:fields' => [
'csv_exporter/edit' => [
\ColdTrick\CSVExporter\Forms\PrepareFields::class => [],
],
],
'get_exportable_values' => [
'csv_exporter' => [
'\ColdTrick\CSVExporter\ExportableValues::getExportableValues' => [],
],
],
'prepare:exportable_columns' => [
'csv_exporter' => [
'\ColdTrick\CSVExporter\ExportableValues::exportableColumnGroupTools' => [],
'\ColdTrick\CSVExporter\ExportableValues::exportableColumnGroupContentStats' => [],
'\ColdTrick\CSVExporter\ExportableValues::exportableColumnLabels' => ['priority' => 9999],
],
],
'register' => [
'menu:admin_header' => [
'\ColdTrick\CSVExporter\Menus\AdminHeader::register' => [],
],
'menu:csv_exporter' => [
'\ColdTrick\CSVExporter\Menus\CSVExporter::register' => [],
],
'menu:csv_exporter_group' => [
'\ColdTrick\CSVExporter\Menus\CSVExporter::registerGroup' => [],
],
'menu:entity' => [
'\ColdTrick\CSVExporter\Menus\Entity::csvExport' => [],
],
'menu:page' => [
'\ColdTrick\CSVExporter\Menus\Page::groupAdminMenu' => [],
],
],
'setting' => [
'plugin' => [
'\ColdTrick\CSVExporter\Plugin::saveSettings' => [],
],
],
],
];