@@ -18,15 +18,15 @@ discard block |
||
18 | 18 | * @since 1.0.0 |
19 | 19 | */ |
20 | 20 | protected $columns = array( |
21 | - 'id' => array( 'format' => '%d', 'unsigned' => true ), |
|
22 | - 'action_type' => array( 'format' => '%s' ), |
|
23 | - 'primary_arg_guid' => array( 'format' => '%s' ), |
|
24 | - 'event' => array( 'format' => '%s' ), |
|
25 | - 'reactor' => array( 'format' => '%s' ), |
|
26 | - 'reaction_store' => array( 'format' => '%s' ), |
|
27 | - 'reaction_context_id' => array( 'format' => '%s' ), |
|
28 | - 'reaction_id' => array( 'format' => '%d', 'unsigned' => true ), |
|
29 | - 'date' => array( 'format' => '%s', 'is_date' => true ), |
|
21 | + 'id' => array('format' => '%d', 'unsigned' => true), |
|
22 | + 'action_type' => array('format' => '%s'), |
|
23 | + 'primary_arg_guid' => array('format' => '%s'), |
|
24 | + 'event' => array('format' => '%s'), |
|
25 | + 'reactor' => array('format' => '%s'), |
|
26 | + 'reaction_store' => array('format' => '%s'), |
|
27 | + 'reaction_context_id' => array('format' => '%s'), |
|
28 | + 'reaction_id' => array('format' => '%d', 'unsigned' => true), |
|
29 | + 'date' => array('format' => '%s', 'is_date' => true), |
|
30 | 30 | ); |
31 | 31 | |
32 | 32 | /** |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @type array $meta_query See WP_Meta_Query. |
103 | 103 | * } |
104 | 104 | */ |
105 | - public function __construct( $args = array() ) { |
|
105 | + public function __construct($args = array()) { |
|
106 | 106 | |
107 | 107 | global $wpdb; |
108 | 108 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $this->defaults['order_by'] = 'date'; |
112 | 112 | |
113 | - parent::__construct( $args ); |
|
113 | + parent::__construct($args); |
|
114 | 114 | } |
115 | 115 | } |
116 | 116 |
@@ -71,13 +71,13 @@ discard block |
||
71 | 71 | /** |
72 | 72 | * @since 1.0.0 |
73 | 73 | */ |
74 | - public function __call( $name, $args ) { |
|
74 | + public function __call($name, $args) { |
|
75 | 75 | |
76 | - $this->route_action( $name, $args ); |
|
76 | + $this->route_action($name, $args); |
|
77 | 77 | |
78 | 78 | // Return the first value, in case it is hooked to a filter. |
79 | 79 | $return = null; |
80 | - if ( isset( $args[0] ) ) { |
|
80 | + if (isset($args[0])) { |
|
81 | 81 | $return = $args[0]; |
82 | 82 | } |
83 | 83 | |
@@ -94,9 +94,9 @@ discard block |
||
94 | 94 | * action name and the priority. |
95 | 95 | * @param array $args The args the action was fired with. |
96 | 96 | */ |
97 | - protected function route_action( $name, $args ) { |
|
97 | + protected function route_action($name, $args) { |
|
98 | 98 | |
99 | - if ( ! isset( $this->action_index[ $name ] ) ) { |
|
99 | + if ( ! isset($this->action_index[$name])) { |
|
100 | 100 | return; |
101 | 101 | } |
102 | 102 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | // registry attempts to access the router in its own constructor. The result |
105 | 105 | // of attempting to do this before the router itself has been fully |
106 | 106 | // constructed is that the events registry gets null instead of the router. |
107 | - if ( ! isset( $this->actions ) ) { |
|
107 | + if ( ! isset($this->actions)) { |
|
108 | 108 | |
109 | 109 | $hooks = wordpoints_hooks(); |
110 | 110 | |
@@ -112,38 +112,38 @@ discard block |
||
112 | 112 | $this->actions = $hooks->actions; |
113 | 113 | } |
114 | 114 | |
115 | - foreach ( $this->action_index[ $name ]['actions'] as $slug => $data ) { |
|
115 | + foreach ($this->action_index[$name]['actions'] as $slug => $data) { |
|
116 | 116 | |
117 | - if ( ! isset( $this->event_index[ $slug ] ) ) { |
|
117 | + if ( ! isset($this->event_index[$slug])) { |
|
118 | 118 | continue; |
119 | 119 | } |
120 | 120 | |
121 | - $action_object = $this->actions->get( $slug, $args, $data ); |
|
121 | + $action_object = $this->actions->get($slug, $args, $data); |
|
122 | 122 | |
123 | - if ( ! ( $action_object instanceof WordPoints_Hook_ActionI ) ) { |
|
123 | + if ( ! ($action_object instanceof WordPoints_Hook_ActionI)) { |
|
124 | 124 | continue; |
125 | 125 | } |
126 | 126 | |
127 | - if ( ! $action_object->should_fire() ) { |
|
127 | + if ( ! $action_object->should_fire()) { |
|
128 | 128 | continue; |
129 | 129 | } |
130 | 130 | |
131 | - foreach ( $this->event_index[ $slug ] as $type => $events ) { |
|
132 | - foreach ( $events as $event_slug => $unused ) { |
|
131 | + foreach ($this->event_index[$slug] as $type => $events) { |
|
132 | + foreach ($events as $event_slug => $unused) { |
|
133 | 133 | |
134 | - if ( ! $this->events->is_registered( $event_slug ) ) { |
|
134 | + if ( ! $this->events->is_registered($event_slug)) { |
|
135 | 135 | continue; |
136 | 136 | } |
137 | 137 | |
138 | - $event_args = $this->events->args->get_children( $event_slug, array( $action_object ) ); |
|
138 | + $event_args = $this->events->args->get_children($event_slug, array($action_object)); |
|
139 | 139 | |
140 | - if ( empty( $event_args ) ) { |
|
140 | + if (empty($event_args)) { |
|
141 | 141 | continue; |
142 | 142 | } |
143 | 143 | |
144 | - $event_args = new WordPoints_Hook_Event_Args( $event_args ); |
|
144 | + $event_args = new WordPoints_Hook_Event_Args($event_args); |
|
145 | 145 | |
146 | - $this->fire_event( $type, $event_slug, $event_args ); |
|
146 | + $this->fire_event($type, $event_slug, $event_args); |
|
147 | 147 | } |
148 | 148 | } |
149 | 149 | } |
@@ -168,13 +168,13 @@ discard block |
||
168 | 168 | $hooks = wordpoints_hooks(); |
169 | 169 | |
170 | 170 | /** @var WordPoints_Hook_Reactor $reactor */ |
171 | - foreach ( $hooks->reactors->get_all() as $reactor ) { |
|
171 | + foreach ($hooks->reactors->get_all() as $reactor) { |
|
172 | 172 | |
173 | - if ( ! in_array( $action_type, $reactor->get_action_types(), true ) ) { |
|
173 | + if ( ! in_array($action_type, $reactor->get_action_types(), true)) { |
|
174 | 174 | continue; |
175 | 175 | } |
176 | 176 | |
177 | - foreach ( $reactor->get_all_reactions_to_event( $event_slug ) as $reaction ) { |
|
177 | + foreach ($reactor->get_all_reactions_to_event($event_slug) as $reaction) { |
|
178 | 178 | |
179 | 179 | $validator = new WordPoints_Hook_Reaction_Validator( |
180 | 180 | $reaction |
@@ -184,29 +184,29 @@ discard block |
||
184 | 184 | |
185 | 185 | $validator->validate(); |
186 | 186 | |
187 | - if ( $validator->had_errors() ) { |
|
187 | + if ($validator->had_errors()) { |
|
188 | 188 | continue; |
189 | 189 | } |
190 | 190 | |
191 | - unset( $validator ); |
|
191 | + unset($validator); |
|
192 | 192 | |
193 | - $fire = new WordPoints_Hook_Fire( $action_type, $event_args, $reaction ); |
|
193 | + $fire = new WordPoints_Hook_Fire($action_type, $event_args, $reaction); |
|
194 | 194 | |
195 | 195 | /** @var WordPoints_Hook_Extension[] $extensions */ |
196 | 196 | $extensions = $hooks->extensions->get_all(); |
197 | 197 | |
198 | - foreach ( $extensions as $extension ) { |
|
199 | - if ( ! $extension->should_hit( $fire ) ) { |
|
198 | + foreach ($extensions as $extension) { |
|
199 | + if ( ! $extension->should_hit($fire)) { |
|
200 | 200 | continue 2; |
201 | 201 | } |
202 | 202 | } |
203 | 203 | |
204 | 204 | $fire->hit(); |
205 | 205 | |
206 | - $reactor->hit( $fire ); |
|
206 | + $reactor->hit($fire); |
|
207 | 207 | |
208 | - foreach ( $extensions as $extension ) { |
|
209 | - $extension->after_hit( $fire ); |
|
208 | + foreach ($extensions as $extension) { |
|
209 | + $extension->after_hit($fire); |
|
210 | 210 | } |
211 | 211 | } |
212 | 212 | } |
@@ -235,56 +235,56 @@ discard block |
||
235 | 235 | * } |
236 | 236 | * } |
237 | 237 | */ |
238 | - public function add_action( $slug, array $args ) { |
|
238 | + public function add_action($slug, array $args) { |
|
239 | 239 | |
240 | 240 | $priority = 10; |
241 | - if ( isset( $args['priority'] ) ) { |
|
241 | + if (isset($args['priority'])) { |
|
242 | 242 | $priority = $args['priority']; |
243 | 243 | } |
244 | 244 | |
245 | - if ( ! isset( $args['action'] ) ) { |
|
245 | + if ( ! isset($args['action'])) { |
|
246 | 246 | return; |
247 | 247 | } |
248 | 248 | |
249 | 249 | $method = "{$args['action']},{$priority}"; |
250 | 250 | |
251 | - $this->action_index[ $method ]['actions'][ $slug ] = array(); |
|
251 | + $this->action_index[$method]['actions'][$slug] = array(); |
|
252 | 252 | |
253 | 253 | $arg_number = 1; |
254 | 254 | |
255 | - if ( isset( $args['data'] ) ) { |
|
255 | + if (isset($args['data'])) { |
|
256 | 256 | |
257 | - if ( isset( $args['data']['arg_index'] ) ) { |
|
258 | - $arg_number = 1 + max( $args['data']['arg_index'] ); |
|
257 | + if (isset($args['data']['arg_index'])) { |
|
258 | + $arg_number = 1 + max($args['data']['arg_index']); |
|
259 | 259 | } |
260 | 260 | |
261 | - if ( isset( $args['data']['requirements'] ) ) { |
|
262 | - $requirements = 1 + max( array_keys( $args['data']['requirements'] ) ); |
|
261 | + if (isset($args['data']['requirements'])) { |
|
262 | + $requirements = 1 + max(array_keys($args['data']['requirements'])); |
|
263 | 263 | |
264 | - if ( $requirements > $arg_number ) { |
|
264 | + if ($requirements > $arg_number) { |
|
265 | 265 | $arg_number = $requirements; |
266 | 266 | } |
267 | 267 | } |
268 | 268 | |
269 | - $this->action_index[ $method ]['actions'][ $slug ] = $args['data']; |
|
269 | + $this->action_index[$method]['actions'][$slug] = $args['data']; |
|
270 | 270 | } |
271 | 271 | |
272 | - if ( isset( $args['arg_number'] ) ) { |
|
272 | + if (isset($args['arg_number'])) { |
|
273 | 273 | $arg_number = $args['arg_number']; |
274 | 274 | } |
275 | 275 | |
276 | 276 | // If this action is already being routed, and will have enough args, we |
277 | 277 | // don't need to hook to it again. |
278 | 278 | if ( |
279 | - isset( $this->action_index[ $method ]['arg_number'] ) |
|
280 | - && $this->action_index[ $method ]['arg_number'] >= $arg_number |
|
279 | + isset($this->action_index[$method]['arg_number']) |
|
280 | + && $this->action_index[$method]['arg_number'] >= $arg_number |
|
281 | 281 | ) { |
282 | 282 | return; |
283 | 283 | } |
284 | 284 | |
285 | - $this->action_index[ $method ]['arg_number'] = $arg_number; |
|
285 | + $this->action_index[$method]['arg_number'] = $arg_number; |
|
286 | 286 | |
287 | - add_action( $args['action'], array( $this, $method ), $priority, $arg_number ); |
|
287 | + add_action($args['action'], array($this, $method), $priority, $arg_number); |
|
288 | 288 | } |
289 | 289 | |
290 | 290 | /** |
@@ -294,20 +294,20 @@ discard block |
||
294 | 294 | * |
295 | 295 | * @param string $slug The action slug. |
296 | 296 | */ |
297 | - public function remove_action( $slug ) { |
|
297 | + public function remove_action($slug) { |
|
298 | 298 | |
299 | - foreach ( $this->action_index as $method => $data ) { |
|
300 | - if ( isset( $data['actions'][ $slug ] ) ) { |
|
299 | + foreach ($this->action_index as $method => $data) { |
|
300 | + if (isset($data['actions'][$slug])) { |
|
301 | 301 | |
302 | - unset( $this->action_index[ $method ]['actions'][ $slug ] ); |
|
302 | + unset($this->action_index[$method]['actions'][$slug]); |
|
303 | 303 | |
304 | - if ( empty( $this->action_index[ $method ]['actions'] ) ) { |
|
304 | + if (empty($this->action_index[$method]['actions'])) { |
|
305 | 305 | |
306 | - unset( $this->action_index[ $method ] ); |
|
306 | + unset($this->action_index[$method]); |
|
307 | 307 | |
308 | - list( $action, $priority ) = explode( ',', $method ); |
|
308 | + list($action, $priority) = explode(',', $method); |
|
309 | 309 | |
310 | - remove_action( $action, array( $this, $method ), $priority ); |
|
310 | + remove_action($action, array($this, $method), $priority); |
|
311 | 311 | } |
312 | 312 | } |
313 | 313 | } |
@@ -322,8 +322,8 @@ discard block |
||
322 | 322 | * @param string $action_slug The slug of the action. |
323 | 323 | * @param string $action_type The type of action. Default is 'fire'. |
324 | 324 | */ |
325 | - public function add_event_to_action( $event_slug, $action_slug, $action_type = 'fire' ) { |
|
326 | - $this->event_index[ $action_slug ][ $action_type ][ $event_slug ] = true; |
|
325 | + public function add_event_to_action($event_slug, $action_slug, $action_type = 'fire') { |
|
326 | + $this->event_index[$action_slug][$action_type][$event_slug] = true; |
|
327 | 327 | } |
328 | 328 | |
329 | 329 | /** |
@@ -335,8 +335,8 @@ discard block |
||
335 | 335 | * @param string $action_slug The slug of the action. |
336 | 336 | * @param string $action_type The type of action. Default is 'fire'. |
337 | 337 | */ |
338 | - public function remove_event_from_action( $event_slug, $action_slug, $action_type = 'fire' ) { |
|
339 | - unset( $this->event_index[ $action_slug ][ $action_type ][ $event_slug ] ); |
|
338 | + public function remove_event_from_action($event_slug, $action_slug, $action_type = 'fire') { |
|
339 | + unset($this->event_index[$action_slug][$action_type][$event_slug]); |
|
340 | 340 | } |
341 | 341 | } |
342 | 342 |
@@ -65,14 +65,14 @@ discard block |
||
65 | 65 | WordPoints_Hook_Event_Args $event_args |
66 | 66 | ) { |
67 | 67 | |
68 | - if ( ! isset( $settings[ $this->slug ] ) ) { |
|
68 | + if ( ! isset($settings[$this->slug])) { |
|
69 | 69 | return $settings; |
70 | 70 | } |
71 | 71 | |
72 | - if ( ! is_array( $settings[ $this->slug ] ) ) { |
|
72 | + if ( ! is_array($settings[$this->slug])) { |
|
73 | 73 | |
74 | 74 | $validator->add_error( |
75 | - __( 'Invalid settings format.', 'wordpoints' ) |
|
75 | + __('Invalid settings format.', 'wordpoints') |
|
76 | 76 | , $this->slug |
77 | 77 | ); |
78 | 78 | |
@@ -82,13 +82,13 @@ discard block |
||
82 | 82 | $this->validator = $validator; |
83 | 83 | $this->event_args = $event_args; |
84 | 84 | |
85 | - $this->validator->push_field( $this->slug ); |
|
85 | + $this->validator->push_field($this->slug); |
|
86 | 86 | |
87 | - foreach ( $settings[ $this->slug ] as $action_type => $action_type_settings ) { |
|
87 | + foreach ($settings[$this->slug] as $action_type => $action_type_settings) { |
|
88 | 88 | |
89 | - $this->validator->push_field( $action_type ); |
|
89 | + $this->validator->push_field($action_type); |
|
90 | 90 | |
91 | - $settings[ $this->slug ][ $action_type ] = $this->validate_action_type_settings( |
|
91 | + $settings[$this->slug][$action_type] = $this->validate_action_type_settings( |
|
92 | 92 | $action_type_settings |
93 | 93 | ); |
94 | 94 | |
@@ -103,12 +103,12 @@ discard block |
||
103 | 103 | /** |
104 | 104 | * @since 1.0.0 |
105 | 105 | */ |
106 | - public function update_settings( WordPoints_Hook_ReactionI $reaction, array $settings ) { |
|
106 | + public function update_settings(WordPoints_Hook_ReactionI $reaction, array $settings) { |
|
107 | 107 | |
108 | - if ( isset( $settings[ $this->slug ] ) ) { |
|
109 | - $reaction->update_meta( $this->slug, $settings[ $this->slug ] ); |
|
108 | + if (isset($settings[$this->slug])) { |
|
109 | + $reaction->update_meta($this->slug, $settings[$this->slug]); |
|
110 | 110 | } else { |
111 | - $reaction->delete_meta( $this->slug ); |
|
111 | + $reaction->delete_meta($this->slug); |
|
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * |
122 | 122 | * @return mixed The validated settings. |
123 | 123 | */ |
124 | - protected function validate_action_type_settings( $settings ) { |
|
124 | + protected function validate_action_type_settings($settings) { |
|
125 | 125 | return $settings; |
126 | 126 | } |
127 | 127 | |
@@ -138,16 +138,16 @@ discard block |
||
138 | 138 | * |
139 | 139 | * @return mixed The settings for the extension, or false if none. |
140 | 140 | */ |
141 | - protected function get_settings_from_fire( WordPoints_Hook_Fire $fire ) { |
|
141 | + protected function get_settings_from_fire(WordPoints_Hook_Fire $fire) { |
|
142 | 142 | |
143 | - $settings = $fire->reaction->get_meta( $this->slug ); |
|
143 | + $settings = $fire->reaction->get_meta($this->slug); |
|
144 | 144 | |
145 | - if ( ! is_array( $settings ) ) { |
|
145 | + if ( ! is_array($settings)) { |
|
146 | 146 | return $settings; |
147 | 147 | } |
148 | 148 | |
149 | - if ( isset( $settings[ $fire->action_type ] ) ) { |
|
150 | - return $settings[ $fire->action_type ]; |
|
149 | + if (isset($settings[$fire->action_type])) { |
|
150 | + return $settings[$fire->action_type]; |
|
151 | 151 | } else { |
152 | 152 | return false; |
153 | 153 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * |
163 | 163 | * @return bool Whether the target should be hit by this hook firing. |
164 | 164 | */ |
165 | - abstract public function should_hit( WordPoints_Hook_Fire $fire ); |
|
165 | + abstract public function should_hit(WordPoints_Hook_Fire $fire); |
|
166 | 166 | |
167 | 167 | /** |
168 | 168 | * After a reaction has hit the target. |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * |
172 | 172 | * @param WordPoints_Hook_Fire $fire The hook fire object. |
173 | 173 | */ |
174 | - public function after_hit( WordPoints_Hook_Fire $fire ) {} |
|
174 | + public function after_hit(WordPoints_Hook_Fire $fire) {} |
|
175 | 175 | |
176 | 176 | /** |
177 | 177 | * Get the data the scripts need for the UI. |
@@ -46,13 +46,13 @@ discard block |
||
46 | 46 | protected function init() { |
47 | 47 | |
48 | 48 | $sub_apps = $this->sub_apps; |
49 | - $sub_apps->register( 'router', 'WordPoints_Hook_Router' ); |
|
50 | - $sub_apps->register( 'actions', 'WordPoints_Hook_Actions' ); |
|
51 | - $sub_apps->register( 'events', 'WordPoints_Hook_Events' ); |
|
52 | - $sub_apps->register( 'reactors', 'WordPoints_Class_Registry_Persistent' ); |
|
53 | - $sub_apps->register( 'reaction_stores', 'WordPoints_Class_Registry_Children' ); |
|
54 | - $sub_apps->register( 'extensions', 'WordPoints_Class_Registry_Persistent' ); |
|
55 | - $sub_apps->register( 'conditions', 'WordPoints_Class_Registry_Children' ); |
|
49 | + $sub_apps->register('router', 'WordPoints_Hook_Router'); |
|
50 | + $sub_apps->register('actions', 'WordPoints_Hook_Actions'); |
|
51 | + $sub_apps->register('events', 'WordPoints_Hook_Events'); |
|
52 | + $sub_apps->register('reactors', 'WordPoints_Class_Registry_Persistent'); |
|
53 | + $sub_apps->register('reaction_stores', 'WordPoints_Class_Registry_Children'); |
|
54 | + $sub_apps->register('extensions', 'WordPoints_Class_Registry_Persistent'); |
|
55 | + $sub_apps->register('conditions', 'WordPoints_Class_Registry_Children'); |
|
56 | 56 | |
57 | 57 | parent::init(); |
58 | 58 | } |
@@ -75,8 +75,8 @@ discard block |
||
75 | 75 | */ |
76 | 76 | public function get_current_mode() { |
77 | 77 | |
78 | - if ( ! isset( $this->current_mode ) ) { |
|
79 | - $this->current_mode = ( wordpoints_is_network_context() ? 'network' : 'standard' ); |
|
78 | + if ( ! isset($this->current_mode)) { |
|
79 | + $this->current_mode = (wordpoints_is_network_context() ? 'network' : 'standard'); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | return $this->current_mode; |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | * |
95 | 95 | * @param string $mode The slug of the mode to set as the current mode. |
96 | 96 | */ |
97 | - public function set_current_mode( $mode ) { |
|
97 | + public function set_current_mode($mode) { |
|
98 | 98 | $this->current_mode = $mode; |
99 | 99 | } |
100 | 100 | } |
@@ -10,108 +10,108 @@ |
||
10 | 10 | */ |
11 | 11 | |
12 | 12 | // auto-generated { |
13 | -require_once( dirname( __FILE__ ) . 'app.php' ); |
|
14 | -require_once( dirname( __FILE__ ) . 'app/registry.php' ); |
|
15 | -require_once( dirname( __FILE__ ) . 'class/autoloader.php' ); |
|
16 | -require_once( dirname( __FILE__ ) . 'class/registry.php' ); |
|
17 | -require_once( dirname( __FILE__ ) . 'class/registry/children.php' ); |
|
18 | -require_once( dirname( __FILE__ ) . 'class/registry/childreni.php' ); |
|
19 | -require_once( dirname( __FILE__ ) . 'class/registry/persistent.php' ); |
|
20 | -require_once( dirname( __FILE__ ) . 'class/registryi.php' ); |
|
21 | -require_once( dirname( __FILE__ ) . 'data/type.php' ); |
|
22 | -require_once( dirname( __FILE__ ) . 'data/type/integer.php' ); |
|
23 | -require_once( dirname( __FILE__ ) . 'data/type/text.php' ); |
|
24 | -require_once( dirname( __FILE__ ) . 'data/typei.php' ); |
|
25 | -require_once( dirname( __FILE__ ) . 'db/query.php' ); |
|
26 | -require_once( dirname( __FILE__ ) . 'entity.php' ); |
|
27 | -require_once( dirname( __FILE__ ) . 'entity/array.php' ); |
|
28 | -require_once( dirname( __FILE__ ) . 'entity/attr.php' ); |
|
29 | -require_once( dirname( __FILE__ ) . 'entity/childi.php' ); |
|
30 | -require_once( dirname( __FILE__ ) . 'entity/comment.php' ); |
|
31 | -require_once( dirname( __FILE__ ) . 'entity/comment/author.php' ); |
|
32 | -require_once( dirname( __FILE__ ) . 'entity/comment/post.php' ); |
|
33 | -require_once( dirname( __FILE__ ) . 'entity/context.php' ); |
|
34 | -require_once( dirname( __FILE__ ) . 'entity/context/network.php' ); |
|
35 | -require_once( dirname( __FILE__ ) . 'entity/context/site.php' ); |
|
36 | -require_once( dirname( __FILE__ ) . 'entity/enumerablei.php' ); |
|
37 | -require_once( dirname( __FILE__ ) . 'entity/hierarchy.php' ); |
|
38 | -require_once( dirname( __FILE__ ) . 'entity/hierarchyi.php' ); |
|
39 | -require_once( dirname( __FILE__ ) . 'entity/parenti.php' ); |
|
40 | -require_once( dirname( __FILE__ ) . 'entity/post.php' ); |
|
41 | -require_once( dirname( __FILE__ ) . 'entity/post/author.php' ); |
|
42 | -require_once( dirname( __FILE__ ) . 'entity/post/content.php' ); |
|
43 | -require_once( dirname( __FILE__ ) . 'entity/post/terms.php' ); |
|
44 | -require_once( dirname( __FILE__ ) . 'entity/post/type.php' ); |
|
45 | -require_once( dirname( __FILE__ ) . 'entity/post/type/name.php' ); |
|
46 | -require_once( dirname( __FILE__ ) . 'entity/post/type/relationship.php' ); |
|
47 | -require_once( dirname( __FILE__ ) . 'entity/relationship.php' ); |
|
48 | -require_once( dirname( __FILE__ ) . 'entity/relationship/dynamic.php' ); |
|
49 | -require_once( dirname( __FILE__ ) . 'entity/restricted/visibilityi.php' ); |
|
50 | -require_once( dirname( __FILE__ ) . 'entity/site.php' ); |
|
51 | -require_once( dirname( __FILE__ ) . 'entity/term.php' ); |
|
52 | -require_once( dirname( __FILE__ ) . 'entity/term/id.php' ); |
|
53 | -require_once( dirname( __FILE__ ) . 'entity/user.php' ); |
|
54 | -require_once( dirname( __FILE__ ) . 'entity/user/role.php' ); |
|
55 | -require_once( dirname( __FILE__ ) . 'entity/user/role/name.php' ); |
|
56 | -require_once( dirname( __FILE__ ) . 'entity/user/roles.php' ); |
|
57 | -require_once( dirname( __FILE__ ) . 'entityish.php' ); |
|
58 | -require_once( dirname( __FILE__ ) . 'entityishi.php' ); |
|
59 | -require_once( dirname( __FILE__ ) . 'hierarchy.php' ); |
|
60 | -require_once( dirname( __FILE__ ) . 'hook/action.php' ); |
|
61 | -require_once( dirname( __FILE__ ) . 'hook/action/comment/new.php' ); |
|
62 | -require_once( dirname( __FILE__ ) . 'hook/action/post/publish.php' ); |
|
63 | -require_once( dirname( __FILE__ ) . 'hook/actioni.php' ); |
|
64 | -require_once( dirname( __FILE__ ) . 'hook/actions.php' ); |
|
65 | -require_once( dirname( __FILE__ ) . 'hook/arg.php' ); |
|
66 | -require_once( dirname( __FILE__ ) . 'hook/arg/current/post.php' ); |
|
67 | -require_once( dirname( __FILE__ ) . 'hook/arg/current/site.php' ); |
|
68 | -require_once( dirname( __FILE__ ) . 'hook/arg/current/user.php' ); |
|
69 | -require_once( dirname( __FILE__ ) . 'hook/arg/dynamic.php' ); |
|
70 | -require_once( dirname( __FILE__ ) . 'hook/condition.php' ); |
|
71 | -require_once( dirname( __FILE__ ) . 'hook/condition/entity/array/contains.php' ); |
|
72 | -require_once( dirname( __FILE__ ) . 'hook/condition/equals.php' ); |
|
73 | -require_once( dirname( __FILE__ ) . 'hook/condition/string/contains.php' ); |
|
74 | -require_once( dirname( __FILE__ ) . 'hook/conditioni.php' ); |
|
75 | -require_once( dirname( __FILE__ ) . 'hook/event.php' ); |
|
76 | -require_once( dirname( __FILE__ ) . 'hook/event/args.php' ); |
|
77 | -require_once( dirname( __FILE__ ) . 'hook/event/comment/leave.php' ); |
|
78 | -require_once( dirname( __FILE__ ) . 'hook/event/dynamic.php' ); |
|
79 | -require_once( dirname( __FILE__ ) . 'hook/event/media/upload.php' ); |
|
80 | -require_once( dirname( __FILE__ ) . 'hook/event/post/publish.php' ); |
|
81 | -require_once( dirname( __FILE__ ) . 'hook/event/user/register.php' ); |
|
82 | -require_once( dirname( __FILE__ ) . 'hook/event/user/visit.php' ); |
|
83 | -require_once( dirname( __FILE__ ) . 'hook/eventi.php' ); |
|
84 | -require_once( dirname( __FILE__ ) . 'hook/events.php' ); |
|
85 | -require_once( dirname( __FILE__ ) . 'hook/extension.php' ); |
|
86 | -require_once( dirname( __FILE__ ) . 'hook/extension/blocker.php' ); |
|
87 | -require_once( dirname( __FILE__ ) . 'hook/extension/conditions.php' ); |
|
88 | -require_once( dirname( __FILE__ ) . 'hook/extension/periods.php' ); |
|
89 | -require_once( dirname( __FILE__ ) . 'hook/fire.php' ); |
|
90 | -require_once( dirname( __FILE__ ) . 'hook/hit/logger.php' ); |
|
91 | -require_once( dirname( __FILE__ ) . 'hook/hit/query.php' ); |
|
92 | -require_once( dirname( __FILE__ ) . 'hook/reaction.php' ); |
|
93 | -require_once( dirname( __FILE__ ) . 'hook/reaction/options.php' ); |
|
94 | -require_once( dirname( __FILE__ ) . 'hook/reaction/store.php' ); |
|
95 | -require_once( dirname( __FILE__ ) . 'hook/reaction/store/options.php' ); |
|
96 | -require_once( dirname( __FILE__ ) . 'hook/reaction/store/options/network.php' ); |
|
97 | -require_once( dirname( __FILE__ ) . 'hook/reaction/storei.php' ); |
|
98 | -require_once( dirname( __FILE__ ) . 'hook/reaction/validator.php' ); |
|
99 | -require_once( dirname( __FILE__ ) . 'hook/reactioni.php' ); |
|
100 | -require_once( dirname( __FILE__ ) . 'hook/reactor.php' ); |
|
101 | -require_once( dirname( __FILE__ ) . 'hook/reactor/points.php' ); |
|
102 | -require_once( dirname( __FILE__ ) . 'hook/retroactive/conditions.php' ); |
|
103 | -require_once( dirname( __FILE__ ) . 'hook/retroactive/query.php' ); |
|
104 | -require_once( dirname( __FILE__ ) . 'hook/retroactive/query/modifieri.php' ); |
|
105 | -require_once( dirname( __FILE__ ) . 'hook/retroactive/queryable.php' ); |
|
106 | -require_once( dirname( __FILE__ ) . 'hook/retroactive/queryi.php' ); |
|
107 | -require_once( dirname( __FILE__ ) . 'hook/router.php' ); |
|
108 | -require_once( dirname( __FILE__ ) . 'hook/settings.php' ); |
|
109 | -require_once( dirname( __FILE__ ) . 'hook/settingsi.php' ); |
|
110 | -require_once( dirname( __FILE__ ) . 'hook/validator/exception.php' ); |
|
111 | -require_once( dirname( __FILE__ ) . 'hooks.php' ); |
|
112 | -require_once( dirname( __FILE__ ) . 'query/builder/db/mysql.php' ); |
|
113 | -require_once( dirname( __FILE__ ) . 'spec.php' ); |
|
114 | -require_once( dirname( __FILE__ ) . 'specedi.php' ); |
|
13 | +require_once(dirname(__FILE__).'app.php'); |
|
14 | +require_once(dirname(__FILE__).'app/registry.php'); |
|
15 | +require_once(dirname(__FILE__).'class/autoloader.php'); |
|
16 | +require_once(dirname(__FILE__).'class/registry.php'); |
|
17 | +require_once(dirname(__FILE__).'class/registry/children.php'); |
|
18 | +require_once(dirname(__FILE__).'class/registry/childreni.php'); |
|
19 | +require_once(dirname(__FILE__).'class/registry/persistent.php'); |
|
20 | +require_once(dirname(__FILE__).'class/registryi.php'); |
|
21 | +require_once(dirname(__FILE__).'data/type.php'); |
|
22 | +require_once(dirname(__FILE__).'data/type/integer.php'); |
|
23 | +require_once(dirname(__FILE__).'data/type/text.php'); |
|
24 | +require_once(dirname(__FILE__).'data/typei.php'); |
|
25 | +require_once(dirname(__FILE__).'db/query.php'); |
|
26 | +require_once(dirname(__FILE__).'entity.php'); |
|
27 | +require_once(dirname(__FILE__).'entity/array.php'); |
|
28 | +require_once(dirname(__FILE__).'entity/attr.php'); |
|
29 | +require_once(dirname(__FILE__).'entity/childi.php'); |
|
30 | +require_once(dirname(__FILE__).'entity/comment.php'); |
|
31 | +require_once(dirname(__FILE__).'entity/comment/author.php'); |
|
32 | +require_once(dirname(__FILE__).'entity/comment/post.php'); |
|
33 | +require_once(dirname(__FILE__).'entity/context.php'); |
|
34 | +require_once(dirname(__FILE__).'entity/context/network.php'); |
|
35 | +require_once(dirname(__FILE__).'entity/context/site.php'); |
|
36 | +require_once(dirname(__FILE__).'entity/enumerablei.php'); |
|
37 | +require_once(dirname(__FILE__).'entity/hierarchy.php'); |
|
38 | +require_once(dirname(__FILE__).'entity/hierarchyi.php'); |
|
39 | +require_once(dirname(__FILE__).'entity/parenti.php'); |
|
40 | +require_once(dirname(__FILE__).'entity/post.php'); |
|
41 | +require_once(dirname(__FILE__).'entity/post/author.php'); |
|
42 | +require_once(dirname(__FILE__).'entity/post/content.php'); |
|
43 | +require_once(dirname(__FILE__).'entity/post/terms.php'); |
|
44 | +require_once(dirname(__FILE__).'entity/post/type.php'); |
|
45 | +require_once(dirname(__FILE__).'entity/post/type/name.php'); |
|
46 | +require_once(dirname(__FILE__).'entity/post/type/relationship.php'); |
|
47 | +require_once(dirname(__FILE__).'entity/relationship.php'); |
|
48 | +require_once(dirname(__FILE__).'entity/relationship/dynamic.php'); |
|
49 | +require_once(dirname(__FILE__).'entity/restricted/visibilityi.php'); |
|
50 | +require_once(dirname(__FILE__).'entity/site.php'); |
|
51 | +require_once(dirname(__FILE__).'entity/term.php'); |
|
52 | +require_once(dirname(__FILE__).'entity/term/id.php'); |
|
53 | +require_once(dirname(__FILE__).'entity/user.php'); |
|
54 | +require_once(dirname(__FILE__).'entity/user/role.php'); |
|
55 | +require_once(dirname(__FILE__).'entity/user/role/name.php'); |
|
56 | +require_once(dirname(__FILE__).'entity/user/roles.php'); |
|
57 | +require_once(dirname(__FILE__).'entityish.php'); |
|
58 | +require_once(dirname(__FILE__).'entityishi.php'); |
|
59 | +require_once(dirname(__FILE__).'hierarchy.php'); |
|
60 | +require_once(dirname(__FILE__).'hook/action.php'); |
|
61 | +require_once(dirname(__FILE__).'hook/action/comment/new.php'); |
|
62 | +require_once(dirname(__FILE__).'hook/action/post/publish.php'); |
|
63 | +require_once(dirname(__FILE__).'hook/actioni.php'); |
|
64 | +require_once(dirname(__FILE__).'hook/actions.php'); |
|
65 | +require_once(dirname(__FILE__).'hook/arg.php'); |
|
66 | +require_once(dirname(__FILE__).'hook/arg/current/post.php'); |
|
67 | +require_once(dirname(__FILE__).'hook/arg/current/site.php'); |
|
68 | +require_once(dirname(__FILE__).'hook/arg/current/user.php'); |
|
69 | +require_once(dirname(__FILE__).'hook/arg/dynamic.php'); |
|
70 | +require_once(dirname(__FILE__).'hook/condition.php'); |
|
71 | +require_once(dirname(__FILE__).'hook/condition/entity/array/contains.php'); |
|
72 | +require_once(dirname(__FILE__).'hook/condition/equals.php'); |
|
73 | +require_once(dirname(__FILE__).'hook/condition/string/contains.php'); |
|
74 | +require_once(dirname(__FILE__).'hook/conditioni.php'); |
|
75 | +require_once(dirname(__FILE__).'hook/event.php'); |
|
76 | +require_once(dirname(__FILE__).'hook/event/args.php'); |
|
77 | +require_once(dirname(__FILE__).'hook/event/comment/leave.php'); |
|
78 | +require_once(dirname(__FILE__).'hook/event/dynamic.php'); |
|
79 | +require_once(dirname(__FILE__).'hook/event/media/upload.php'); |
|
80 | +require_once(dirname(__FILE__).'hook/event/post/publish.php'); |
|
81 | +require_once(dirname(__FILE__).'hook/event/user/register.php'); |
|
82 | +require_once(dirname(__FILE__).'hook/event/user/visit.php'); |
|
83 | +require_once(dirname(__FILE__).'hook/eventi.php'); |
|
84 | +require_once(dirname(__FILE__).'hook/events.php'); |
|
85 | +require_once(dirname(__FILE__).'hook/extension.php'); |
|
86 | +require_once(dirname(__FILE__).'hook/extension/blocker.php'); |
|
87 | +require_once(dirname(__FILE__).'hook/extension/conditions.php'); |
|
88 | +require_once(dirname(__FILE__).'hook/extension/periods.php'); |
|
89 | +require_once(dirname(__FILE__).'hook/fire.php'); |
|
90 | +require_once(dirname(__FILE__).'hook/hit/logger.php'); |
|
91 | +require_once(dirname(__FILE__).'hook/hit/query.php'); |
|
92 | +require_once(dirname(__FILE__).'hook/reaction.php'); |
|
93 | +require_once(dirname(__FILE__).'hook/reaction/options.php'); |
|
94 | +require_once(dirname(__FILE__).'hook/reaction/store.php'); |
|
95 | +require_once(dirname(__FILE__).'hook/reaction/store/options.php'); |
|
96 | +require_once(dirname(__FILE__).'hook/reaction/store/options/network.php'); |
|
97 | +require_once(dirname(__FILE__).'hook/reaction/storei.php'); |
|
98 | +require_once(dirname(__FILE__).'hook/reaction/validator.php'); |
|
99 | +require_once(dirname(__FILE__).'hook/reactioni.php'); |
|
100 | +require_once(dirname(__FILE__).'hook/reactor.php'); |
|
101 | +require_once(dirname(__FILE__).'hook/reactor/points.php'); |
|
102 | +require_once(dirname(__FILE__).'hook/retroactive/conditions.php'); |
|
103 | +require_once(dirname(__FILE__).'hook/retroactive/query.php'); |
|
104 | +require_once(dirname(__FILE__).'hook/retroactive/query/modifieri.php'); |
|
105 | +require_once(dirname(__FILE__).'hook/retroactive/queryable.php'); |
|
106 | +require_once(dirname(__FILE__).'hook/retroactive/queryi.php'); |
|
107 | +require_once(dirname(__FILE__).'hook/router.php'); |
|
108 | +require_once(dirname(__FILE__).'hook/settings.php'); |
|
109 | +require_once(dirname(__FILE__).'hook/settingsi.php'); |
|
110 | +require_once(dirname(__FILE__).'hook/validator/exception.php'); |
|
111 | +require_once(dirname(__FILE__).'hooks.php'); |
|
112 | +require_once(dirname(__FILE__).'query/builder/db/mysql.php'); |
|
113 | +require_once(dirname(__FILE__).'spec.php'); |
|
114 | +require_once(dirname(__FILE__).'specedi.php'); |
|
115 | 115 | // } |
116 | 116 | |
117 | 117 | // EOF |
@@ -7,25 +7,25 @@ |
||
7 | 7 | * @since 1.0.0 |
8 | 8 | */ |
9 | 9 | |
10 | -add_action( 'wordpoints_init_app-apps', 'wordpoints_apps_init' ); |
|
11 | -add_action( 'wordpoints_init_app-entities', 'wordpoints_entities_app_init' ); |
|
10 | +add_action('wordpoints_init_app-apps', 'wordpoints_apps_init'); |
|
11 | +add_action('wordpoints_init_app-entities', 'wordpoints_entities_app_init'); |
|
12 | 12 | |
13 | -add_action( 'wordpoints_init_app_registry-apps-entities', 'wordpoints_entities_init' ); |
|
14 | -add_action( 'wordpoints_init_app_registry-entities-contexts', 'wordpoints_entity_contexts_init' ); |
|
13 | +add_action('wordpoints_init_app_registry-apps-entities', 'wordpoints_entities_init'); |
|
14 | +add_action('wordpoints_init_app_registry-entities-contexts', 'wordpoints_entity_contexts_init'); |
|
15 | 15 | |
16 | -add_action( 'wordpoints_init_app_registry-apps-data_types', 'wordpoints_data_types_init' ); |
|
16 | +add_action('wordpoints_init_app_registry-apps-data_types', 'wordpoints_data_types_init'); |
|
17 | 17 | |
18 | -add_action( 'wordpoints_init_app_registry-hooks-events', 'wordpoints_hook_events_init' ); |
|
19 | -add_action( 'wordpoints_init_app_registry-hooks-actions', 'wordpoints_hook_actions_init' ); |
|
20 | -add_action( 'wordpoints_init_app_registry-hooks-reactors', 'wordpoints_hook_reactors_init' ); |
|
21 | -add_action( 'wordpoints_init_app_registry-hooks-reaction_stores', 'wordpoints_hook_reaction_stores_init' ); |
|
22 | -add_action( 'wordpoints_init_app_registry-hooks-extensions', 'wordpoints_hook_extension_init' ); |
|
23 | -add_action( 'wordpoints_init_app_registry-hooks-conditions', 'wordpoints_hook_conditions_init' ); |
|
18 | +add_action('wordpoints_init_app_registry-hooks-events', 'wordpoints_hook_events_init'); |
|
19 | +add_action('wordpoints_init_app_registry-hooks-actions', 'wordpoints_hook_actions_init'); |
|
20 | +add_action('wordpoints_init_app_registry-hooks-reactors', 'wordpoints_hook_reactors_init'); |
|
21 | +add_action('wordpoints_init_app_registry-hooks-reaction_stores', 'wordpoints_hook_reaction_stores_init'); |
|
22 | +add_action('wordpoints_init_app_registry-hooks-extensions', 'wordpoints_hook_extension_init'); |
|
23 | +add_action('wordpoints_init_app_registry-hooks-conditions', 'wordpoints_hook_conditions_init'); |
|
24 | 24 | |
25 | -add_action( 'wordpoints_modules_loaded', 'wordpoints_init_hooks' ); |
|
25 | +add_action('wordpoints_modules_loaded', 'wordpoints_init_hooks'); |
|
26 | 26 | |
27 | -add_action( 'init', 'wordpoints_hooks_api_add_global_cache_groups', 5 ); |
|
27 | +add_action('init', 'wordpoints_hooks_api_add_global_cache_groups', 5); |
|
28 | 28 | |
29 | -add_filter( 'wordpoints_user_can_view_points_log', 'wordpoints_hooks_user_can_view_points_log' ); |
|
29 | +add_filter('wordpoints_user_can_view_points_log', 'wordpoints_hooks_user_can_view_points_log'); |
|
30 | 30 | |
31 | 31 | // EOF |