From 12c44b5ff1b3fa3403bc6c8758b7ad2a0a0c272d Mon Sep 17 00:00:00 2001 From: "Marco A. Nina Mena" Date: Fri, 11 Aug 2017 12:08:19 -0400 Subject: [PATCH 1/5] change name class --- workflow/engine/classes/DashletRssReader.php | 5 +-- workflow/engine/classes/Dates.php | 33 +------------------- workflow/engine/classes/DbConnections.php | 13 ++------ workflow/engine/classes/Derivation.php | 10 +----- workflow/engine/classes/DynaformEditor.php | 32 +------------------ 5 files changed, 6 insertions(+), 87 deletions(-) diff --git a/workflow/engine/classes/DashletRssReader.php b/workflow/engine/classes/DashletRssReader.php index 5006b170e..d00e4d543 100644 --- a/workflow/engine/classes/DashletRssReader.php +++ b/workflow/engine/classes/DashletRssReader.php @@ -1,9 +1,6 @@ . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * / - * - * /* - * Created on 21/01/2008 - * This -/** - * - * @package workflow.engine.classes - */class dates +class Dates { private $holidays = array(); diff --git a/workflow/engine/classes/DbConnections.php b/workflow/engine/classes/DbConnections.php index 28ac7788b..76332fe50 100644 --- a/workflow/engine/classes/DbConnections.php +++ b/workflow/engine/classes/DbConnections.php @@ -1,15 +1,6 @@ - * Description:This is a -/** - * dbConnections - * - * - * @copyright 2008 Colosa - * @package workflow.engine.classes - * - */class DbConnections + +class DbConnections { private $PRO_UID; public $connections; diff --git a/workflow/engine/classes/Derivation.php b/workflow/engine/classes/Derivation.php index 8ebabe561..8e5326f42 100644 --- a/workflow/engine/classes/Derivation.php +++ b/workflow/engine/classes/Derivation.php @@ -1,13 +1,6 @@ . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ -/** - * Created on 21/12/2007 - * Dynaform - Dynaform -/** - * - * @package workflow.engine.classes - */class dynaformEditor extends WebResource +class DynaformEditor extends WebResource { private $isOldCopy = false; From 48cad5f1b2af6933762d0658da9b7dee7988e474 Mon Sep 17 00:00:00 2001 From: "Marco A. Nina Mena" Date: Fri, 11 Aug 2017 12:19:39 -0400 Subject: [PATCH 2/5] files --- .../engine/classes/PMLicensedFeatures.php | 4 -- workflow/engine/classes/PMPluginRegistry.php | 43 +------------------ workflow/engine/classes/PMmemcached.php | 33 +------------- workflow/engine/classes/Padl.php | 3 +- workflow/engine/classes/Patch.php | 7 +-- 5 files changed, 5 insertions(+), 85 deletions(-) diff --git a/workflow/engine/classes/PMLicensedFeatures.php b/workflow/engine/classes/PMLicensedFeatures.php index 71d2f181a..245dc98c3 100644 --- a/workflow/engine/classes/PMLicensedFeatures.php +++ b/workflow/engine/classes/PMLicensedFeatures.php @@ -335,10 +335,6 @@ class PMLicensedFeatures /*----------------------------------********---------------------------------*/ public function verifyfeature ($featureName) { - if (!class_exists("pmLicenseManager")) { - require_once ("classes" . PATH_SEP . "class.pmLicenseManager.php"); - } - $licenseManager = pmLicenseManager::getSingleton(false); $_SESSION['__sw__'] = true; diff --git a/workflow/engine/classes/PMPluginRegistry.php b/workflow/engine/classes/PMPluginRegistry.php index 5197975a6..85e47a4e4 100644 --- a/workflow/engine/classes/PMPluginRegistry.php +++ b/workflow/engine/classes/PMPluginRegistry.php @@ -1,45 +1,7 @@ . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ - use ProcessMaker\Plugins\PluginRegistry; -/** - * - * @package workflow.engine.classes - */ - -require_once 'class.plugin.php'; - - - -/** - * - * @package workflow.engine.classes - */class PMPluginRegistry +class PMPluginRegistry { private $_aPluginDetails = array (); private $_aPlugins = array (); @@ -1137,9 +1099,6 @@ require_once 'class.plugin.php'; public function setupPlugins () { try { - require_once(PATH_CORE . "methods" . PATH_SEP . "enterprise" . PATH_SEP . "enterprise.php"); - require_once("class.serverConfiguration.php"); - $iPlugins = 0; $oServerConf = & serverConf::getSingleton(); $oServerConf->addPlugin( SYS_SYS, $this->_aPluginDetails ); diff --git a/workflow/engine/classes/PMmemcached.php b/workflow/engine/classes/PMmemcached.php index 9b34ed7d8..74098d33c 100644 --- a/workflow/engine/classes/PMmemcached.php +++ b/workflow/engine/classes/PMmemcached.php @@ -1,37 +1,6 @@ . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ -/** - * The ProcessMaker memcached -/** - * The ProcessMaker memcached class - * - * @package workflow.engine.ProcessMaker - */class PMmemcached +class PMmemcached { const ONE_MINUTE = 60; const ONE_HOUR = 3600; diff --git a/workflow/engine/classes/Padl.php b/workflow/engine/classes/Padl.php index dfa760ebd..9f18840d0 100644 --- a/workflow/engine/classes/Padl.php +++ b/workflow/engine/classes/Padl.php @@ -53,7 +53,8 @@ * @version 0.1 * @history--------------------------------------------- * see CHANGELOG - */class padl + */ +class Padl { /** * hash key 1 used to encrypt the generate key data. diff --git a/workflow/engine/classes/Patch.php b/workflow/engine/classes/Patch.php index 597a1cf02..1ebd9ddb7 100644 --- a/workflow/engine/classes/Patch.php +++ b/workflow/engine/classes/Patch.php @@ -5,12 +5,7 @@ * @author reav * */ - -/** - * class, helping to set some not desirable settings but necesary - * @author reav - * - */abstract class patch +abstract class Patch { static protected $isPathchable = false; static public $dbAdapter = 'mysql'; From 6e1651247895a20a9287eb18684518177770173c Mon Sep 17 00:00:00 2001 From: "Marco A. Nina Mena" Date: Fri, 11 Aug 2017 12:27:06 -0400 Subject: [PATCH 3/5] Change files --- .../engine/classes/PMLicensedFeatures.php | 1 - .../engine/classes/WsCreateUserResponse.php | 37 +-------------- .../engine/classes/WsGetCaseNotesResponse.php | 37 +-------------- .../engine/classes/WsGetVariableResponse.php | 37 +-------------- workflow/engine/classes/WsResponse.php | 36 +-------------- workflow/engine/classes/XMLConnection.php | 46 +------------------ 6 files changed, 5 insertions(+), 189 deletions(-) diff --git a/workflow/engine/classes/PMLicensedFeatures.php b/workflow/engine/classes/PMLicensedFeatures.php index 245dc98c3..edec26a53 100644 --- a/workflow/engine/classes/PMLicensedFeatures.php +++ b/workflow/engine/classes/PMLicensedFeatures.php @@ -1,6 +1,5 @@ . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ - -/** - * - * @package workflow.engine.classes - */ - - -/** - * Class wsCreateUserResponse - * - * @package workflow.engine.classes - */class wsCreateUserResponse +class WsCreateUserResponse { public $status_code = 0; public $message = ''; diff --git a/workflow/engine/classes/WsGetCaseNotesResponse.php b/workflow/engine/classes/WsGetCaseNotesResponse.php index cbf612504..eb8fa7f6e 100644 --- a/workflow/engine/classes/WsGetCaseNotesResponse.php +++ b/workflow/engine/classes/WsGetCaseNotesResponse.php @@ -1,41 +1,6 @@ . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ - -/** - * - * @package workflow.engine.classes - */ - - -/** - * Class wsGetCaseNotesResponse - * - * @package workflow.engine.classes - */class wsGetCaseNotesResponse +class WsGetCaseNotesResponse { public $status_code = 0; public $message = ''; diff --git a/workflow/engine/classes/WsGetVariableResponse.php b/workflow/engine/classes/WsGetVariableResponse.php index 0c08c76b6..8f2501dd1 100644 --- a/workflow/engine/classes/WsGetVariableResponse.php +++ b/workflow/engine/classes/WsGetVariableResponse.php @@ -1,41 +1,6 @@ . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ - -/** - * - * @package workflow.engine.classes - */ - - -/** - * Class wsGetVariableResponse - * - * @package workflow.engine.classes - */class wsGetVariableResponse +class WsGetVariableResponse { public $status_code = 0; public $message = ''; diff --git a/workflow/engine/classes/WsResponse.php b/workflow/engine/classes/WsResponse.php index d113695b3..ea6cc4e92 100644 --- a/workflow/engine/classes/WsResponse.php +++ b/workflow/engine/classes/WsResponse.php @@ -1,40 +1,6 @@ . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - */ - -/** - * - * @package workflow.engine.classes - */ - - -/** - * - * @package workflow.engine.classes - */class wsResponse +class WsResponse { public $status_code = 0; public $message = ''; diff --git a/workflow/engine/classes/XMLConnection.php b/workflow/engine/classes/XMLConnection.php index 0a1f36ff7..3bb13096f 100644 --- a/workflow/engine/classes/XMLConnection.php +++ b/workflow/engine/classes/XMLConnection.php @@ -1,50 +1,6 @@ . - * - * For more information, contact Colosa Inc, 2566 Le Jeune Rd., - * Coral Gables, FL, 33134, USA, or email info@colosa.com. - * - */ - -/** - * XMLDB - * - * ProcessMaker Open Source Edition - * - * @copyright (C) 2004 - 2008 Colosa Inc.23 - * @package workflow.engine.ProcessMaker - * - */ - -/** - * XMLConnection - * - * ProcessMaker Open Source Edition - * - * @copyright (C) 2004 - 2008 Colosa Inc.23 - * @package workflow.engine.ProcessMaker - * - */class XMLConnection +class XMLConnection { var $phptype = 'myxml'; var $caseFolding = true; From 19b6b745c1f4cb665a6d88fc93fa604dcdf2fc7f Mon Sep 17 00:00:00 2001 From: "Marco A. Nina Mena" Date: Fri, 11 Aug 2017 13:13:25 -0400 Subject: [PATCH 4/5] triggers --- .../engine/classes/triggers/PmTrSharepointClass.php | 8 +------- workflow/engine/classes/triggers/Wscaller.php | 10 +--------- workflow/engine/classes/triggers/api/Zimbra.php | 3 ++- 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/workflow/engine/classes/triggers/PmTrSharepointClass.php b/workflow/engine/classes/triggers/PmTrSharepointClass.php index c89137764..5ec7fdaf3 100644 --- a/workflow/engine/classes/triggers/PmTrSharepointClass.php +++ b/workflow/engine/classes/triggers/PmTrSharepointClass.php @@ -1,12 +1,6 @@ * @GPL 2007, Plymouth State University, ITS - */class Zimbra + */ +class Zimbra { public $debug = false; From 4e6d07b174191dce9eef8cf3a8d7008361138cfc Mon Sep 17 00:00:00 2001 From: "Marco A. Nina Mena" Date: Fri, 11 Aug 2017 13:59:48 -0400 Subject: [PATCH 5/5] rename file --- workflow/engine/classes/triggers/{Wscaller.php => WsCaller.php} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename workflow/engine/classes/triggers/{Wscaller.php => WsCaller.php} (99%) diff --git a/workflow/engine/classes/triggers/Wscaller.php b/workflow/engine/classes/triggers/WsCaller.php similarity index 99% rename from workflow/engine/classes/triggers/Wscaller.php rename to workflow/engine/classes/triggers/WsCaller.php index 4cdbdb89a..6e1b852df 100644 --- a/workflow/engine/classes/triggers/Wscaller.php +++ b/workflow/engine/classes/triggers/WsCaller.php @@ -1,6 +1,6 @@