Bootstrap::registerClass('xmlformExtension', PATH_GULLIVER . "class.xmlformExtension.php"); Bootstrap::registerClass('form', PATH_GULLIVER . "class.form.php"); Bootstrap::registerClass('menu', PATH_GULLIVER . "class.menu.php"); Bootstrap::registerClass('Xml_Document', PATH_GULLIVER . "class.xmlDocument.php"); Bootstrap::registerClass('DBSession', PATH_GULLIVER . "class.dbsession.php"); Bootstrap::registerClass('DBConnection', PATH_GULLIVER . "class.dbconnection.php"); Bootstrap::registerClass('DBRecordset', PATH_GULLIVER . "class.dbrecordset.php"); Bootstrap::registerClass('DBTable', PATH_GULLIVER . "class.dbtable.php"); Bootstrap::registerClass('xmlMenu', PATH_GULLIVER . "class.xmlMenu.php"); Bootstrap::registerClass('XmlForm_Field_FastSearch', PATH_GULLIVER . "class.xmlformExtension.php"); Bootstrap::registerClass('XmlForm_Field_XmlMenu', PATH_GULLIVER . "class.xmlMenu.php"); Bootstrap::registerClass('XmlForm_Field_HTML', PATH_GULLIVER . "class.dvEditor.php"); Bootstrap::registerClass('XmlForm_Field_WYSIWYG_EDITOR', PATH_GULLIVER . "class.wysiwygEditor.php"); Bootstrap::registerClass('Controller', PATH_GULLIVER . "class.controller.php"); Bootstrap::registerClass('HttpProxyController', PATH_GULLIVER . "class.httpProxyController.php"); Bootstrap::registerClass('templatePower', PATH_GULLIVER . "class.templatePower.php"); Bootstrap::registerClass('XmlForm_Field_SimpleText', PATH_GULLIVER . "class.xmlformExtension.php"); Bootstrap::registerClass('Propel', PATH_THIRDPARTY . "propel/Propel.php"); Bootstrap::registerClass('Creole', PATH_THIRDPARTY . "creole/Creole.php"); Bootstrap::registerClass('Criteria', PATH_THIRDPARTY . "propel/util/Criteria.php"); Bootstrap::registerClass('Groups', PATH_HOME . "engine/classes/class.groups.php"); Bootstrap::registerClass('Tasks', PATH_HOME . "engine/classes/class.tasks.php"); Bootstrap::registerClass('Calendar', PATH_HOME . "engine/classes/class.calendar.php"); Bootstrap::registerClass('processMap', PATH_HOME . "engine/classes/class.processMap.php"); Bootstrap::registerSystemClasses(); require_once PATH_THIRDPARTY . 'pake' . PATH_SEP . 'pakeFunction.php'; require_once PATH_THIRDPARTY . 'pake' . PATH_SEP . 'pakeGetopt.class.php'; require_once PATH_CORE . 'config' . PATH_SEP . 'environments.php'; if (!defined('G_ENVIRONMENT')) { define('G_ENVIRONMENT', G_TEST_ENV); }
Bootstrap::registerClass('BaseTaskUser', PATH_HOME . "engine/classes/model/om/BaseTaskUser.php"); Bootstrap::registerClass('TaskUserPeer', PATH_HOME . "engine/classes/model/TaskUserPeer.php"); Bootstrap::registerClass('TaskUser', PATH_HOME . "engine/classes/model/TaskUser.php"); Bootstrap::registerClass('BaseTriggers', PATH_HOME . "engine/classes/model/om/BaseTriggers.php"); Bootstrap::registerClass('Triggers', PATH_HOME . "engine/classes/model/Triggers.php"); Bootstrap::registerClass('BaseTriggersPeer', PATH_HOME . "engine/classes/model/om/BaseTriggersPeer.php"); Bootstrap::registerClass('TriggersPeer', PATH_HOME . "engine/classes/model/TriggersPeer.php"); Bootstrap::registerClass('BaseUsers', PATH_HOME . "engine/classes/model/om/BaseUsers.php"); Bootstrap::registerClass('IsoCountry', PATH_HOME . "engine/classes/model/IsoCountry.php"); Bootstrap::registerClass('BaseIsoSubdivision', PATH_HOME . "engine/classes/model/om/BaseIsoSubdivision.php"); Bootstrap::registerClass('IsoSubdivision', PATH_HOME . "engine/classes/model/IsoSubdivision.php"); Bootstrap::registerClass('BaseIsoLocation', PATH_HOME . "engine/classes/model/om/BaseIsoLocation.php"); Bootstrap::registerClass('IsoLocation', PATH_HOME . "engine/classes/model/IsoLocation.php"); Bootstrap::registerClass('Users', PATH_HOME . "engine/classes/model/Users.php"); Bootstrap::registerClass('UsersPeer', PATH_HOME . "engine/classes/model/UsersPeer.php"); Bootstrap::registerClass('Xml_Node', PATH_GULLIVER . "class.xmlDocument.php"); G::LoadClass("case"); G::LoadClass("dates"); G::LoadClass("pmScript"); if (!defined('SYS_SYS')) { $sObject = $argv[1]; $sNow = $argv[2]; $dateSystem = $argv[3]; $sFilter = ''; for ($i = 4; $i <= count($argv) - 1; $i++) { $sFilter .= ' ' . $argv[$i]; } $oDirectory = dir(PATH_DB); if (is_dir(PATH_DB . $sObject)) { saveLog('main', 'action', "checking folder " . PATH_DB . $sObject); if (file_exists(PATH_DB . $sObject . PATH_SEP . 'db.php')) {
"AbeConfiguration" ); foreach ($arrayClass as $value) { Bootstrap::registerClass("Base" . $value, PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "om" . PATH_SEP . "Base" . $value . ".php"); Bootstrap::registerClass($value, PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . $value . ".php"); Bootstrap::registerClass("Base" . $value . "Peer", PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . "om" . PATH_SEP . "Base" . $value . "Peer.php"); Bootstrap::registerClass($value . "Peer", PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "model" . PATH_SEP . $value . "Peer.php"); } G::LoadClass("serverConfiguration"); G::LoadClass("dates"); //Load Criteria /*----------------------------------********---------------------------------*/
Bootstrap::registerClass('AppDelegationPeer', PATH_HOME . "engine/classes/model/AppDelegationPeer.php"); Bootstrap::registerClass('BaseAppDelay', PATH_HOME . "engine/classes/model/om/BaseAppDelay.php"); Bootstrap::registerClass('AppDelayPeer', PATH_HOME . "engine/classes/model/AppDelayPeer.php"); Bootstrap::registerClass('AppDelay', PATH_HOME . "engine/classes/model/AppDelay.php"); Bootstrap::registerClass('BaseAdditionalTables', PATH_HOME . "engine/classes/model/om/BaseAdditionalTables.php"); Bootstrap::registerClass('AdditionalTables', PATH_HOME . "engine/classes/model/AdditionalTables.php"); Bootstrap::registerClass('BaseAppCacheView', PATH_HOME . "engine/classes/model/om/BaseAppCacheView.php"); Bootstrap::registerClass('AppCacheView', PATH_HOME . "engine/classes/model/AppCacheView.php"); Bootstrap::registerClass('AppCacheViewPeer', PATH_HOME . "engine/classes/model/AppCacheViewPeer.php"); Bootstrap::registerClass('BaseEvent', PATH_HOME . "engine/classes/model/om/BaseEvent.php"); Bootstrap::registerClass('Event', PATH_HOME . "engine/classes/model/Event.php"); Bootstrap::registerClass('BaseAppEvent', PATH_HOME . "engine/classes/model/om/BaseAppEvent.php"); Bootstrap::registerClass('AppEvent', PATH_HOME . "engine/classes/model/AppEvent.php"); Bootstrap::registerClass('AppEventPeer', PATH_HOME . "engine/classes/model/AppEventPeer.php"); Bootstrap::registerClass('BaseCaseScheduler', PATH_HOME . "engine/classes/model/om/BaseCaseScheduler.php"); Bootstrap::registerClass('CaseScheduler', PATH_HOME . "engine/classes/model/CaseScheduler.php"); G::LoadClass("case"); G::LoadClass("dates"); G::LoadClass("pmScript"); if (!defined('SYS_SYS')) { $sObject = $argv[1]; $sNow = $argv[2]; $dateSystem = $argv[3]; $sFilter = ''; for ($i = 4; $i <= count($argv) - 1; $i++) { $sFilter .= ' ' . $argv[$i]; } $oDirectory = dir(PATH_DB); if (is_dir(PATH_DB . $sObject)) { saveLog('main', 'action', "checking folder " . PATH_DB . $sObject); if (file_exists(PATH_DB . $sObject . PATH_SEP . 'db.php')) {
require_once PATH_RBAC . 'model' . PATH_SEP . 'UsersRolesPeer.php'; require_once PATH_RBAC . 'model' . PATH_SEP . 'om' . PATH_SEP . 'BaseUsersRoles.php'; require_once PATH_RBAC . 'model' . PATH_SEP . 'UsersRoles.php'; Bootstrap::registerClass('PMLicensedFeatures', PATH_CLASSES . 'class.licensedFeatures.php'); Bootstrap::registerClass('serverConf', PATH_CLASSES . 'class.serverConfiguration.php'); Bootstrap::registerClass('calendar', PATH_CLASSES . 'class.calendar.php'); Bootstrap::registerClass('groups', PATH_CLASSES . 'class.groups.php'); Bootstrap::registerClass('Entity_Base', PATH_HOME . 'engine/classes/entities/Base.php'); Bootstrap::registerClass('Entity_AppSolrQueue', PATH_HOME . 'engine/classes/entities/AppSolrQueue.php'); Bootstrap::registerClass('XMLDB', PATH_HOME . 'engine/classes/class.xmlDb.php'); Bootstrap::registerClass('dynaFormHandler', PATH_GULLIVER . 'class.dynaformhandler.php'); Bootstrap::registerClass('DynaFormField', PATH_HOME . 'engine/classes/class.dynaFormField.php'); Bootstrap::registerClass('SolrRequestData', PATH_HOME . 'engine/classes/entities/SolrRequestData.php'); Bootstrap::registerClass('SolrUpdateDocument', PATH_HOME . 'engine/classes/entities/SolrUpdateDocument.php'); Bootstrap::registerClass('Xml_Node', PATH_GULLIVER . 'class.xmlDocument.php'); Bootstrap::registerClass('wsResponse', PATH_HOME . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'class.wsResponse.php'); /*----------------------------------********---------------------------------*/ G::LoadClass('processes'); G::LoadClass('derivation'); G::LoadClass('dates'); //Load Criteria G::LoadClass('spool'); //Set variables /*----------------------------------********---------------------------------*/ $argvx = ''; for ($i = 8; $i <= count($argv) - 1; $i++) { /*----------------------------------********---------------------------------*/ $argvx = $argvx . ($argvx != '' ? ' ' : '') . $argv[$i]; /*----------------------------------********---------------------------------*/ } //Workflow
//ini_set("memory_limit", $config["memory_limit"]); ini_set("soap.wsdl_cache_enabled", $config["wsdl_cache"]); ini_set("date.timezone", $config["time_zone"]); define("DEBUG_SQL_LOG", $config["debug_sql"]); define("DEBUG_TIME_LOG", $config["debug_time"]); define("DEBUG_CALENDAR_LOG", $config["debug_calendar"]); define("MEMCACHED_ENABLED", $config["memcached"]); define("MEMCACHED_SERVER", $config["memcached_server"]); define("TIME_ZONE", $config["time_zone"]); //require_once(PATH_GULLIVER . PATH_SEP . "class.bootstrap.php"); //define("PATH_GULLIVER_HOME", PATH_TRUNK . "gulliver" . PATH_SEP); spl_autoload_register(array("Bootstrap", "autoloadClass")); //DATABASE propel classes used in "Cases" Options Bootstrap::registerClass("PMLicensedFeatures", PATH_CLASSES . "class.licensedFeatures.php"); Bootstrap::registerClass("calendar", PATH_CLASSES . "class.calendar.php"); Bootstrap::registerClass("wsResponse", PATH_HOME . "engine" . PATH_SEP . "classes" . PATH_SEP . "class.wsResponse.php"); G::LoadClass("processes"); G::LoadClass("derivation"); G::LoadClass("dates"); //Load Criteria //Workflow $workflow = $argv[1]; if (is_dir(PATH_DB . $workflow) && file_exists(PATH_DB . $workflow . PATH_SEP . "db.php")) { define("SYS_SYS", $workflow); include_once PATH_HOME . "engine" . PATH_SEP . "config" . PATH_SEP . "paths_installed.php"; include_once PATH_HOME . "engine" . PATH_SEP . "config" . PATH_SEP . "paths.php"; //PM Paths DATA define("PATH_DATA_SITE", PATH_DATA . "sites/" . SYS_SYS . "/"); define("PATH_DOCUMENT", PATH_DATA_SITE . "files/"); define("PATH_DATA_MAILTEMPLATES", PATH_DATA_SITE . "mailTemplates/"); define("PATH_DATA_PUBLIC", PATH_DATA_SITE . "public/");