* -------------------------------------------------------------------- *
* Kurzbeschreibung : Funktionen fuer Filter-System *
* -------------------------------------------------------------------- *
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Funktionen fuer Filter-System *
* -------------------------------------------------------------------- *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
registerFilter(__FUNCTION__, __LINE__, 'init', 'LOAD_CONFIGURATION');
registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_RANDOMIZER');
registerFilter(__FUNCTION__, __LINE__, 'init', 'LOAD_RUNTIME_INCLUDES');
registerFilter(__FUNCTION__, __LINE__, 'init', 'LOAD_CONFIGURATION');
registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_RANDOMIZER');
registerFilter(__FUNCTION__, __LINE__, 'init', 'LOAD_RUNTIME_INCLUDES');
registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_EXTENSIONS');
registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_SESSION');
registerFilter(__FUNCTION__, __LINE__, 'init', 'SET_CURRENT_DATE');
registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_RANDOM_NUMBER');
registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_EXTENSIONS');
registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_SESSION');
registerFilter(__FUNCTION__, __LINE__, 'init', 'SET_CURRENT_DATE');
registerFilter(__FUNCTION__, __LINE__, 'init', 'INIT_RANDOM_NUMBER');
registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_HOURLY_RESET');
registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_DAILY_RESET');
registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_WEEKLY_RESET');
registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_HOURLY_RESET');
registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_DAILY_RESET');
registerFilter(__FUNCTION__, __LINE__, 'init', 'RUN_WEEKLY_RESET');
registerFilter(__FUNCTION__, __LINE__, 'init', 'COUNT_MODULE');
registerFilter(__FUNCTION__, __LINE__, 'init', 'UPDATE_LOGIN_DATA');
registerFilter(__FUNCTION__, __LINE__, 'init', 'ACTIVATE_EXCHANGE');
registerFilter(__FUNCTION__, __LINE__, 'init', 'COUNT_MODULE');
registerFilter(__FUNCTION__, __LINE__, 'init', 'UPDATE_LOGIN_DATA');
registerFilter(__FUNCTION__, __LINE__, 'init', 'ACTIVATE_EXCHANGE');
// Post-initialization
registerFilter(__FUNCTION__, __LINE__, 'post_init', 'DETERMINE_USERNAME');
// Post-initialization
registerFilter(__FUNCTION__, __LINE__, 'post_init', 'DETERMINE_USERNAME');
// Is that filter chain there?
if (!isset($GLOBALS['cache_array']['filter']['chains'][$filterName])) {
// Is that filter chain there?
if (!isset($GLOBALS['cache_array']['filter']['chains'][$filterName])) {
if (isDebugModeEnabled()) {
// Log it away...
logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' does not exist.');
if (isDebugModeEnabled()) {
// Log it away...
logDebugMessage(__FUNCTION__, __LINE__, 'Filter chain ' . $filterName . ' does not exist.');
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'filterName=' . $filterName . ',count()=' . count($GLOBALS['cache_array']['filter']['chains'][$filterName]));
$returnValue = $filterData;
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'filterName=' . $filterName . ',count()=' . count($GLOBALS['cache_array']['filter']['chains'][$filterName]));
$returnValue = $filterData;
- return ((isset($GLOBALS['filter_chain_aborted'])) && ($GLOBALS['filter_chain_aborted'] === TRUE));
+ return ((isset($GLOBALS['filter_chain_interrupted'])) && ($GLOBALS['filter_chain_interrupted'] === TRUE));
+}
+
+// Interrupts the filter chain by enabling flag 'filter_chain_aborted'
+function interruptFilterChain () {
+ // Set it
+ $GLOBALS['filter_chain_interrupted'] = TRUE;
+}
+
+// Continues the filter chain by disabling flag 'filter_chain_aborted'
+function continueFilterChain () {
+ // Set it
+ $GLOBALS['filter_chain_interrupted'] = FALSE;