@@ 218-232 (lines=15) @@ | ||
215 | return $selection_array; |
|
216 | } |
|
217 | ||
218 | function pre_confirmation_check() { |
|
219 | if (is_array($this->modules)) { |
|
220 | if (strpos($this->selected_module, '\\') !== false) { |
|
221 | $OSCOM_PM = Registry::get('Payment_' . str_replace('\\', '_', $this->selected_module)); |
|
222 | ||
223 | if ($OSCOM_PM->enabled) { |
|
224 | $OSCOM_PM->pre_confirmation_check(); |
|
225 | } |
|
226 | } else { |
|
227 | if (is_object($GLOBALS[$this->selected_module]) && ($GLOBALS[$this->selected_module]->enabled) ) { |
|
228 | $GLOBALS[$this->selected_module]->pre_confirmation_check(); |
|
229 | } |
|
230 | } |
|
231 | } |
|
232 | } |
|
233 | ||
234 | function confirmation() { |
|
235 | if (is_array($this->modules)) { |
|
@@ 234-248 (lines=15) @@ | ||
231 | } |
|
232 | } |
|
233 | ||
234 | function confirmation() { |
|
235 | if (is_array($this->modules)) { |
|
236 | if (strpos($this->selected_module, '\\') !== false) { |
|
237 | $OSCOM_PM = Registry::get('Payment_' . str_replace('\\', '_', $this->selected_module)); |
|
238 | ||
239 | if ($OSCOM_PM->enabled) { |
|
240 | return $OSCOM_PM->confirmation(); |
|
241 | } |
|
242 | } else { |
|
243 | if (is_object($GLOBALS[$this->selected_module]) && ($GLOBALS[$this->selected_module]->enabled) ) { |
|
244 | return $GLOBALS[$this->selected_module]->confirmation(); |
|
245 | } |
|
246 | } |
|
247 | } |
|
248 | } |
|
249 | ||
250 | function process_button() { |
|
251 | if (is_array($this->modules)) { |
|
@@ 250-264 (lines=15) @@ | ||
247 | } |
|
248 | } |
|
249 | ||
250 | function process_button() { |
|
251 | if (is_array($this->modules)) { |
|
252 | if (strpos($this->selected_module, '\\') !== false) { |
|
253 | $OSCOM_PM = Registry::get('Payment_' . str_replace('\\', '_', $this->selected_module)); |
|
254 | ||
255 | if ($OSCOM_PM->enabled) { |
|
256 | return $OSCOM_PM->process_button(); |
|
257 | } |
|
258 | } else { |
|
259 | if (is_object($GLOBALS[$this->selected_module]) && ($GLOBALS[$this->selected_module]->enabled) ) { |
|
260 | return $GLOBALS[$this->selected_module]->process_button(); |
|
261 | } |
|
262 | } |
|
263 | } |
|
264 | } |
|
265 | ||
266 | function before_process() { |
|
267 | if (is_array($this->modules)) { |
|
@@ 266-280 (lines=15) @@ | ||
263 | } |
|
264 | } |
|
265 | ||
266 | function before_process() { |
|
267 | if (is_array($this->modules)) { |
|
268 | if (strpos($this->selected_module, '\\') !== false) { |
|
269 | $OSCOM_PM = Registry::get('Payment_' . str_replace('\\', '_', $this->selected_module)); |
|
270 | ||
271 | if ($OSCOM_PM->enabled) { |
|
272 | return $OSCOM_PM->before_process(); |
|
273 | } |
|
274 | } else { |
|
275 | if (is_object($GLOBALS[$this->selected_module]) && ($GLOBALS[$this->selected_module]->enabled) ) { |
|
276 | return $GLOBALS[$this->selected_module]->before_process(); |
|
277 | } |
|
278 | } |
|
279 | } |
|
280 | } |
|
281 | ||
282 | function after_process() { |
|
283 | if (is_array($this->modules)) { |
|
@@ 282-296 (lines=15) @@ | ||
279 | } |
|
280 | } |
|
281 | ||
282 | function after_process() { |
|
283 | if (is_array($this->modules)) { |
|
284 | if (strpos($this->selected_module, '\\') !== false) { |
|
285 | $OSCOM_PM = Registry::get('Payment_' . str_replace('\\', '_', $this->selected_module)); |
|
286 | ||
287 | if ($OSCOM_PM->enabled) { |
|
288 | return $OSCOM_PM->after_process(); |
|
289 | } |
|
290 | } else { |
|
291 | if (is_object($GLOBALS[$this->selected_module]) && ($GLOBALS[$this->selected_module]->enabled) ) { |
|
292 | return $GLOBALS[$this->selected_module]->after_process(); |
|
293 | } |
|
294 | } |
|
295 | } |
|
296 | } |
|
297 | ||
298 | function get_error() { |
|
299 | if (is_array($this->modules)) { |
|
@@ 298-312 (lines=15) @@ | ||
295 | } |
|
296 | } |
|
297 | ||
298 | function get_error() { |
|
299 | if (is_array($this->modules)) { |
|
300 | if (strpos($this->selected_module, '\\') !== false) { |
|
301 | $OSCOM_PM = Registry::get('Payment_' . str_replace('\\', '_', $this->selected_module)); |
|
302 | ||
303 | if ($OSCOM_PM->enabled) { |
|
304 | return $OSCOM_PM->get_error(); |
|
305 | } |
|
306 | } else { |
|
307 | if (is_object($GLOBALS[$this->selected_module]) && ($GLOBALS[$this->selected_module]->enabled) ) { |
|
308 | return $GLOBALS[$this->selected_module]->get_error(); |
|
309 | } |
|
310 | } |
|
311 | } |
|
312 | } |
|
313 | } |
|
314 | ?> |
|
315 |