Add namespace Processmaker\Core
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
/**
|
||||
* Interface to the Solr Search server
|
||||
*/
|
||||
@@ -61,7 +63,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handlerTotal, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handlerTotal, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -142,7 +144,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handler, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handler, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -190,7 +192,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handler, CURLOPT_BINARYTRANSFER, true); // --data-binary
|
||||
curl_setopt($handler, CURLOPT_POSTFIELDS, $solrUpdateDocument->document); // data
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handler, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -235,7 +237,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handler, CURLOPT_BINARYTRANSFER, true); // --data-binary
|
||||
curl_setopt($handler, CURLOPT_POSTFIELDS, "<commit/>"); // data
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handler, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -280,7 +282,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handler, CURLOPT_BINARYTRANSFER, true); // --data-binary
|
||||
curl_setopt($handler, CURLOPT_POSTFIELDS, "<rollback/>"); // data
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handler, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -325,7 +327,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handler, CURLOPT_BINARYTRANSFER, true); // --data-binary
|
||||
curl_setopt($handler, CURLOPT_POSTFIELDS, "<optimize/>"); // data
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handler, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -366,7 +368,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handler, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handler, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -446,7 +448,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handler, CURLOPT_BINARYTRANSFER, true); // --data-binary
|
||||
curl_setopt($handler, CURLOPT_POSTFIELDS, "<delete><query>*:*</query></delete>"); // data
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handler, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -492,7 +494,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handler, CURLOPT_BINARYTRANSFER, true); // --data-binary
|
||||
curl_setopt($handler, CURLOPT_POSTFIELDS, "<delete><query>" . $idQuery . "</query></delete>"); // data
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handler, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -573,7 +575,7 @@ class BpmnEngineSearchIndexAccessSolr
|
||||
curl_setopt($handler, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($handler, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use \ProcessMaker\BusinessModel\WebEntryEvent;
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
/**
|
||||
@@ -18,7 +19,7 @@ class Cases
|
||||
public function __construct()
|
||||
{
|
||||
//get Solr initialization variables
|
||||
if (($solrConf = PmSystem::solrEnv()) !== false) {
|
||||
if (($solrConf = System::solrEnv()) !== false) {
|
||||
$this->appSolr = new AppSolr($solrConf['solr_enabled'], $solrConf['solr_host'], $solrConf['solr_instance']);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
class DashletRssReader implements DashletInterface
|
||||
{
|
||||
|
||||
@@ -52,7 +54,7 @@ class DashletRssReader implements DashletInterface
|
||||
curl_setopt( $pCurl, CURLOPT_VERBOSE, false );
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt( $pCurl, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : '') );
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
class EnterpriseUtils
|
||||
{
|
||||
public static function getInternetConnection()
|
||||
@@ -39,7 +41,7 @@ class EnterpriseUtils
|
||||
curl_setopt($ch, CURLOPT_VERBOSE, true);
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if (isset($sysConf['proxy_host'])) {
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($ch, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
class P11835 extends Patch
|
||||
{
|
||||
/*
|
||||
@@ -16,7 +18,7 @@ class P11835 extends Patch
|
||||
$rs->next();
|
||||
while($row = $rs->getRow()) {
|
||||
if ($row ['Field'] == "TAS_GROUP_VARIABLE") {
|
||||
$version = PmSystem::getVersion ();
|
||||
$version = System::getVersion ();
|
||||
$version = explode('-',$version);
|
||||
if ($version[0] == '2.5.1') {
|
||||
echo "Version " . $version[0] . " Patch\n";
|
||||
@@ -84,7 +86,7 @@ class P11835 extends Patch
|
||||
$arrayHotfix = $conf->getConfiguration("HOTFIX", "");
|
||||
$arrayHotfix = (is_array($arrayHotfix))? $arrayHotfix : array($arrayHotfix);
|
||||
|
||||
$pmVersion = self::pmVersion(PmSystem::getVersion()) . "";
|
||||
$pmVersion = self::pmVersion(System::getVersion()) . "";
|
||||
|
||||
if (($pmVersion == "2.5.2.4" || $pmVersion == "2.8") && !in_array("15394", $arrayHotfix)) {
|
||||
$cnn = Propel::getConnection("workflow");
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
class PMPluginRegistry
|
||||
@@ -501,7 +503,7 @@ class PMPluginRegistry
|
||||
|
||||
public function uninstallPluginWorkspaces ($arrayPlugin)
|
||||
{
|
||||
$workspace = PmSystem::listWorkspaces();
|
||||
$workspace = System::listWorkspaces();
|
||||
|
||||
foreach ($workspace as $indexWS => $ws) {
|
||||
$wsPathDataSite = PATH_DATA . "sites" . PATH_SEP . $ws->name . PATH_SEP;
|
||||
@@ -1542,7 +1544,7 @@ class PMPluginRegistry
|
||||
if (isset($pluginDetails->aWorkspaces) && is_array($pluginDetails->aWorkspaces) && count($pluginDetails->aWorkspaces) > 0) {
|
||||
$arrayWorkspace = array();
|
||||
|
||||
foreach (PmSystem::listWorkspaces() as $value) {
|
||||
foreach (System::listWorkspaces() as $value) {
|
||||
$workspaceTools = $value;
|
||||
|
||||
$arrayWorkspace[] = $workspaceTools->name;
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
* see CHANGELOG
|
||||
*/
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
/**
|
||||
* Project: Distrubution License Class
|
||||
* File: class.license.lib.php
|
||||
@@ -264,7 +266,7 @@ class Padl
|
||||
}
|
||||
|
||||
// Proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
if (!is_array($params['http'])) {
|
||||
$params['http'] = array();
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
/**
|
||||
* Implementing pmDynaform library in the running case.
|
||||
*
|
||||
@@ -1056,7 +1058,7 @@
|
||||
$javascript = "
|
||||
<script type=\"text/javascript\">
|
||||
var jsondata = " . G::json_encode($json) . ";
|
||||
var httpServerHostname = \"" . PmSystem::getHttpServerHostnameRequestsFrontEnd() . "\";
|
||||
var httpServerHostname = \"" . System::getHttpServerHostnameRequestsFrontEnd() . "\";
|
||||
var pm_run_outside_main_app = \"\";
|
||||
var dyn_uid = \"" . $this->fields["CURRENT_DYNAFORM"] . "\";
|
||||
var __DynaformName__ = \"" . $this->record["PRO_UID"] . "_" . $this->record["DYN_UID"] . "\";
|
||||
@@ -1117,7 +1119,7 @@
|
||||
$javascrip = "" .
|
||||
"<script type='text/javascript'>\n" .
|
||||
"var jsondata = " . G::json_encode($json) . ";\n" .
|
||||
"var httpServerHostname = \"" . PmSystem::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var httpServerHostname = \"" . System::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var pm_run_outside_main_app = null;\n" .
|
||||
"var dyn_uid = '" . $this->fields["CURRENT_DYNAFORM"] . "';\n" .
|
||||
"var __DynaformName__ = '" . $this->record["PRO_UID"] . "_" . $this->record["DYN_UID"] . "';\n" .
|
||||
@@ -1196,7 +1198,7 @@
|
||||
$javascrip = "" .
|
||||
"<script type='text/javascript'>\n" .
|
||||
"var jsondata = " . $this->json_encode($json) . ";\n" .
|
||||
"var httpServerHostname = \"" . PmSystem::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var httpServerHostname = \"" . System::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var pm_run_outside_main_app = '" . $this->fields["PM_RUN_OUTSIDE_MAIN_APP"] . "';\n" .
|
||||
"var dyn_uid = '" . $this->fields["CURRENT_DYNAFORM"] . "';\n" .
|
||||
"var __DynaformName__ = '" . $this->record["PRO_UID"] . "_" . $this->record["DYN_UID"] . "';\n" .
|
||||
@@ -1253,7 +1255,7 @@
|
||||
$javascrip = "
|
||||
<script type=\"text/javascript\">
|
||||
var jsondata = " . G::json_encode($json) . ";
|
||||
var httpServerHostname = \"" . PmSystem::getHttpServerHostnameRequestsFrontEnd() . "\";
|
||||
var httpServerHostname = \"" . System::getHttpServerHostnameRequestsFrontEnd() . "\";
|
||||
var pm_run_outside_main_app = null;
|
||||
var dyn_uid = \"" . $this->fields["CURRENT_DYNAFORM"] . "\";
|
||||
var __DynaformName__ = \"" . $this->fields["PRO_UID"] . "_" . $this->fields["CURRENT_DYNAFORM"] . "\";
|
||||
@@ -1297,7 +1299,7 @@
|
||||
$javascrip = "" .
|
||||
"<script type='text/javascript'>\n" .
|
||||
"var jsondata = " . G::json_encode($json) . ";\n" .
|
||||
"var httpServerHostname = \"" . PmSystem::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var httpServerHostname = \"" . System::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var pm_run_outside_main_app = null;\n" .
|
||||
"var dyn_uid = '" . $this->fields["CURRENT_DYNAFORM"] . "';\n" .
|
||||
"var __DynaformName__ = null;\n" .
|
||||
@@ -1339,7 +1341,7 @@
|
||||
$javascrip = "" .
|
||||
"<script type='text/javascript'>\n" .
|
||||
"var jsondata = " . G::json_encode($json) . ";\n" .
|
||||
"var httpServerHostname = \"" . PmSystem::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var httpServerHostname = \"" . System::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var pm_run_outside_main_app = null;\n" .
|
||||
"var dyn_uid = '" . $this->fields["CURRENT_DYNAFORM"] . "';\n" .
|
||||
"var __DynaformName__ = null;\n" .
|
||||
@@ -1381,7 +1383,7 @@
|
||||
"var pathRTLCss = '" . $this->pathRTLCss . "';\n" .
|
||||
"var delIndex = " . (isset($this->fields["DEL_INDEX"]) ? $this->fields["DEL_INDEX"] : "0") . ";\n" .
|
||||
"var jsonData = " . $this->json_encode($json) . ";\n" .
|
||||
"var httpServerHostname = \"" . PmSystem::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var httpServerHostname = \"" . System::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var leaveCaseWarning = " . $this->getLeaveCaseWarning() . ";\n" .
|
||||
$js .
|
||||
"</script>";
|
||||
@@ -1403,7 +1405,7 @@
|
||||
$javascrip = "" .
|
||||
"<script type='text/javascript'>\n" .
|
||||
"var jsondata = " . G::json_encode($json) . ";\n" .
|
||||
"var httpServerHostname = \"" . PmSystem::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var httpServerHostname = \"" . System::getHttpServerHostnameRequestsFrontEnd() . "\";\n" .
|
||||
"var pm_run_outside_main_app = null;\n" .
|
||||
"var dyn_uid = '" . $currentDynaform . "';\n" .
|
||||
"var __DynaformName__ = null;\n" .
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
class Processes
|
||||
{
|
||||
|
||||
@@ -5771,7 +5773,7 @@ class Processes
|
||||
$endpoint = PML_WSDL_URL;
|
||||
$sessionId = '';
|
||||
$proxy = array();
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
$proxy['proxy_host'] = $sysConf['proxy_host'];
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -5813,7 +5815,7 @@ class Processes
|
||||
ini_set("soap.wsdl_cache_enabled", "0"); // enabling WSDL cache
|
||||
try {
|
||||
$proxy = array();
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
$proxy['proxy_host'] = $sysConf['proxy_host'];
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
@@ -5845,7 +5847,7 @@ class Processes
|
||||
|
||||
$endpoint = PML_WSDL_URL;
|
||||
$proxy = array();
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
$proxy['proxy_host'] = $sysConf['proxy_host'];
|
||||
@@ -5922,7 +5924,7 @@ class Processes
|
||||
|
||||
$endpoint = PML_WSDL_URL;
|
||||
$proxy = array();
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
$proxy['proxy_host'] = $sysConf['proxy_host'];
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
* @link http://www.openmail.cc
|
||||
*/
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
/**
|
||||
* @package workflow.engine.ProcessMaker
|
||||
*/
|
||||
@@ -548,7 +550,7 @@ class SpoolRun
|
||||
*/
|
||||
public function resendEmails($dateResend = null, $cron = 0)
|
||||
{
|
||||
$aConfiguration = PmSystem::getEmailConfiguration();
|
||||
$aConfiguration = System::getEmailConfiguration();
|
||||
|
||||
if (!isset($aConfiguration["MESS_ENABLED"])) {
|
||||
$aConfiguration["MESS_ENABLED"] = '0';
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
class Upgrade
|
||||
{
|
||||
private $addon = null;
|
||||
@@ -90,7 +92,7 @@ class Upgrade
|
||||
G::rm_dir(PATH_C);
|
||||
mkdir(PATH_C, 0777, true);
|
||||
}
|
||||
$workspaces = PmSystem::listWorkspaces();
|
||||
$workspaces = System::listWorkspaces();
|
||||
$count = count($workspaces);
|
||||
$first = true;
|
||||
$num = 0;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Util\FixReferencePath;
|
||||
use ProcessMaker\Plugins\Adapters\PluginAdapter;
|
||||
|
||||
@@ -498,7 +499,7 @@ class WorkspaceTools
|
||||
|
||||
$language = new Language();
|
||||
|
||||
foreach (PmSystem::listPoFiles() as $poFile) {
|
||||
foreach (System::listPoFiles() as $poFile) {
|
||||
$poName = basename($poFile);
|
||||
$names = explode(".", basename($poFile));
|
||||
$extension = array_pop($names);
|
||||
@@ -849,8 +850,8 @@ class WorkspaceTools
|
||||
*/
|
||||
public function upgradePluginsDatabase()
|
||||
{
|
||||
foreach (PmSystem::getPlugins() as $pluginName) {
|
||||
$pluginSchema = PmSystem::getPluginSchema($pluginName);
|
||||
foreach (System::getPlugins() as $pluginName) {
|
||||
$pluginSchema = System::getPluginSchema($pluginName);
|
||||
if ($pluginSchema !== false) {
|
||||
CLI::logging("Updating plugin " . CLI::info($pluginName) . "\n");
|
||||
$this->upgradeSchema($pluginSchema);
|
||||
@@ -869,8 +870,8 @@ class WorkspaceTools
|
||||
$this->initPropel(true);
|
||||
P11835::$dbAdapter = $this->dbAdapter;
|
||||
P11835::isApplicable();
|
||||
$systemSchema = PmSystem::getSystemSchema($this->dbAdapter);
|
||||
$systemSchemaRbac = PmSystem::getSystemSchemaRbac($this->dbAdapter);// get the Rbac Schema
|
||||
$systemSchema = System::getSystemSchema($this->dbAdapter);
|
||||
$systemSchemaRbac = System::getSystemSchemaRbac($this->dbAdapter);// get the Rbac Schema
|
||||
$this->registerSystemTables(array_merge($systemSchema, $systemSchemaRbac));
|
||||
$this->upgradeSchema($systemSchema);
|
||||
$this->upgradeSchema($systemSchemaRbac, false, true, $onedb); // perform Upgrade to Rbac
|
||||
@@ -898,7 +899,7 @@ class WorkspaceTools
|
||||
|
||||
$emailSever = new \ProcessMaker\BusinessModel\EmailServer();
|
||||
|
||||
$emailConfiguration = PmSystem::getEmailConfiguration();
|
||||
$emailConfiguration = System::getEmailConfiguration();
|
||||
|
||||
if (!empty($emailConfiguration)) {
|
||||
$arrayData["MESS_ENGINE"] = $emailConfiguration["MESS_ENGINE"];
|
||||
@@ -993,7 +994,7 @@ class WorkspaceTools
|
||||
|
||||
if (!$onedb) {
|
||||
if ($rbac) {
|
||||
$rename = PmSystem::verifyRbacSchema($workspaceSchema);
|
||||
$rename = System::verifyRbacSchema($workspaceSchema);
|
||||
if (count($rename) > 0) {
|
||||
foreach ($rename as $tableName) {
|
||||
$oDataBase->executeQuery($oDataBase->generateRenameTableSQL($tableName));
|
||||
@@ -1002,7 +1003,7 @@ class WorkspaceTools
|
||||
}
|
||||
}
|
||||
$workspaceSchema = $this->getSchema($rbac);
|
||||
$changes = PmSystem::compareSchema($workspaceSchema, $schema);
|
||||
$changes = System::compareSchema($workspaceSchema, $schema);
|
||||
|
||||
$changed = (count($changes['tablesToAdd']) > 0 || count($changes['tablesToAlter']) > 0 || count($changes['tablesWithNewIndex']) > 0 || count($changes['tablesToAlterIndex']) > 0);
|
||||
|
||||
@@ -1141,7 +1142,7 @@ class WorkspaceTools
|
||||
*/
|
||||
public function getMetadata()
|
||||
{
|
||||
$Fields = array_merge(PmSystem::getSysInfo(), $this->getDBInfo());
|
||||
$Fields = array_merge(System::getSysInfo(), $this->getDBInfo());
|
||||
$Fields['WORKSPACE_NAME'] = $this->name;
|
||||
|
||||
if (isset($this->dbHost)) {
|
||||
@@ -1176,7 +1177,7 @@ class WorkspaceTools
|
||||
*/
|
||||
public static function printSysInfo()
|
||||
{
|
||||
$fields = PmSystem::getSysInfo();
|
||||
$fields = System::getSysInfo();
|
||||
|
||||
$info = array(
|
||||
'ProcessMaker Version' => $fields['PM_VERSION'],
|
||||
@@ -1655,7 +1656,7 @@ class WorkspaceTools
|
||||
throw new Exception("Workspace $srcWorkspace not found in backup");
|
||||
}
|
||||
|
||||
$version = PmSystem::getVersion();
|
||||
$version = System::getVersion();
|
||||
$pmVersion = (preg_match("/^([\d\.]+).*$/", $version, $arrayMatch)) ? $arrayMatch[1] : ""; //Otherwise: Branch master
|
||||
|
||||
CLI::logging(CLI::warning("
|
||||
@@ -1919,7 +1920,7 @@ class WorkspaceTools
|
||||
|
||||
public function backupLogFiles()
|
||||
{
|
||||
$config = PmSystem::getSystemConfiguration();
|
||||
$config = System::getSystemConfiguration();
|
||||
|
||||
clearstatcache();
|
||||
$path = PATH_DATA . "log" . PATH_SEP;
|
||||
@@ -1952,7 +1953,7 @@ class WorkspaceTools
|
||||
$envFile = PATH_CONFIG . 'env.ini';
|
||||
$skin ='neoclassic';
|
||||
if (file_exists($envFile)) {
|
||||
$sysConf = PmSystem::getSystemConfiguration($envFile);
|
||||
$sysConf = System::getSystemConfiguration($envFile);
|
||||
$lang = $sysConf['default_lang'];
|
||||
$skin = $sysConf['default_skin'];
|
||||
}
|
||||
@@ -3525,7 +3526,7 @@ class WorkspaceTools
|
||||
public function migrateIteeToDummytask($workspaceName)
|
||||
{
|
||||
$this->initPropel(true);
|
||||
$arraySystemConfiguration = PmSystem::getSystemConfiguration('', '', $workspaceName);
|
||||
$arraySystemConfiguration = System::getSystemConfiguration('', '', $workspaceName);
|
||||
$conf = new Configurations();
|
||||
\G::$sysSys = $workspaceName;
|
||||
\G::$pathDataSite = PATH_DATA . "sites" . PATH_SEP . \G::$sysSys . PATH_SEP;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
//It works with the table CONFIGURATION in a WF dataBase
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
/**
|
||||
* Copyright (C) 2009 COLOSA
|
||||
@@ -269,7 +270,7 @@ class WsBase
|
||||
try {
|
||||
$solrEnabled = 0;
|
||||
|
||||
if (($solrEnv = PmSystem::solrEnv()) !== false) {
|
||||
if (($solrEnv = System::solrEnv()) !== false) {
|
||||
|
||||
$appSolr = new AppSolr(
|
||||
$solrEnv["solr_enabled"],
|
||||
@@ -872,7 +873,7 @@ class WsBase
|
||||
}
|
||||
}
|
||||
|
||||
$aSetup = (!empty($arrayConfigAux))? $arrayConfigAux : PmSystem::getEmailConfiguration();
|
||||
$aSetup = (!empty($arrayConfigAux))? $arrayConfigAux : System::getEmailConfiguration();
|
||||
|
||||
if (!isset($aSetup['MESS_ENABLED'])) {
|
||||
$aSetup['MESS_ENABLED'] = 1;
|
||||
@@ -881,7 +882,7 @@ class WsBase
|
||||
}
|
||||
} else {
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$aSetup = PmSystem::getEmailConfiguration();
|
||||
$aSetup = System::getEmailConfiguration();
|
||||
/*----------------------------------********---------------------------------*/
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
@@ -2825,7 +2826,7 @@ class WsBase
|
||||
$result->status_code = 0;
|
||||
$result->message = G::loadTranslation( 'ID_SUCESSFUL' );
|
||||
$result->timestamp = date( 'Y-m-d H:i:s' );
|
||||
$result->version = PmSystem::getVersion();
|
||||
$result->version = System::getVersion();
|
||||
$result->operatingSystem = $redhat;
|
||||
$result->webServer = getenv( 'SERVER_SOFTWARE' );
|
||||
$result->serverName = getenv( 'SERVER_NAME' );
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
//
|
||||
// License: LGPL, see LICENSE
|
||||
////////////////////////////////////////////////////
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
use ProcessMaker\Util\ElementTranslation;
|
||||
|
||||
@@ -242,7 +243,7 @@ function executeQuery ($SqlStatement, $DBConnectionUID = 'workflow', $aParameter
|
||||
$aContext = \Bootstrap::getDefaultContextLog();
|
||||
$con = Propel::getConnection( $DBConnectionUID );
|
||||
$con->begin();
|
||||
$blackList = PmSystem::getQueryBlackList();
|
||||
$blackList = System::getQueryBlackList();
|
||||
$aListQueries = explode('|', $blackList['queries']);
|
||||
$aListAllTables = explode(
|
||||
'|',
|
||||
@@ -903,7 +904,7 @@ function WSProcessList ()
|
||||
//private function to get current email configuration
|
||||
function getEmailConfiguration ()
|
||||
{
|
||||
return PmSystem::getEmailConfiguration();
|
||||
return System::getEmailConfiguration();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
*
|
||||
* @package workflow.engine.classes
|
||||
*/
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
require_once "HTTP/WebDAV/Server.php";
|
||||
require_once "System.php";
|
||||
|
||||
@@ -742,7 +745,7 @@ class ProcessMakerWebDav extends HTTP_WebDAV_Server
|
||||
if (is_dir($path)) {
|
||||
$query = "DELETE FROM properties WHERE path LIKE '" . $this->_slashify($options["path"]) . "%'";
|
||||
mysql_query($query);
|
||||
PmSystem::rm("-rf $path");
|
||||
System::rm("-rf $path");
|
||||
} else {
|
||||
unlink($path);
|
||||
}
|
||||
@@ -845,7 +848,7 @@ class ProcessMakerWebDav extends HTTP_WebDAV_Server
|
||||
mysql_query($query);
|
||||
} else {
|
||||
if (is_dir($source)) {
|
||||
$files = PmSystem::find($source);
|
||||
$files = System::find($source);
|
||||
$files = array_reverse($files);
|
||||
} else {
|
||||
$files = array($source
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
require_once 'classes/model/om/BaseAddonsManager.php';
|
||||
@@ -157,7 +158,7 @@ class AddonsManager extends BaseAddonsManager
|
||||
public function getInstalledVersion()
|
||||
{
|
||||
if ($this->isCore()) {
|
||||
return (EnterpriseUtils::pmVersion(PmSystem::getVersion()));
|
||||
return (EnterpriseUtils::pmVersion(System::getVersion()));
|
||||
} else {
|
||||
if ($this->isPlugin()) {
|
||||
if (!$this->isInstalled()) {
|
||||
@@ -243,7 +244,7 @@ class AddonsManager extends BaseAddonsManager
|
||||
);
|
||||
|
||||
// Proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
if (!is_array($option['http'])) {
|
||||
$option['http'] = array();
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
require_once 'classes/model/om/BaseAddonsStore.php';
|
||||
@@ -489,7 +490,7 @@ class AddonsStore extends BaseAddonsStore
|
||||
"header" => "Content-type: application/x-www-form-urlencoded\r\n",
|
||||
"content" => http_build_query(
|
||||
array(
|
||||
"pmVersion" => PmSystem::getVersion(),
|
||||
"pmVersion" => System::getVersion(),
|
||||
"version" => STORE_VERSION
|
||||
)
|
||||
)
|
||||
@@ -497,7 +498,7 @@ class AddonsStore extends BaseAddonsStore
|
||||
);
|
||||
|
||||
// Proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if (isset($sysConf['proxy_host'])) {
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
if (!is_array($option['http'])) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
//require_once 'classes/model/om/BaseAppNotes.php';
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'APP_NOTES' table.
|
||||
@@ -148,7 +149,7 @@ class AppNotes extends BaseAppNotes
|
||||
{
|
||||
try {
|
||||
|
||||
$aConfiguration = PmSystem::getEmailConfiguration();
|
||||
$aConfiguration = System::getEmailConfiguration();
|
||||
|
||||
$msgError = "";
|
||||
if (! isset( $aConfiguration['MESS_ENABLED'] ) || $aConfiguration['MESS_ENABLED'] != '1') {
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
class Language extends BaseLanguage
|
||||
{
|
||||
private static $arrayRecord = array();
|
||||
@@ -355,7 +358,7 @@ class Language extends BaseLanguage
|
||||
$sLanguage = $langRecord['LAN_NAME'];
|
||||
|
||||
//setting headers
|
||||
$poFile->addHeader( 'Project-Id-Version', 'ProcessMaker ' . PmSystem::getVersion() );
|
||||
$poFile->addHeader( 'Project-Id-Version', 'ProcessMaker ' . System::getVersion() );
|
||||
$poFile->addHeader( 'POT-Creation-Date', '' );
|
||||
$poFile->addHeader( 'PO-Revision-Date', date( 'Y-m-d H:i:s' ) );
|
||||
$poFile->addHeader( 'Last-Translator', '' );
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
* @GPL 2007, Plymouth State University, ITS
|
||||
*/
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
/**
|
||||
* zimbra.class.php
|
||||
*
|
||||
@@ -206,7 +208,7 @@ class Zimbra
|
||||
curl_setopt($this->_curl, CURLOPT_SSL_VERIFYHOST, false);
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($this->_curl, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
/**
|
||||
* class.pmSugar.pmFunctions.php
|
||||
*
|
||||
@@ -22,7 +24,7 @@ function getSoapClientOptions ()
|
||||
$options = array ('trace' => 1);
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
$options['proxy_host'] = $sysConf['proxy_host'];
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
//
|
||||
// License: LGPL, see LICENSE
|
||||
////////////////////////////////////////////////////
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
|
||||
/**
|
||||
@@ -47,7 +48,7 @@ function executeTalendWebservice ($wsdl, $message, $params = array())
|
||||
) );
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt( $client, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : '') );
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
//
|
||||
// License: LGPL, see LICENSE
|
||||
////////////////////////////////////////////////////
|
||||
use ProcessMaker\Core\System;
|
||||
|
||||
|
||||
/**
|
||||
@@ -401,7 +402,7 @@ function uploadZimbraFile($ServerUrl, $username, $preAuthKey, $folderName, $file
|
||||
curl_setopt ($ch, CURLOPT_HTTPHEADER,$header_array);
|
||||
|
||||
//Apply proxy settings
|
||||
$sysConf = PmSystem::getSystemConfiguration();
|
||||
$sysConf = System::getSystemConfiguration();
|
||||
if ($sysConf['proxy_host'] != '') {
|
||||
curl_setopt($ch, CURLOPT_PROXY, $sysConf['proxy_host'] . ($sysConf['proxy_port'] != '' ? ':' . $sysConf['proxy_port'] : ''));
|
||||
if ($sysConf['proxy_port'] != '') {
|
||||
|
||||
Reference in New Issue
Block a user