-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule.php
More file actions
executable file
·154 lines (133 loc) · 3.03 KB
/
module.php
File metadata and controls
executable file
·154 lines (133 loc) · 3.03 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php
class wfm_god extends wf_module {
public function __construct($wf) {
$this->wf = $wf;
}
public function get_name() { return("god"); }
public function get_description() { return("OWF Native God module"); }
public function get_banner() { return("god/1.3.0"); }
public function get_version() { return("1.3.0"); }
public function get_authors() { return("Michael VERGOZ"); }
public function get_depends() { return(NULL); }
public function get_actions() {
return(array(
"/admin/system/god" => array(
WF_ROUTE_ACTION,
"admin/system/god",
"show",
$this->ts("Super god management"),
WF_ROUTE_SHOW,
array("session:god"),
),
/* contexts */
"/admin/system/god/context" => array(
WF_ROUTE_ACTION,
"god/context",
"show",
$this->ts("Gestion des contextes"),
WF_ROUTE_SHOW,
array("session:god")
),
"/admin/system/god/context/edit_ctx" => array(
WF_ROUTE_ACTION,
"god/context",
"edit_form",
"Data",
WF_ROUTE_HIDE,
array("session:god")
),
"/admin/system/god/context/edit" => array(
WF_ROUTE_ACTION,
"god/context",
"edit",
"Data",
WF_ROUTE_HIDE,
array("session:god")
),
"/admin/system/god/context/clear" => array(
WF_ROUTE_ACTION,
"god/context",
"clear_context",
"Data",
WF_ROUTE_HIDE,
array("session:god")
),
/* tpl edition */
"/admin/system/god/tpl" => array(
WF_ROUTE_ACTION,
"god/tpl",
"show",
$this->ts("Gestion des templates"),
WF_ROUTE_SHOW,
array("session:god")
),
"/admin/system/god/tpl/edit_tpl" => array(
WF_ROUTE_ACTION,
"god/tpl",
"edit_tpl",
$this->ts("Gestion des templates"),
WF_ROUTE_HIDE,
array("session:god")
),
"/admin/system/god/tpl/edit" => array(
WF_ROUTE_ACTION,
"god/tpl",
"edit",
"",
WF_ROUTE_HIDE,
array("session:god")
),
/* import from csv */
"/admin/system/god/import" => array(
WF_ROUTE_ACTION,
"god/main",
"import",
"",
WF_ROUTE_HIDE,
array("session:god")
),
"/admin/system/god/export" => array(
WF_ROUTE_ACTION,
"god/main",
"export",
"",
WF_ROUTE_HIDE,
array("session:god")
),
));
}
public function json_module() {
/* list of definitions */
$return = array(
array(
/* aggregator authorized */
"agg" => "core_lang",
/* method of the authorized aggregator */
"method" => "json_context",
/* permission associated */
"perm" => array("session:god")
),
array(
/* aggregator authorized */
"agg" => "god_tpl",
/* method of the authorized aggregator */
"method" => "json_context",
/* permission associated */
"perm" => array("session:god")
),
);
/* then return the information */
return($return);
}
public function search_module() {
$return = array();
$info = array(
"name" => $this->ts("god_tpl"),
"agg" => "god_tpl",
"met_db" => "search_db",
"met_link" => "search_link",
);
$return[] = $info;
return($return);
}
}