HOR-2689 Removed references to G::LoadClass, Bootstrap::LoadClass and various references to class loading methods and require_once

This commit is contained in:
Chloe Deguzman
2017-02-14 21:24:08 +00:00
committed by davidcallizaya
parent d72b7aa561
commit 60efcf7ac7
461 changed files with 289 additions and 3170 deletions

View File

@@ -64,35 +64,6 @@ try {
$classLoader->addModelClassPath(PATH_TRUNK . 'workflow' . PATH_SEP . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'model' . PATH_SEP);
//Load classes
G::LoadThirdParty('pear/json', 'class.json');
G::LoadThirdParty('smarty/libs', 'Smarty.class');
G::LoadThirdParty('propel', 'Propel');
G::LoadSystem('error');
G::LoadSystem('dbconnection');
G::LoadSystem('dbsession');
G::LoadSystem('dbrecordset');
G::LoadSystem('dbtable');
G::LoadSystem('rbac' );
G::LoadSystem('publisher');
G::LoadSystem('templatePower');
G::LoadSystem('xmlDocument');
G::LoadSystem('xmlform');
G::LoadSystem('xmlformExtension');
G::LoadSystem('form');
G::LoadSystem('menu');
G::LoadSystem('xmlMenu');
G::LoadSystem('table');
G::LoadSystem('pagedTable');
G::LoadSystem('httpProxyController');
G::LoadClass('system');
G::LoadClass('tasks');
require_once('propel/Propel.php');
require_once('creole/Creole.php');
//TODO: get rid of the global variable improving the timezone activation when this feature is enabled
global $arraySystemConfiguration;
$arraySystemConfiguration = System::getSystemConfiguration('', '', $workspace);
$e_all = (defined('E_DEPRECATED'))? E_ALL & ~E_DEPRECATED : E_ALL;
@@ -151,12 +122,6 @@ try {
Bootstrap::registerClass('dashboards', PATH_HOME . 'engine/classes/class.dashboards.php');
/*----------------------------------********---------------------------------*/
G::LoadClass('processes');
G::LoadClass('derivation');
G::LoadClass('dates'); //Load Criteria
G::LoadClass('spool');
G::LoadClass('pmException');
//Set variables
/*----------------------------------********---------------------------------*/
$dateInit = null;
@@ -216,7 +181,6 @@ try {
if (file_exists($sSerializedFile)) {
$pluginRegistry = PMPluginRegistry::loadSingleton($sSerializedFile);
}
G::LoadClass('pmScript');
//DB
$phpCode = '';
@@ -349,12 +313,11 @@ try {
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;
@@ -394,7 +357,6 @@ function resendEmails()
setExecutionMessage("Resending emails");
try {
G::LoadClass("spool");
$dateResend = $sNow;
@@ -460,7 +422,7 @@ function unpauseApplications()
setExecutionMessage("Unpausing applications");
try {
G::LoadClass('case');
$oCases = new Cases();
$oCases->ThrowUnpauseDaemon($sNow, 1);
@@ -1033,7 +995,6 @@ function synchronizeDrive ()
}
$licensedFeatures = &PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
G::LoadClass('AppDocumentDrive');
$drive = new AppDocumentDrive();
if ($drive->getStatusDrive()) {
setExecutionMessage("Synchronize documents to Drive");
@@ -1063,11 +1024,9 @@ function synchronizeGmailLabels()
}
$licensedFeatures = &PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
G::LoadClass("pmGoogleApi");
$pmGoogle = new PMGoogleApi();
if ($pmGoogle->getServiceGmailStatus()) {
setExecutionMessage("Synchronize labels in Gmail");
G::LoadClass('labelsGmail');
$labGmail = new labelsGmail();
$labGmail->processPendingRelabelingInQueue();
} else {