Пример #1
0
function processWorkspace()
{
    try {
        global $sObject;
        global $sLastExecution;
        resendEmails();
        unpauseApplications();
        calculateDuration();
        executeEvents($sLastExecution);
        executeScheduledCases();
        executeUpdateAppTitle();
        executeCaseSelfService();
        executePlugins();
    } catch (Exception $oError) {
        saveLog("main", "error", "Error processing workspace : " . $oError->getMessage() . "\n");
    }
}
Пример #2
0
function processWorkspace()

{

    try {

        Bootstrap::LoadClass("plugin");

        $oPluginRegistry =& PMPluginRegistry::getSingleton();

        if (file_exists(PATH_DATA_SITE . 'plugin.singleton')) {

            $oPluginRegistry->unSerializeInstance(file_get_contents(PATH_DATA_SITE . 'plugin.singleton'));

        }

        Bootstrap::LoadClass("case");



        global $sObject;

        global $sLastExecution;



        resendEmails();

        unpauseApplications();

        calculateDuration();

        /*----------------------------------********---------------------------------*/

        executeEvents($sLastExecution);

        executeScheduledCases();

        executeUpdateAppTitle();

        executeCaseSelfService();

        executePlugins();

        /*----------------------------------********---------------------------------*/

    } catch (Exception $oError) {

        saveLog("main", "error", "Error processing workspace : " . $oError->getMessage() . "\n");

    }

}