/** * Shutdown function * Function that will be called when the script finishes execution. * * @return Void Returns nothing */ function __iem_shutdown_function() { $tempEvent = new EventData_IEM_SYSTEM_SHUTDOWN_BEFORE(); $tempEvent->trigger(); unset($tempEvent); if (!IEM::configSave()) { trigger_error('Cannot save configuration variable to file', E_USER_WARNING); } $tempEvent = new EventData_IEM_SYSTEM_SHUTDOWN_AFTER(); $tempEvent->trigger(); unset($tempEvent); }