change
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
class Applications
|
||||
{
|
||||
/**
|
||||
@@ -1133,12 +1136,12 @@ class Applications
|
||||
$caseSteps = $step->getAllCaseSteps( $proUid, $tasUid, $appUid );
|
||||
|
||||
//getting externals steps
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$eSteps = $oPluginRegistry->getSteps();
|
||||
$externalSteps = array ();
|
||||
|
||||
/** @var \ProcessMaker\Plugins\Interfaces\StepDetail $externalStep */
|
||||
foreach ($eSteps as $externalStep) {
|
||||
$externalSteps[$externalStep->sStepId] = $externalStep;
|
||||
$externalSteps[$externalStep->getStepId()] = $externalStep;
|
||||
}
|
||||
|
||||
//getting the case record
|
||||
@@ -1195,11 +1198,11 @@ class Applications
|
||||
break;
|
||||
case 'EXTERNAL':
|
||||
$stepTitle = 'unknown ' . $caseStep->getStepUidObj();
|
||||
$oPluginRegistry = PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$externalStep = $externalSteps[$caseStep->getStepUidObj()];
|
||||
$stepItem['id'] = $externalStep->sStepId;
|
||||
$stepItem['title'] = $externalStep->sStepTitle;
|
||||
$stepItem['url'] = "cases/cases_Step?UID={$externalStep->sStepId}&TYPE=EXTERNAL&POSITION=$stepPosition&ACTION=EDIT";
|
||||
$stepItem['id'] = $externalStep->getStepId();
|
||||
$stepItem['title'] = $externalStep->getStepTitle();
|
||||
$stepItem['url'] = "cases/cases_Step?UID={$externalStep->getStepId()}&TYPE=EXTERNAL&POSITION=$stepPosition&ACTION=EDIT";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
/**
|
||||
* A Cases object where you can do start, load, update, refresh about cases
|
||||
@@ -2267,7 +2268,7 @@ class Cases
|
||||
$newValues['APP_TITLE'],
|
||||
$sUsrUid
|
||||
);
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$oPluginRegistry->executeTriggers(PM_CREATE_CASE, $folderData);
|
||||
}
|
||||
$this->getExecuteTriggerProcess($sAppUid, 'CREATE');
|
||||
@@ -3539,7 +3540,7 @@ class Cases
|
||||
$_SESSION['PROCESS'], $sApplicationUID, $_SESSION['TASK'], $_SESSION['USER_LOGGED'], $ACTION = 'DELETE'
|
||||
);
|
||||
$listing = false;
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
if ($oPluginRegistry->existsTrigger(PM_CASE_DOCUMENT_LIST)) {
|
||||
$folderData = new folderData(null, null, $sApplicationUID, null, $_SESSION['USER_LOGGED']);
|
||||
$folderData->PMType = "INPUT";
|
||||
@@ -3880,7 +3881,7 @@ class Cases
|
||||
}
|
||||
|
||||
//Plugin Hook PM_UPLOAD_DOCUMENT for upload document
|
||||
$pluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$pluginRegistry = PluginRegistry::loadSingleton();
|
||||
|
||||
if ($pluginRegistry->existsTrigger(PM_UPLOAD_DOCUMENT) && class_exists("uploadDocumentData")) {
|
||||
$triggerDetail = $pluginRegistry->getTriggerInfo(PM_UPLOAD_DOCUMENT);
|
||||
@@ -4637,12 +4638,11 @@ class Cases
|
||||
$confEnvSetting = $conf->getFormats();
|
||||
|
||||
$listing = false;
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
if ($oPluginRegistry->existsTrigger(PM_CASE_DOCUMENT_LIST)) {
|
||||
$folderData = new folderData(null, null, $sApplicationUID, null, $sUserUID);
|
||||
$folderData->PMType = "INPUT";
|
||||
$folderData->returnList = true;
|
||||
//$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$listing = $oPluginRegistry->executeTriggers(PM_CASE_DOCUMENT_LIST, $folderData);
|
||||
}
|
||||
|
||||
@@ -4944,12 +4944,11 @@ class Cases
|
||||
|
||||
$confEnvSetting = $conf->getFormats();
|
||||
$listing = false;
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
if ($oPluginRegistry->existsTrigger(PM_CASE_DOCUMENT_LIST)) {
|
||||
$folderData = new folderData(null, null, $sApplicationUID, null, $sUserUID);
|
||||
$folderData->PMType = "OUTPUT";
|
||||
$folderData->returnList = true;
|
||||
//$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$listing = $oPluginRegistry->executeTriggers(PM_CASE_DOCUMENT_LIST, $folderData);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
require_once 'class.pluginRegistry.php';
|
||||
|
||||
define('G_PLUGIN_CLASS', 1);
|
||||
@@ -84,9 +86,8 @@ class PMPlugin
|
||||
*/
|
||||
public function registerMenu($menuId, $menuFilename)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$sMenuFilename = ($this->sClassName == 'enterprisePlugin') ? PATH_CORE . 'methods' . PATH_SEP . 'enterprise' . PATH_SEP . $menuFilename : PATH_PLUGINS . $this->sPluginFolder . PATH_SEP . $menuFilename;
|
||||
$oPluginRegistry->registerMenu($this->sNamespace, $menuId, $sMenuFilename);
|
||||
PluginRegistry::loadSingleton()->registerMenu($this->sNamespace, $menuId, $sMenuFilename);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -96,8 +97,7 @@ class PMPlugin
|
||||
*/
|
||||
public function registerDashlets()
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerDashlets($this->sNamespace);
|
||||
PluginRegistry::loadSingleton()->registerDashlets($this->sNamespace);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -107,8 +107,7 @@ class PMPlugin
|
||||
*/
|
||||
public function registerReport()
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerReport($this->sNamespace);
|
||||
PluginRegistry::loadSingleton()->registerReport($this->sNamespace);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -118,8 +117,7 @@ class PMPlugin
|
||||
*/
|
||||
public function registerPmFunction()
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerPmFunction($this->sNamespace);
|
||||
PluginRegistry::loadSingleton()->registerPmFunction($this->sNamespace);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -129,8 +127,7 @@ class PMPlugin
|
||||
*/
|
||||
public function setCompanyLogo($filename)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->setCompanyLogo($this->sNamespace, $filename);
|
||||
PluginRegistry::loadSingleton()->setCompanyLogo($this->sNamespace, $filename);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -140,8 +137,7 @@ class PMPlugin
|
||||
*/
|
||||
public function redirectLogin($role, $pathMethod)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerRedirectLogin($this->sNamespace, $role, $pathMethod);
|
||||
PluginRegistry::loadSingleton()->registerRedirectLogin($this->sNamespace, $role, $pathMethod);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -151,8 +147,7 @@ class PMPlugin
|
||||
*/
|
||||
public function registerFolder($sFolderId, $sFolderName)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerFolder($this->sNamespace, $sFolderId, $sFolderName);
|
||||
PluginRegistry::loadSingleton()->registerFolder($this->sNamespace, $sFolderId, $sFolderName);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -162,8 +157,7 @@ class PMPlugin
|
||||
*/
|
||||
public function registerStep($sStepId, $sStepName, $sStepTitle, $sSetupStepPage = '')
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerStep( $this->sNamespace, $sStepId, $sStepName, $sStepTitle, $sSetupStepPage );
|
||||
PluginRegistry::loadSingleton()->registerStep( $this->sNamespace, $sStepId, $sStepName, $sStepTitle, $sSetupStepPage );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -174,8 +168,7 @@ class PMPlugin
|
||||
*/
|
||||
public function registerTrigger($sTriggerId, $sTriggerName)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerTrigger($this->sNamespace, $sTriggerId, $sTriggerName);
|
||||
PluginRegistry::loadSingleton()->registerTrigger($this->sNamespace, $sTriggerId, $sTriggerName);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -243,9 +236,8 @@ class PMPlugin
|
||||
*/
|
||||
public function registerBreakPageTemplate($pageId, $templateFilename)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$sPageFilename = PATH_PLUGINS . $this->sPluginFolder . PATH_SEP . $templateFilename;
|
||||
$oPluginRegistry->registerBreakPageTemplate ($this->sNamespace, $pageId, $sPageFilename);
|
||||
PluginRegistry::loadSingleton()->registerBreakPageTemplate ($this->sNamespace, $pageId, $sPageFilename);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -255,8 +247,7 @@ class PMPlugin
|
||||
*/
|
||||
public function registerCss($sCssFile)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerCss($this->sNamespace, $sCssFile);
|
||||
PluginRegistry::loadSingleton()->registerCss($this->sNamespace, $sCssFile);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -267,9 +258,8 @@ class PMPlugin
|
||||
*/
|
||||
public function registerToolbarFile($sToolbarId, $filename)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$sFilename = PATH_PLUGINS . $this->sPluginFolder . PATH_SEP . $filename;
|
||||
$oPluginRegistry->registerToolbarFile($this->sNamespace, $sToolbarId, $sFilename);
|
||||
PluginRegistry::loadSingleton()->registerToolbarFile($this->sNamespace, $sToolbarId, $sFilename);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -284,8 +274,7 @@ class PMPlugin
|
||||
$sActionExecute,
|
||||
$sActionGetFields
|
||||
) {
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerCaseSchedulerPlugin(
|
||||
PluginRegistry::loadSingleton()->registerCaseSchedulerPlugin(
|
||||
$this->sNamespace, $sActionId, $sActionForm, $sActionSave, $sActionExecute, $sActionGetFields
|
||||
);
|
||||
}
|
||||
@@ -297,8 +286,7 @@ class PMPlugin
|
||||
*/
|
||||
public function registerTaskExtendedProperty($sPage, $sName, $sIcon="")
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerTaskExtendedProperty ( $this->sNamespace, $sPage, $sName, $sIcon );
|
||||
PluginRegistry::loadSingleton()->registerTaskExtendedProperty ( $this->sNamespace, $sPage, $sName, $sIcon );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -309,8 +297,7 @@ class PMPlugin
|
||||
*/
|
||||
function registerJavascript($sCoreJsFile, $pluginJsFile)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerJavascript($this->sNamespace, $sCoreJsFile, $pluginJsFile);
|
||||
PluginRegistry::loadSingleton()->registerJavascript($this->sNamespace, $sCoreJsFile, $pluginJsFile);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -321,8 +308,7 @@ class PMPlugin
|
||||
*/
|
||||
public function unregisterJavascript($sCoreJsFile, $pluginJsFile)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->unregisterJavascript($this->sNamespace, $sCoreJsFile, $pluginJsFile);
|
||||
PluginRegistry::loadSingleton()->unregisterJavascript($this->sNamespace, $sCoreJsFile, $pluginJsFile);
|
||||
}
|
||||
|
||||
public function registerDashboard()
|
||||
@@ -331,8 +317,7 @@ class PMPlugin
|
||||
|
||||
public function getExternalStepAction()
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
return $oPluginRegistry->getSteps();
|
||||
return PluginRegistry::loadSingleton()->getSteps();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -345,8 +330,7 @@ class PMPlugin
|
||||
*/
|
||||
function registerRestService()
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerRestService($this->sNamespace);
|
||||
PluginRegistry::loadSingleton()->registerRestService($this->sNamespace);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -356,8 +340,7 @@ class PMPlugin
|
||||
*/
|
||||
function registerExtendsRestService($className)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerExtendsRestService($this->sNamespace, $className);
|
||||
PluginRegistry::loadSingleton()->registerExtendsRestService($this->sNamespace, $className);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -367,8 +350,7 @@ class PMPlugin
|
||||
*/
|
||||
function disableExtendsRestService($className)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->disableExtendsRestService($this->sNamespace, $className);
|
||||
PluginRegistry::loadSingleton()->disableExtendsRestService($this->sNamespace, $className);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -381,8 +363,7 @@ class PMPlugin
|
||||
*/
|
||||
function unregisterRestService($classname, $path)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->unregisterRestService($this->sNamespace, $classname, $path);
|
||||
PluginRegistry::loadSingleton()->unregisterRestService($this->sNamespace, $classname, $path);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -392,14 +373,12 @@ class PMPlugin
|
||||
*/
|
||||
public function registerCronFile($cronFile)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerCronFile($this->sNamespace, $cronFile);
|
||||
PluginRegistry::loadSingleton()->registerCronFile($this->sNamespace, $cronFile);
|
||||
}
|
||||
|
||||
function enableRestService($enable)
|
||||
{
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->enableRestService($this->sNamespace, $enable);
|
||||
PluginRegistry::loadSingleton()->enableRestService($this->sNamespace, $enable);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -412,8 +391,7 @@ class PMPlugin
|
||||
public function registerDesignerMenu($file)
|
||||
{
|
||||
try {
|
||||
$pluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$pluginRegistry->registerDesignerMenu($this->sNamespace, $file);
|
||||
PluginRegistry::loadSingleton()->registerDesignerMenu($this->sNamespace, $file);
|
||||
} catch (Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
@@ -431,8 +409,7 @@ class PMPlugin
|
||||
public function registerMenuOptionsToReplace($from = array(), $options = array())
|
||||
{
|
||||
try {
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerMenuOptionsToReplace($this->sNamespace, $from, $options);
|
||||
PluginRegistry::loadSingleton()->registerMenuOptionsToReplace($this->sNamespace, $from, $options);
|
||||
} catch (Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
@@ -448,8 +425,7 @@ class PMPlugin
|
||||
public function registerImportProcessCallback($callBackFile = '')
|
||||
{
|
||||
try {
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerImportProcessCallback($this->sNamespace, $callBackFile);
|
||||
PluginRegistry::loadSingleton()->registerImportProcessCallback($this->sNamespace, $callBackFile);
|
||||
} catch (Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
@@ -465,8 +441,7 @@ class PMPlugin
|
||||
public function registerOpenReassignCallback($callBackFile = '')
|
||||
{
|
||||
try {
|
||||
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry->registerOpenReassignCallback($callBackFile);
|
||||
PluginRegistry::loadSingleton()->registerOpenReassignCallback($callBackFile);
|
||||
} catch (Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
@@ -484,8 +459,7 @@ class PMPlugin
|
||||
$scope = '/plugin/' . $this->sNamespace . '/';
|
||||
}
|
||||
try {
|
||||
$pluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$pluginRegistry->registerDesignerSourcePath($this->sNamespace, $scope . $pathFile);
|
||||
PluginRegistry::loadSingleton()->registerDesignerSourcePath($this->sNamespace, $scope . $pathFile);
|
||||
} catch (Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ class PMPluginRegistry
|
||||
*/
|
||||
public static function getSingleton()
|
||||
{
|
||||
return \ProcessMaker\Plugins\PluginsRegistry::loadSingleton();
|
||||
return \ProcessMaker\Plugins\PluginRegistry::loadSingleton();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -154,7 +154,7 @@ class PMPluginRegistry
|
||||
*/
|
||||
public static function loadSingleton($file)
|
||||
{
|
||||
return \ProcessMaker\Plugins\PluginsRegistry::loadSingleton();
|
||||
return \ProcessMaker\Plugins\PluginRegistry::loadSingleton();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
require_once 'classes/interfaces/dashletInterface.php';
|
||||
require_once 'classes/model/Dashlet.php';
|
||||
require_once 'classes/model/DashletInstance.php';
|
||||
@@ -361,7 +363,7 @@ class PMDashlet extends DashletInstance implements DashletInterface
|
||||
|
||||
//---- verify the name plugin of the class
|
||||
$pluginName = '';
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$pluginsDashlets = $oPluginRegistry->getDashlets();
|
||||
|
||||
foreach ($pluginsDashlets as $pluginDashlet) {
|
||||
@@ -381,12 +383,8 @@ class PMDashlet extends DashletInstance implements DashletInterface
|
||||
if (strpos( $file, '.php', 1 ) && is_file( PATH_PLUGINS . $file )) {
|
||||
include_once (PATH_PLUGINS . $file);
|
||||
$pluginDetail = $oPluginRegistry->getPluginDetails( $file );
|
||||
if ($pluginDetail->sNamespace == $pluginName) {
|
||||
if ($pluginDetail->enabled == '1') {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
if ($pluginDetail->getNamespace() == $pluginName) {
|
||||
return $pluginDetail->isEnabled();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -398,7 +396,7 @@ class PMDashlet extends DashletInstance implements DashletInterface
|
||||
|
||||
private static function setIncludePath ()
|
||||
{
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$pluginsDashlets = $oPluginRegistry->getDashlets();
|
||||
foreach ($pluginsDashlets as $pluginDashlet) {
|
||||
set_include_path( get_include_path() . PATH_SEPARATOR . PATH_PLUGINS . $pluginDashlet . PATH_SEP );
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
//
|
||||
// License: LGPL, see LICENSE
|
||||
////////////////////////////////////////////////////
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
use ProcessMaker\Util\ElementTranslation;
|
||||
|
||||
|
||||
@@ -248,9 +249,6 @@ function executeQuery ($SqlStatement, $DBConnectionUID = 'workflow', $aParameter
|
||||
((isset($blackList['tables']))? $blackList['tables'] : '') .
|
||||
((isset($blackList['pmtables']))? $blackList['pmtables'] : '')
|
||||
);
|
||||
if (!class_exists('PHPSQLParser')) {
|
||||
|
||||
}
|
||||
$parseSqlStm = new PHPSQLParser($SqlStatement);
|
||||
try {
|
||||
//Parsing queries and check the blacklist
|
||||
@@ -1840,10 +1838,11 @@ function PMFGenerateOutputDocument ($outputID, $sApplication = null, $index = nu
|
||||
|
||||
//Plugin Hook PM_UPLOAD_DOCUMENT for upload document
|
||||
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
if ($oPluginRegistry->existsTrigger( PM_UPLOAD_DOCUMENT ) && class_exists( 'uploadDocumentData' )) {
|
||||
/** @var \ProcessMaker\Plugins\Interfaces\TriggerDetail $triggerDetail */
|
||||
$triggerDetail = $oPluginRegistry->getTriggerInfo( PM_UPLOAD_DOCUMENT );
|
||||
$aFields['APP_DOC_PLUGIN'] = $triggerDetail->sNamespace;
|
||||
$aFields['APP_DOC_PLUGIN'] = $triggerDetail->getNamespace();
|
||||
|
||||
$oAppDocument1 = new AppDocument();
|
||||
$oAppDocument1->update( $aFields );
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
require_once PATH_CORE . 'classes' . PATH_SEP . 'class.enterpriseUtils.php';
|
||||
|
||||
/**
|
||||
@@ -133,20 +136,20 @@ class pmLicenseManager
|
||||
if ($this->result=="OK") {
|
||||
//Disable
|
||||
if (file_exists ( PATH_PLUGINS . 'enterprise/data/data' )) {
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton ();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$aPlugins = unserialize ( trim ( file_get_contents ( PATH_PLUGINS . 'enterprise/data/data' ) ) );
|
||||
foreach ($aPlugins as $aPlugin) {
|
||||
$sClassName = substr ( $aPlugin ['sFilename'], 0, strpos ( $aPlugin ['sFilename'], '-' ) );
|
||||
require_once PATH_PLUGINS . $sClassName . '.php';
|
||||
$oDetails = $oPluginRegistry->getPluginDetails ( $sClassName . '.php' );
|
||||
$oPluginRegistry->disablePlugin ( $oDetails->sNamespace );
|
||||
file_put_contents ( PATH_DATA_SITE . 'plugin.singleton', $oPluginRegistry->serializeInstance () );
|
||||
$oPluginRegistry->disablePlugin ( $oDetails->getNamespace() );
|
||||
$oPluginRegistry->savePlugin($oDetails->getNamespace());
|
||||
}
|
||||
unlink(PATH_PLUGINS . 'enterprise/data/data');
|
||||
}
|
||||
|
||||
//Enable
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$aPlugins = unserialize(trim(file_get_contents(PATH_PLUGINS . "enterprise/data/default")));
|
||||
|
||||
foreach ($aPlugins as $aPlugin) {
|
||||
@@ -154,8 +157,8 @@ class pmLicenseManager
|
||||
$sClassName = substr($aPlugin["sFilename"], 0, strpos($aPlugin["sFilename"], "-"));
|
||||
require_once (PATH_PLUGINS . $sClassName . ".php");
|
||||
$oDetails = $oPluginRegistry->getPluginDetails($sClassName . ".php");
|
||||
$oPluginRegistry->enablePlugin($oDetails->sNamespace);
|
||||
file_put_contents ( PATH_DATA_SITE . 'plugin.singleton', $oPluginRegistry->serializeInstance () );
|
||||
$oPluginRegistry->enablePlugin($oDetails->getNamespace());
|
||||
$oPluginRegistry->savePlugin($oDetails->getNamespace());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,9 +171,9 @@ class pmLicenseManager
|
||||
if (file_exists(PATH_PLUGINS . $sClassName . '.php')) {
|
||||
require_once PATH_PLUGINS . $sClassName . '.php';
|
||||
$oDetails = $oPluginRegistry->getPluginDetails ( $sClassName . '.php' );
|
||||
$oPluginRegistry->disablePlugin ( $oDetails->sNamespace );
|
||||
file_put_contents ( PATH_DATA_SITE . 'plugin.singleton', $oPluginRegistry->serializeInstance () );
|
||||
$aDenied[]=$oDetails->sNamespace;
|
||||
$oPluginRegistry->disablePlugin($oDetails->getNamespace());
|
||||
$oPluginRegistry->savePlugin($oDetails->getNamespace());
|
||||
$aDenied[]=$oDetails->getNamespace();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -182,7 +185,7 @@ class pmLicenseManager
|
||||
}
|
||||
} else {
|
||||
//Disable
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton ();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$aPlugins = unserialize ( trim ( file_get_contents ( PATH_PLUGINS . 'enterprise/data/default' ) ) );
|
||||
foreach ($aPlugins as $aPlugin) {
|
||||
$sClassName = substr ( $aPlugin ['sFilename'], 0, strpos ( $aPlugin ['sFilename'], '-' ) );
|
||||
@@ -190,13 +193,14 @@ class pmLicenseManager
|
||||
if (($sClassName != "pmLicenseManager") && ($sClassName != "pmTrial") && ($sClassName != "enterprise")) {
|
||||
require_once PATH_PLUGINS . $sClassName . '.php';
|
||||
$oDetails = $oPluginRegistry->getPluginDetails ( $sClassName . '.php' );
|
||||
$oPluginRegistry->disablePlugin ( $oDetails->sNamespace );
|
||||
$oPluginRegistry->disablePlugin($oDetails->getNamespace());
|
||||
} else {
|
||||
//Enable default and required plugins
|
||||
require_once PATH_PLUGINS . $sClassName . '.php';
|
||||
$oDetails = $oPluginRegistry->getPluginDetails ( $sClassName . '.php' );
|
||||
$oPluginRegistry->enablePlugin ( $oDetails->sNamespace );
|
||||
$oPluginRegistry->enablePlugin($oDetails->getNamespace());
|
||||
}
|
||||
$oPluginRegistry->savePlugin($oDetails->getNamespace());
|
||||
}
|
||||
|
||||
if (file_exists(PATH_DATA_SITE.'ee')) {
|
||||
@@ -210,12 +214,12 @@ class pmLicenseManager
|
||||
}
|
||||
$oDetails = $oPluginRegistry->getPluginDetails ( $sClassName . '.php' );
|
||||
if ($oDetails) {
|
||||
$oPluginRegistry->disablePlugin ( $oDetails->sNamespace );
|
||||
$oPluginRegistry->disablePlugin($oDetails->getNamespace());
|
||||
$oPluginRegistry->savePlugin($oDetails->getNamespace());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
file_put_contents ( PATH_DATA_SITE . 'plugin.singleton', $oPluginRegistry->serializeInstance () );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
// License: LGPL, see LICENSE
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
/**
|
||||
* PMScript - PMScript class
|
||||
@@ -59,7 +60,7 @@ if (defined('SYS_SYS') && (!defined('PATH_DATA_SITE') || !defined('PATH_WORKSPAC
|
||||
//call plugin
|
||||
if (class_exists( 'folderData' )) {
|
||||
//$folderData = new folderData($sProUid, $proFields['PRO_TITLE'], $sAppUid, $Fields['APP_TITLE'], $sUsrUid);
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$aAvailablePmFunctions = $oPluginRegistry->getPmFunctions();
|
||||
foreach ($aAvailablePmFunctions as $key => $class) {
|
||||
$filePlugin = PATH_PLUGINS . $class . PATH_SEP . 'classes' . PATH_SEP . 'class.pmFunctions.php';
|
||||
|
||||
0
workflow/engine/classes/class.processMap.php
Normal file
0
workflow/engine/classes/class.processMap.php
Normal file
@@ -25,6 +25,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
/**
|
||||
* Class pagedTable
|
||||
*
|
||||
@@ -581,7 +583,7 @@ class propelTable
|
||||
$time = $time_end - $time_start;
|
||||
// verify if there are templates folders registered, template and method folders are the same
|
||||
$folderTemplate = explode( '/', $this->template );
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
if ($oPluginRegistry->isRegisteredFolder( $folderTemplate[0] )) {
|
||||
$templateFile = PATH_PLUGINS . $this->template . '.html';
|
||||
} else {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* This class Helps registering and implementing Wizard for Triggers
|
||||
*/
|
||||
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -33,7 +33,7 @@ class triggerLibrary
|
||||
//Register all registered PLugin Functions
|
||||
if (class_exists( 'folderData' )) {
|
||||
//$folderData = new folderData($sProUid, $proFields['PRO_TITLE'], $sAppUid, $Fields['APP_TITLE'], $sUsrUid);
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$aAvailablePmFunctions = $oPluginRegistry->getPmFunctions();
|
||||
$oPluginRegistry->setupPlugins(); //Get and setup enabled plugins
|
||||
foreach ($aAvailablePmFunctions as $key => $class) {
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
* @author Alexandre Rosenfeld
|
||||
*/
|
||||
|
||||
use ProcessMaker\Plugins\Adapters\PluginAdapter;
|
||||
|
||||
/**
|
||||
* class workspaceTools
|
||||
*
|
||||
@@ -1892,8 +1894,6 @@ class workspaceTools
|
||||
}
|
||||
|
||||
if ($swv == 1) {
|
||||
|
||||
|
||||
//Extract
|
||||
$tar = new Archive_Tar($f);
|
||||
|
||||
@@ -2862,7 +2862,6 @@ class workspaceTools
|
||||
public function checkRbacPermissions(){
|
||||
CLI::logging("-> Verifying roles permissions in RBAC \n");
|
||||
//Update table RBAC permissions
|
||||
|
||||
$RBAC = &RBAC::getSingleton();
|
||||
$RBAC->initRBAC();
|
||||
$result = $RBAC->verifyPermissions();
|
||||
@@ -3887,15 +3886,15 @@ class workspaceTools
|
||||
if (!$bExist = $conf->exists('MIGRATED_PLUGIN', 'singleton')) {
|
||||
$pathSingleton = PATH_DATA . 'sites' . PATH_SEP . $workspace . PATH_SEP . 'plugin.singleton';
|
||||
$oPluginRegistry = unserialize(file_get_contents($pathSingleton));
|
||||
$pluginAdapter = new \ProcessMaker\Plugins\Adapters\PluginAdapter();
|
||||
$pluginAdapter->save($oPluginRegistry);
|
||||
$data["CFG_UID"] = 'MIGRATED_PLUGIN';
|
||||
$data["OBJ_UID"] = 'singleton';
|
||||
$data["CFG_VALUE"] = 'true';
|
||||
$data["PRO_UID"] = '';
|
||||
$data["USR_UID"] = '';
|
||||
$data["APP_UID"] = '';
|
||||
$conf->create($data);
|
||||
$pluginAdapter = new PluginAdapter();
|
||||
$pluginAdapter->migrate($oPluginRegistry);
|
||||
// $data["CFG_UID"] = 'MIGRATED_PLUGIN';
|
||||
// $data["OBJ_UID"] = 'singleton';
|
||||
// $data["CFG_VALUE"] = 'true';
|
||||
// $data["PRO_UID"] = '';
|
||||
// $data["USR_UID"] = '';
|
||||
// $data["APP_UID"] = '';
|
||||
// $conf->create($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
require_once 'classes/model/om/BaseAddonsManager.php';
|
||||
require_once PATH_CORE . 'classes' . PATH_SEP . 'class.enterpriseUtils.php';
|
||||
|
||||
@@ -113,9 +116,8 @@ class AddonsManager extends BaseAddonsManager
|
||||
if (!$this->isInstalled()) {
|
||||
return false;
|
||||
}
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$status = $oPluginRegistry->getStatusPlugin($this->getAddonName());
|
||||
return (strcmp($status, "enabled") == 0);
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
return $oPluginRegistry->isEnable($this->getAddonName());
|
||||
} else {
|
||||
throw new Exception("Addon type '{$this->getAddonType()}' unsupported");
|
||||
}
|
||||
@@ -130,7 +132,7 @@ class AddonsManager extends BaseAddonsManager
|
||||
return false;
|
||||
}
|
||||
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
|
||||
|
||||
$filter = new InputFilter();
|
||||
@@ -139,17 +141,12 @@ class AddonsManager extends BaseAddonsManager
|
||||
require_once ($requiredPath);
|
||||
|
||||
if ($enable) {
|
||||
//$oDetails = $oPluginRegistry->getPluginDetails($this->getAddonName());
|
||||
//$oPluginRegistry->enablePlugin($oDetails->sNamespace);
|
||||
//require_once (PATH_PLUGINS . $this->getAddonName() . ".php"); //ok
|
||||
$oPluginRegistry->enablePlugin($this->getAddonName());
|
||||
$oPluginRegistry->setupPlugins(); //get and setup enabled plugins
|
||||
} else {
|
||||
//$oDetails = $oPluginRegistry->getPluginDetails($this->getAddonName());
|
||||
//$oPluginRegistry->disablePlugin($oDetails->sNamespace);
|
||||
$oPluginRegistry->disablePlugin($this->getAddonName());
|
||||
}
|
||||
$oPluginRegistry->pluginAdapter->savePlugin($this->getAddonName(), $oPluginRegistry);
|
||||
$oPluginRegistry->savePlugin($this->getAddonName());
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -168,9 +165,9 @@ class AddonsManager extends BaseAddonsManager
|
||||
return (null);
|
||||
}
|
||||
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$details = $oPluginRegistry->getPluginDetails($this->getAddonName() . ".php");
|
||||
$v = (!($details == null))? $details->iVersion : null;
|
||||
$v = (!($details == null))? $details->getVersion() : null;
|
||||
|
||||
if ($v != "") {
|
||||
return ($v);
|
||||
@@ -385,7 +382,7 @@ class AddonsManager extends BaseAddonsManager
|
||||
$_SESSION["__ENTERPRISE_INSTALL__"] = 1;
|
||||
}
|
||||
|
||||
$oPluginRegistry = &ProcessMaker\Plugins\PluginsRegistry::loadSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$oPluginRegistry->installPluginArchive($filename, $this->getAddonName());
|
||||
|
||||
$this->setState();
|
||||
@@ -408,7 +405,7 @@ class AddonsManager extends BaseAddonsManager
|
||||
return false;
|
||||
}
|
||||
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$oPluginRegistry->uninstallPlugin($this->getAddonName());
|
||||
|
||||
return true;
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
require_once 'classes/model/om/BaseAddonsStore.php';
|
||||
|
||||
define("STORE_VERSION", 1);
|
||||
@@ -348,7 +351,7 @@ class AddonsStore extends BaseAddonsStore
|
||||
//Fill with local information
|
||||
|
||||
//List all plugins installed
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$aPluginsPP = array();
|
||||
|
||||
if (file_exists(PATH_DATA_SITE . 'ee')) {
|
||||
@@ -368,10 +371,10 @@ class AddonsStore extends BaseAddonsStore
|
||||
$oDetails = $oPluginRegistry->getPluginDetails($sClassName . '.php');
|
||||
|
||||
if ($oDetails) {
|
||||
$sStatus = $oDetails->enabled ? G::LoadTranslation('ID_ENABLED') : G::LoadTranslation('ID_DISABLED');
|
||||
$sStatus = $oDetails->isEnabled() ? G::LoadTranslation('ID_ENABLED') : G::LoadTranslation('ID_DISABLED');
|
||||
|
||||
if (isset($oDetails->aWorkspaces)) {
|
||||
if (!in_array(SYS_SYS, $oDetails->aWorkspaces)) {
|
||||
if ($oDetails->getWorkspaces()) {
|
||||
if (!in_array(SYS_SYS, $oDetails->getWorkspaces())) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -380,16 +383,16 @@ class AddonsStore extends BaseAddonsStore
|
||||
continue;
|
||||
}
|
||||
|
||||
$sEdit = (($oDetails->sSetupPage != '') && ($oDetails->enabled)? G::LoadTranslation('ID_SETUP') : ' ');
|
||||
$sEdit = (($oDetails->getSetupPage() != '') && ($oDetails->isEnabled())? G::LoadTranslation('ID_SETUP') : ' ');
|
||||
$aPlugin = array();
|
||||
$aPluginId = $sClassName;
|
||||
$aPluginTitle = $oDetails->sFriendlyName;
|
||||
$aPluginDescription = $oDetails->sDescription;
|
||||
$aPluginVersion = $oDetails->iVersion;
|
||||
$aPluginTitle = $oDetails->getFriendlyName();
|
||||
$aPluginDescription = $oDetails->getDescription();
|
||||
$aPluginVersion = $oDetails->getVersion();
|
||||
|
||||
if (@in_array($sClassName, $pmLicenseManagerO->features)) {
|
||||
$aPluginStatus = $sStatus;
|
||||
$aPluginLinkStatus = 'pluginsChange?id=' . $sClassName . '.php&status=' . $oDetails->enabled;
|
||||
$aPluginLinkStatus = 'pluginsChange?id=' . $sClassName . '.php&status=' . $oDetails->isEnabled();
|
||||
$aPluginEdit = $sEdit;
|
||||
$aPluginLinkEdit = 'pluginsSetup?id=' . $sClassName . '.php';
|
||||
$aPluginStatusA = $sStatus == "Enabled" ? "installed" : 'disabled';
|
||||
|
||||
@@ -292,7 +292,7 @@ class AppDelegation extends BaseAppDelegation
|
||||
}
|
||||
|
||||
if ($flagActionsByEmail) {
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$oPluginRegistry->executeTriggers(PM_CREATE_NEW_DELEGATION, $data);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
//require_once 'classes/model/om/BaseAppFolder.php';
|
||||
//require_once 'classes/model/Application.php';
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'APP_FOLDER' table.
|
||||
@@ -724,7 +725,7 @@ class AppFolder extends BaseAppFolder
|
||||
}
|
||||
|
||||
if (! empty( $row1["APP_DOC_PLUGIN"] )) {
|
||||
$pluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$pluginRegistry = PluginRegistry::loadSingleton();
|
||||
$pluginName = $row1["APP_DOC_PLUGIN"];
|
||||
$fieldValue = "";
|
||||
|
||||
@@ -732,7 +733,7 @@ class AppFolder extends BaseAppFolder
|
||||
$pluginDetail = $pluginRegistry->getPluginDetails( $pluginName . ".php" );
|
||||
|
||||
if ($pluginDetail) {
|
||||
if ($pluginDetail->enabled) {
|
||||
if ($pluginDetail->isEnabled()) {
|
||||
require_once (PATH_PLUGINS . $pluginName . ".php");
|
||||
$pluginNameClass = $pluginName . "Plugin";
|
||||
$objPluginClass = new $pluginNameClass( $pluginName );
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
//require_once 'classes/model/Process.php';
|
||||
//require_once 'classes/model/Task.php';
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
/**
|
||||
* Skeleton subclass for representing a row from the 'CASE_SCHEDULER' table.
|
||||
@@ -448,6 +449,8 @@ class CaseScheduler extends BaseCaseScheduler
|
||||
|
||||
$params = array("sessionId" => $sessionId, "processId" => $processId, "taskId" => $taskId, "variables" => array());
|
||||
|
||||
//Here we are loading all plugins registered
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
//If this Job was was registered to be performed by a plugin
|
||||
if (isset($row["CASE_SH_PLUGIN_UID"]) && $row["CASE_SH_PLUGIN_UID"] != "") {
|
||||
//Check if the plugin is active
|
||||
@@ -455,18 +458,7 @@ class CaseScheduler extends BaseCaseScheduler
|
||||
|
||||
if (count($pluginParts) == 2) {
|
||||
|
||||
//Here we are loading all plugins registered
|
||||
//The singleton has a list of enabled plugins
|
||||
$sSerializedFile = PATH_DATA_SITE . "plugin.singleton";
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
|
||||
if (file_exists($sSerializedFile)) {
|
||||
$oPluginRegistry->unSerializeInstance(file_get_contents($sSerializedFile));
|
||||
}
|
||||
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$activePluginsForCaseScheduler = $oPluginRegistry->getCaseSchedulerPlugins();
|
||||
|
||||
foreach ($activePluginsForCaseScheduler as $key => $caseSchedulerPlugin) {
|
||||
if (isset($caseSchedulerPlugin->sNamespace) && $caseSchedulerPlugin->sNamespace == $pluginParts[0] && isset($caseSchedulerPlugin->sActionId) && $caseSchedulerPlugin->sActionId == $pluginParts[1]) {
|
||||
$caseSchedulerSelected = $caseSchedulerPlugin;
|
||||
@@ -498,8 +490,6 @@ class CaseScheduler extends BaseCaseScheduler
|
||||
$paramsAux = $params;
|
||||
$paramsAux["executeTriggers"] = 1;
|
||||
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
|
||||
if ($oPluginRegistry->existsTrigger(PM_SCHEDULER_CREATE_CASE_BEFORE)) {
|
||||
$oPluginRegistry->executeTriggers(PM_SCHEDULER_CREATE_CASE_BEFORE, $paramsAux);
|
||||
}
|
||||
|
||||
@@ -17,23 +17,44 @@ require_once 'classes/model/om/BasePluginsRegistry.php';
|
||||
class PluginsRegistry extends BasePluginsRegistry
|
||||
{
|
||||
/**
|
||||
* Load all Plugins
|
||||
* @param string $keyType
|
||||
* @return array
|
||||
* @throws Exception
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function loadPlugins()
|
||||
public static function loadPlugins($keyType = BasePeer::TYPE_FIELDNAME)
|
||||
{
|
||||
$oCriteria = new Criteria();
|
||||
$oDataset = PluginsRegistryPeer::doSelectRS($oCriteria);
|
||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$rows = array();
|
||||
while ($oDataset->next()) {
|
||||
$rows[] = $oDataset->getRow();
|
||||
$criteria = new Criteria();
|
||||
$dataSet = PluginsRegistryPeer::doSelect($criteria);
|
||||
$plugins = [];
|
||||
/** @var PluginsRegistry $row */
|
||||
foreach ($dataSet as $row) {
|
||||
$plugins[] = $row->toArray($keyType);
|
||||
}
|
||||
return $rows;
|
||||
return $plugins;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $prUid
|
||||
* Get all Plugins Enabled
|
||||
* @param string $keyType
|
||||
* @return array
|
||||
*/
|
||||
public static function getPluginsEnabled($keyType = BasePeer::TYPE_FIELDNAME)
|
||||
{
|
||||
$criteria = new Criteria();
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_ENABLE, true);
|
||||
$dataSet = PluginsRegistryPeer::doSelect($criteria);
|
||||
$plugins = [];
|
||||
/** @var PluginsRegistry $row */
|
||||
foreach ($dataSet as $row) {
|
||||
$plugins[] = $row->toArray($keyType);
|
||||
}
|
||||
return $plugins;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load plugin with Uid
|
||||
* @param string $prUid
|
||||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
@@ -50,6 +71,7 @@ class PluginsRegistry extends BasePluginsRegistry
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if there is a plugin uid
|
||||
* @param $prUid
|
||||
* @return mixed|bool
|
||||
*/
|
||||
@@ -64,11 +86,14 @@ class PluginsRegistry extends BasePluginsRegistry
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $prUid
|
||||
* Load or creates if the record does not exist
|
||||
* Load and makes a union with the data sent
|
||||
*
|
||||
* @param string $prUid
|
||||
* @param array $pluginData
|
||||
* @return mixed|array|bool
|
||||
* @return array
|
||||
*/
|
||||
public static function loadOrCreateIfNotExists($prUid, $pluginData = array())
|
||||
public static function loadOrCreateIfNotExists($prUid, $pluginData = [])
|
||||
{
|
||||
if (!self::exists($prUid)) {
|
||||
$pluginData['PR_UID'] = $prUid;
|
||||
@@ -135,4 +160,64 @@ class PluginsRegistry extends BasePluginsRegistry
|
||||
throw ($oError);
|
||||
}
|
||||
}
|
||||
|
||||
public static function enable($Namespace)
|
||||
{
|
||||
$oConnection = Propel::getConnection(PluginsRegistryPeer::DATABASE_NAME);
|
||||
try {
|
||||
$oPluginsRegistry = PluginsRegistryPeer::retrieveByPK(md5($Namespace));
|
||||
if ($oPluginsRegistry) {
|
||||
$oPluginsRegistry->fromArray(['PLUGIN_ENABLE' => true], BasePeer::TYPE_FIELDNAME);
|
||||
if ($oPluginsRegistry->validate()) {
|
||||
$oConnection->begin();
|
||||
$iResult = $oPluginsRegistry->save();
|
||||
$oConnection->commit();
|
||||
return $iResult;
|
||||
} else {
|
||||
$sMessage = '';
|
||||
$aValidationFailures = $oPluginsRegistry->getValidationFailures();
|
||||
/** @var ValidationFailed $oValidationFailure */
|
||||
foreach ($aValidationFailures as $oValidationFailure) {
|
||||
$sMessage .= $oValidationFailure->getMessage() . '<br />';
|
||||
}
|
||||
throw (new Exception('The registry cannot be updated!<br />' . $sMessage));
|
||||
}
|
||||
} else {
|
||||
throw (new Exception('This Plugin doesn\'t exist!'));
|
||||
}
|
||||
} catch (Exception $oError) {
|
||||
$oConnection->rollback();
|
||||
throw ($oError);
|
||||
}
|
||||
}
|
||||
|
||||
public static function disable($Namespace)
|
||||
{
|
||||
$oConnection = Propel::getConnection(PluginsRegistryPeer::DATABASE_NAME);
|
||||
try {
|
||||
$oPluginsRegistry = PluginsRegistryPeer::retrieveByPK(md5($Namespace));
|
||||
if ($oPluginsRegistry) {
|
||||
$oPluginsRegistry->fromArray(['PLUGIN_ENABLE' => false], BasePeer::TYPE_FIELDNAME);
|
||||
if ($oPluginsRegistry->validate()) {
|
||||
$oConnection->begin();
|
||||
$iResult = $oPluginsRegistry->save();
|
||||
$oConnection->commit();
|
||||
return $iResult;
|
||||
} else {
|
||||
$sMessage = '';
|
||||
$aValidationFailures = $oPluginsRegistry->getValidationFailures();
|
||||
/** @var ValidationFailed $oValidationFailure */
|
||||
foreach ($aValidationFailures as $oValidationFailure) {
|
||||
$sMessage .= $oValidationFailure->getMessage() . '<br />';
|
||||
}
|
||||
throw (new Exception('The registry cannot be updated!<br />' . $sMessage));
|
||||
}
|
||||
} else {
|
||||
throw (new Exception('This Plugin doesn\'t exist!'));
|
||||
}
|
||||
} catch (Exception $oError) {
|
||||
$oConnection->rollback();
|
||||
throw ($oError);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
require_once 'classes/model/om/BaseUsersProperties.php';
|
||||
|
||||
/**
|
||||
@@ -320,7 +322,7 @@ class UsersProperties extends BaseUsersProperties
|
||||
$userRole = $RBAC->aUserInfo['PROCESSMAKER']['ROLE']['ROL_CODE'];
|
||||
}
|
||||
|
||||
$oPluginRegistry = &PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
$aRedirectLogin = $oPluginRegistry->getRedirectLogins();
|
||||
if (isset( $aRedirectLogin ) && is_array( $aRedirectLogin )) {
|
||||
foreach ($aRedirectLogin as $key => $detail) {
|
||||
|
||||
@@ -73,14 +73,20 @@ class PluginsRegistryMapBuilder
|
||||
|
||||
$tMap->addColumn('PLUGIN_DESCRIPTION', 'PluginDescription', 'string', CreoleTypes::VARCHAR, false, 200);
|
||||
|
||||
$tMap->addColumn('CLASS_NAME', 'ClassName', 'string', CreoleTypes::VARCHAR, true, 100);
|
||||
$tMap->addColumn('PLUGIN_CLASS_NAME', 'PluginClassName', 'string', CreoleTypes::VARCHAR, true, 100);
|
||||
|
||||
$tMap->addColumn('FRIENDLY_NAME', 'FriendlyName', 'string', CreoleTypes::VARCHAR, false, 150);
|
||||
$tMap->addColumn('PLUGIN_FRIENDLY_NAME', 'PluginFriendlyName', 'string', CreoleTypes::VARCHAR, false, 150);
|
||||
|
||||
$tMap->addColumn('FILE_NAME', 'FileName', 'string', CreoleTypes::VARCHAR, true, 250);
|
||||
$tMap->addColumn('PLUGIN_FILE', 'PluginFile', 'string', CreoleTypes::VARCHAR, true, 250);
|
||||
|
||||
$tMap->addColumn('PLUGIN_FOLDER', 'PluginFolder', 'string', CreoleTypes::VARCHAR, true, 100);
|
||||
|
||||
$tMap->addColumn('PLUGIN_SETUP_PAGE', 'PluginSetupPage', 'string', CreoleTypes::VARCHAR, false, 100);
|
||||
|
||||
$tMap->addColumn('PLUGIN_COMPANY_LOGO', 'PluginCompanyLogo', 'string', CreoleTypes::VARCHAR, false, 100);
|
||||
|
||||
$tMap->addColumn('PLUGIN_WORKSPACES', 'PluginWorkspaces', 'string', CreoleTypes::VARCHAR, false, 100);
|
||||
|
||||
$tMap->addColumn('PLUGIN_VERSION', 'PluginVersion', 'string', CreoleTypes::VARCHAR, false, 50);
|
||||
|
||||
$tMap->addColumn('PLUGIN_ENABLE', 'PluginEnable', 'boolean', CreoleTypes::BOOLEAN, false, null);
|
||||
|
||||
@@ -52,22 +52,22 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
protected $plugin_description = '';
|
||||
|
||||
/**
|
||||
* The value for the class_name field.
|
||||
* The value for the plugin_class_name field.
|
||||
* @var string
|
||||
*/
|
||||
protected $class_name;
|
||||
protected $plugin_class_name;
|
||||
|
||||
/**
|
||||
* The value for the friendly_name field.
|
||||
* The value for the plugin_friendly_name field.
|
||||
* @var string
|
||||
*/
|
||||
protected $friendly_name = '';
|
||||
protected $plugin_friendly_name = '';
|
||||
|
||||
/**
|
||||
* The value for the file_name field.
|
||||
* The value for the plugin_file field.
|
||||
* @var string
|
||||
*/
|
||||
protected $file_name = '';
|
||||
protected $plugin_file = '';
|
||||
|
||||
/**
|
||||
* The value for the plugin_folder field.
|
||||
@@ -75,6 +75,24 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $plugin_folder = '';
|
||||
|
||||
/**
|
||||
* The value for the plugin_setup_page field.
|
||||
* @var string
|
||||
*/
|
||||
protected $plugin_setup_page = '';
|
||||
|
||||
/**
|
||||
* The value for the plugin_company_logo field.
|
||||
* @var string
|
||||
*/
|
||||
protected $plugin_company_logo = '';
|
||||
|
||||
/**
|
||||
* The value for the plugin_workspaces field.
|
||||
* @var string
|
||||
*/
|
||||
protected $plugin_workspaces = '';
|
||||
|
||||
/**
|
||||
* The value for the plugin_version field.
|
||||
* @var string
|
||||
@@ -212,36 +230,36 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [class_name] column value.
|
||||
* Get the [plugin_class_name] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getClassName()
|
||||
public function getPluginClassName()
|
||||
{
|
||||
|
||||
return $this->class_name;
|
||||
return $this->plugin_class_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [friendly_name] column value.
|
||||
* Get the [plugin_friendly_name] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFriendlyName()
|
||||
public function getPluginFriendlyName()
|
||||
{
|
||||
|
||||
return $this->friendly_name;
|
||||
return $this->plugin_friendly_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [file_name] column value.
|
||||
* Get the [plugin_file] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFileName()
|
||||
public function getPluginFile()
|
||||
{
|
||||
|
||||
return $this->file_name;
|
||||
return $this->plugin_file;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -255,6 +273,39 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
return $this->plugin_folder;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [plugin_setup_page] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPluginSetupPage()
|
||||
{
|
||||
|
||||
return $this->plugin_setup_page;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [plugin_company_logo] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPluginCompanyLogo()
|
||||
{
|
||||
|
||||
return $this->plugin_company_logo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [plugin_workspaces] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getPluginWorkspaces()
|
||||
{
|
||||
|
||||
return $this->plugin_workspaces;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [plugin_version] column value.
|
||||
*
|
||||
@@ -487,12 +538,12 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
} // setPluginDescription()
|
||||
|
||||
/**
|
||||
* Set the value of [class_name] column.
|
||||
* Set the value of [plugin_class_name] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setClassName($v)
|
||||
public function setPluginClassName($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
@@ -501,20 +552,20 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->class_name !== $v) {
|
||||
$this->class_name = $v;
|
||||
$this->modifiedColumns[] = PluginsRegistryPeer::CLASS_NAME;
|
||||
if ($this->plugin_class_name !== $v) {
|
||||
$this->plugin_class_name = $v;
|
||||
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_CLASS_NAME;
|
||||
}
|
||||
|
||||
} // setClassName()
|
||||
} // setPluginClassName()
|
||||
|
||||
/**
|
||||
* Set the value of [friendly_name] column.
|
||||
* Set the value of [plugin_friendly_name] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setFriendlyName($v)
|
||||
public function setPluginFriendlyName($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
@@ -523,20 +574,20 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->friendly_name !== $v || $v === '') {
|
||||
$this->friendly_name = $v;
|
||||
$this->modifiedColumns[] = PluginsRegistryPeer::FRIENDLY_NAME;
|
||||
if ($this->plugin_friendly_name !== $v || $v === '') {
|
||||
$this->plugin_friendly_name = $v;
|
||||
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_FRIENDLY_NAME;
|
||||
}
|
||||
|
||||
} // setFriendlyName()
|
||||
} // setPluginFriendlyName()
|
||||
|
||||
/**
|
||||
* Set the value of [file_name] column.
|
||||
* Set the value of [plugin_file] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setFileName($v)
|
||||
public function setPluginFile($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
@@ -545,12 +596,12 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->file_name !== $v || $v === '') {
|
||||
$this->file_name = $v;
|
||||
$this->modifiedColumns[] = PluginsRegistryPeer::FILE_NAME;
|
||||
if ($this->plugin_file !== $v || $v === '') {
|
||||
$this->plugin_file = $v;
|
||||
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_FILE;
|
||||
}
|
||||
|
||||
} // setFileName()
|
||||
} // setPluginFile()
|
||||
|
||||
/**
|
||||
* Set the value of [plugin_folder] column.
|
||||
@@ -574,6 +625,72 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
|
||||
} // setPluginFolder()
|
||||
|
||||
/**
|
||||
* Set the value of [plugin_setup_page] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setPluginSetupPage($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
// we will cast the input to a string (if it is not).
|
||||
if ($v !== null && !is_string($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->plugin_setup_page !== $v || $v === '') {
|
||||
$this->plugin_setup_page = $v;
|
||||
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_SETUP_PAGE;
|
||||
}
|
||||
|
||||
} // setPluginSetupPage()
|
||||
|
||||
/**
|
||||
* Set the value of [plugin_company_logo] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setPluginCompanyLogo($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
// we will cast the input to a string (if it is not).
|
||||
if ($v !== null && !is_string($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->plugin_company_logo !== $v || $v === '') {
|
||||
$this->plugin_company_logo = $v;
|
||||
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_COMPANY_LOGO;
|
||||
}
|
||||
|
||||
} // setPluginCompanyLogo()
|
||||
|
||||
/**
|
||||
* Set the value of [plugin_workspaces] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setPluginWorkspaces($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
// we will cast the input to a string (if it is not).
|
||||
if ($v !== null && !is_string($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->plugin_workspaces !== $v || $v === '') {
|
||||
$this->plugin_workspaces = $v;
|
||||
$this->modifiedColumns[] = PluginsRegistryPeer::PLUGIN_WORKSPACES;
|
||||
}
|
||||
|
||||
} // setPluginWorkspaces()
|
||||
|
||||
/**
|
||||
* Set the value of [plugin_version] column.
|
||||
*
|
||||
@@ -873,46 +990,52 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
|
||||
$this->plugin_description = $rs->getString($startcol + 3);
|
||||
|
||||
$this->class_name = $rs->getString($startcol + 4);
|
||||
$this->plugin_class_name = $rs->getString($startcol + 4);
|
||||
|
||||
$this->friendly_name = $rs->getString($startcol + 5);
|
||||
$this->plugin_friendly_name = $rs->getString($startcol + 5);
|
||||
|
||||
$this->file_name = $rs->getString($startcol + 6);
|
||||
$this->plugin_file = $rs->getString($startcol + 6);
|
||||
|
||||
$this->plugin_folder = $rs->getString($startcol + 7);
|
||||
|
||||
$this->plugin_version = $rs->getString($startcol + 8);
|
||||
$this->plugin_setup_page = $rs->getString($startcol + 8);
|
||||
|
||||
$this->plugin_enable = $rs->getBoolean($startcol + 9);
|
||||
$this->plugin_company_logo = $rs->getString($startcol + 9);
|
||||
|
||||
$this->plugin_private = $rs->getBoolean($startcol + 10);
|
||||
$this->plugin_workspaces = $rs->getString($startcol + 10);
|
||||
|
||||
$this->plugin_menus = $rs->getString($startcol + 11);
|
||||
$this->plugin_version = $rs->getString($startcol + 11);
|
||||
|
||||
$this->plugin_folders = $rs->getString($startcol + 12);
|
||||
$this->plugin_enable = $rs->getBoolean($startcol + 12);
|
||||
|
||||
$this->plugin_triggers = $rs->getString($startcol + 13);
|
||||
$this->plugin_private = $rs->getBoolean($startcol + 13);
|
||||
|
||||
$this->plugin_pm_functions = $rs->getString($startcol + 14);
|
||||
$this->plugin_menus = $rs->getString($startcol + 14);
|
||||
|
||||
$this->plugin_redirect_login = $rs->getString($startcol + 15);
|
||||
$this->plugin_folders = $rs->getString($startcol + 15);
|
||||
|
||||
$this->plugin_steps = $rs->getString($startcol + 16);
|
||||
$this->plugin_triggers = $rs->getString($startcol + 16);
|
||||
|
||||
$this->plugin_css = $rs->getString($startcol + 17);
|
||||
$this->plugin_pm_functions = $rs->getString($startcol + 17);
|
||||
|
||||
$this->plugin_js = $rs->getString($startcol + 18);
|
||||
$this->plugin_redirect_login = $rs->getString($startcol + 18);
|
||||
|
||||
$this->plugin_rest_service = $rs->getString($startcol + 19);
|
||||
$this->plugin_steps = $rs->getString($startcol + 19);
|
||||
|
||||
$this->plugin_attributes = $rs->getString($startcol + 20);
|
||||
$this->plugin_css = $rs->getString($startcol + 20);
|
||||
|
||||
$this->plugin_js = $rs->getString($startcol + 21);
|
||||
|
||||
$this->plugin_rest_service = $rs->getString($startcol + 22);
|
||||
|
||||
$this->plugin_attributes = $rs->getString($startcol + 23);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 21; // 21 = PluginsRegistryPeer::NUM_COLUMNS - PluginsRegistryPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 24; // 24 = PluginsRegistryPeer::NUM_COLUMNS - PluginsRegistryPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating PluginsRegistry object", $e);
|
||||
@@ -1129,54 +1252,63 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
return $this->getPluginDescription();
|
||||
break;
|
||||
case 4:
|
||||
return $this->getClassName();
|
||||
return $this->getPluginClassName();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getFriendlyName();
|
||||
return $this->getPluginFriendlyName();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getFileName();
|
||||
return $this->getPluginFile();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getPluginFolder();
|
||||
break;
|
||||
case 8:
|
||||
return $this->getPluginVersion();
|
||||
return $this->getPluginSetupPage();
|
||||
break;
|
||||
case 9:
|
||||
return $this->getPluginEnable();
|
||||
return $this->getPluginCompanyLogo();
|
||||
break;
|
||||
case 10:
|
||||
return $this->getPluginPrivate();
|
||||
return $this->getPluginWorkspaces();
|
||||
break;
|
||||
case 11:
|
||||
return $this->getPluginMenus();
|
||||
return $this->getPluginVersion();
|
||||
break;
|
||||
case 12:
|
||||
return $this->getPluginFolders();
|
||||
return $this->getPluginEnable();
|
||||
break;
|
||||
case 13:
|
||||
return $this->getPluginTriggers();
|
||||
return $this->getPluginPrivate();
|
||||
break;
|
||||
case 14:
|
||||
return $this->getPluginPmFunctions();
|
||||
return $this->getPluginMenus();
|
||||
break;
|
||||
case 15:
|
||||
return $this->getPluginRedirectLogin();
|
||||
return $this->getPluginFolders();
|
||||
break;
|
||||
case 16:
|
||||
return $this->getPluginSteps();
|
||||
return $this->getPluginTriggers();
|
||||
break;
|
||||
case 17:
|
||||
return $this->getPluginCss();
|
||||
return $this->getPluginPmFunctions();
|
||||
break;
|
||||
case 18:
|
||||
return $this->getPluginJs();
|
||||
return $this->getPluginRedirectLogin();
|
||||
break;
|
||||
case 19:
|
||||
return $this->getPluginRestService();
|
||||
return $this->getPluginSteps();
|
||||
break;
|
||||
case 20:
|
||||
return $this->getPluginCss();
|
||||
break;
|
||||
case 21:
|
||||
return $this->getPluginJs();
|
||||
break;
|
||||
case 22:
|
||||
return $this->getPluginRestService();
|
||||
break;
|
||||
case 23:
|
||||
return $this->getPluginAttributes();
|
||||
break;
|
||||
default:
|
||||
@@ -1203,23 +1335,26 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
$keys[1] => $this->getPrUid(),
|
||||
$keys[2] => $this->getPluginNamespace(),
|
||||
$keys[3] => $this->getPluginDescription(),
|
||||
$keys[4] => $this->getClassName(),
|
||||
$keys[5] => $this->getFriendlyName(),
|
||||
$keys[6] => $this->getFileName(),
|
||||
$keys[4] => $this->getPluginClassName(),
|
||||
$keys[5] => $this->getPluginFriendlyName(),
|
||||
$keys[6] => $this->getPluginFile(),
|
||||
$keys[7] => $this->getPluginFolder(),
|
||||
$keys[8] => $this->getPluginVersion(),
|
||||
$keys[9] => $this->getPluginEnable(),
|
||||
$keys[10] => $this->getPluginPrivate(),
|
||||
$keys[11] => $this->getPluginMenus(),
|
||||
$keys[12] => $this->getPluginFolders(),
|
||||
$keys[13] => $this->getPluginTriggers(),
|
||||
$keys[14] => $this->getPluginPmFunctions(),
|
||||
$keys[15] => $this->getPluginRedirectLogin(),
|
||||
$keys[16] => $this->getPluginSteps(),
|
||||
$keys[17] => $this->getPluginCss(),
|
||||
$keys[18] => $this->getPluginJs(),
|
||||
$keys[19] => $this->getPluginRestService(),
|
||||
$keys[20] => $this->getPluginAttributes(),
|
||||
$keys[8] => $this->getPluginSetupPage(),
|
||||
$keys[9] => $this->getPluginCompanyLogo(),
|
||||
$keys[10] => $this->getPluginWorkspaces(),
|
||||
$keys[11] => $this->getPluginVersion(),
|
||||
$keys[12] => $this->getPluginEnable(),
|
||||
$keys[13] => $this->getPluginPrivate(),
|
||||
$keys[14] => $this->getPluginMenus(),
|
||||
$keys[15] => $this->getPluginFolders(),
|
||||
$keys[16] => $this->getPluginTriggers(),
|
||||
$keys[17] => $this->getPluginPmFunctions(),
|
||||
$keys[18] => $this->getPluginRedirectLogin(),
|
||||
$keys[19] => $this->getPluginSteps(),
|
||||
$keys[20] => $this->getPluginCss(),
|
||||
$keys[21] => $this->getPluginJs(),
|
||||
$keys[22] => $this->getPluginRestService(),
|
||||
$keys[23] => $this->getPluginAttributes(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -1264,54 +1399,63 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
$this->setPluginDescription($value);
|
||||
break;
|
||||
case 4:
|
||||
$this->setClassName($value);
|
||||
$this->setPluginClassName($value);
|
||||
break;
|
||||
case 5:
|
||||
$this->setFriendlyName($value);
|
||||
$this->setPluginFriendlyName($value);
|
||||
break;
|
||||
case 6:
|
||||
$this->setFileName($value);
|
||||
$this->setPluginFile($value);
|
||||
break;
|
||||
case 7:
|
||||
$this->setPluginFolder($value);
|
||||
break;
|
||||
case 8:
|
||||
$this->setPluginVersion($value);
|
||||
$this->setPluginSetupPage($value);
|
||||
break;
|
||||
case 9:
|
||||
$this->setPluginEnable($value);
|
||||
$this->setPluginCompanyLogo($value);
|
||||
break;
|
||||
case 10:
|
||||
$this->setPluginPrivate($value);
|
||||
$this->setPluginWorkspaces($value);
|
||||
break;
|
||||
case 11:
|
||||
$this->setPluginMenus($value);
|
||||
$this->setPluginVersion($value);
|
||||
break;
|
||||
case 12:
|
||||
$this->setPluginFolders($value);
|
||||
$this->setPluginEnable($value);
|
||||
break;
|
||||
case 13:
|
||||
$this->setPluginTriggers($value);
|
||||
$this->setPluginPrivate($value);
|
||||
break;
|
||||
case 14:
|
||||
$this->setPluginPmFunctions($value);
|
||||
$this->setPluginMenus($value);
|
||||
break;
|
||||
case 15:
|
||||
$this->setPluginRedirectLogin($value);
|
||||
$this->setPluginFolders($value);
|
||||
break;
|
||||
case 16:
|
||||
$this->setPluginSteps($value);
|
||||
$this->setPluginTriggers($value);
|
||||
break;
|
||||
case 17:
|
||||
$this->setPluginCss($value);
|
||||
$this->setPluginPmFunctions($value);
|
||||
break;
|
||||
case 18:
|
||||
$this->setPluginJs($value);
|
||||
$this->setPluginRedirectLogin($value);
|
||||
break;
|
||||
case 19:
|
||||
$this->setPluginRestService($value);
|
||||
$this->setPluginSteps($value);
|
||||
break;
|
||||
case 20:
|
||||
$this->setPluginCss($value);
|
||||
break;
|
||||
case 21:
|
||||
$this->setPluginJs($value);
|
||||
break;
|
||||
case 22:
|
||||
$this->setPluginRestService($value);
|
||||
break;
|
||||
case 23:
|
||||
$this->setPluginAttributes($value);
|
||||
break;
|
||||
} // switch()
|
||||
@@ -1354,15 +1498,15 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[4], $arr)) {
|
||||
$this->setClassName($arr[$keys[4]]);
|
||||
$this->setPluginClassName($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setFriendlyName($arr[$keys[5]]);
|
||||
$this->setPluginFriendlyName($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[6], $arr)) {
|
||||
$this->setFileName($arr[$keys[6]]);
|
||||
$this->setPluginFile($arr[$keys[6]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[7], $arr)) {
|
||||
@@ -1370,55 +1514,67 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[8], $arr)) {
|
||||
$this->setPluginVersion($arr[$keys[8]]);
|
||||
$this->setPluginSetupPage($arr[$keys[8]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[9], $arr)) {
|
||||
$this->setPluginEnable($arr[$keys[9]]);
|
||||
$this->setPluginCompanyLogo($arr[$keys[9]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[10], $arr)) {
|
||||
$this->setPluginPrivate($arr[$keys[10]]);
|
||||
$this->setPluginWorkspaces($arr[$keys[10]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[11], $arr)) {
|
||||
$this->setPluginMenus($arr[$keys[11]]);
|
||||
$this->setPluginVersion($arr[$keys[11]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[12], $arr)) {
|
||||
$this->setPluginFolders($arr[$keys[12]]);
|
||||
$this->setPluginEnable($arr[$keys[12]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[13], $arr)) {
|
||||
$this->setPluginTriggers($arr[$keys[13]]);
|
||||
$this->setPluginPrivate($arr[$keys[13]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[14], $arr)) {
|
||||
$this->setPluginPmFunctions($arr[$keys[14]]);
|
||||
$this->setPluginMenus($arr[$keys[14]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[15], $arr)) {
|
||||
$this->setPluginRedirectLogin($arr[$keys[15]]);
|
||||
$this->setPluginFolders($arr[$keys[15]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[16], $arr)) {
|
||||
$this->setPluginSteps($arr[$keys[16]]);
|
||||
$this->setPluginTriggers($arr[$keys[16]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[17], $arr)) {
|
||||
$this->setPluginCss($arr[$keys[17]]);
|
||||
$this->setPluginPmFunctions($arr[$keys[17]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[18], $arr)) {
|
||||
$this->setPluginJs($arr[$keys[18]]);
|
||||
$this->setPluginRedirectLogin($arr[$keys[18]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[19], $arr)) {
|
||||
$this->setPluginRestService($arr[$keys[19]]);
|
||||
$this->setPluginSteps($arr[$keys[19]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[20], $arr)) {
|
||||
$this->setPluginAttributes($arr[$keys[20]]);
|
||||
$this->setPluginCss($arr[$keys[20]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[21], $arr)) {
|
||||
$this->setPluginJs($arr[$keys[21]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[22], $arr)) {
|
||||
$this->setPluginRestService($arr[$keys[22]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[23], $arr)) {
|
||||
$this->setPluginAttributes($arr[$keys[23]]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1448,22 +1604,34 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_DESCRIPTION, $this->plugin_description);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::CLASS_NAME)) {
|
||||
$criteria->add(PluginsRegistryPeer::CLASS_NAME, $this->class_name);
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::PLUGIN_CLASS_NAME)) {
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_CLASS_NAME, $this->plugin_class_name);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::FRIENDLY_NAME)) {
|
||||
$criteria->add(PluginsRegistryPeer::FRIENDLY_NAME, $this->friendly_name);
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::PLUGIN_FRIENDLY_NAME)) {
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_FRIENDLY_NAME, $this->plugin_friendly_name);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::FILE_NAME)) {
|
||||
$criteria->add(PluginsRegistryPeer::FILE_NAME, $this->file_name);
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::PLUGIN_FILE)) {
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_FILE, $this->plugin_file);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::PLUGIN_FOLDER)) {
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_FOLDER, $this->plugin_folder);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::PLUGIN_SETUP_PAGE)) {
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_SETUP_PAGE, $this->plugin_setup_page);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::PLUGIN_COMPANY_LOGO)) {
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_COMPANY_LOGO, $this->plugin_company_logo);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::PLUGIN_WORKSPACES)) {
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_WORKSPACES, $this->plugin_workspaces);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(PluginsRegistryPeer::PLUGIN_VERSION)) {
|
||||
$criteria->add(PluginsRegistryPeer::PLUGIN_VERSION, $this->plugin_version);
|
||||
}
|
||||
@@ -1576,14 +1744,20 @@ abstract class BasePluginsRegistry extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setPluginDescription($this->plugin_description);
|
||||
|
||||
$copyObj->setClassName($this->class_name);
|
||||
$copyObj->setPluginClassName($this->plugin_class_name);
|
||||
|
||||
$copyObj->setFriendlyName($this->friendly_name);
|
||||
$copyObj->setPluginFriendlyName($this->plugin_friendly_name);
|
||||
|
||||
$copyObj->setFileName($this->file_name);
|
||||
$copyObj->setPluginFile($this->plugin_file);
|
||||
|
||||
$copyObj->setPluginFolder($this->plugin_folder);
|
||||
|
||||
$copyObj->setPluginSetupPage($this->plugin_setup_page);
|
||||
|
||||
$copyObj->setPluginCompanyLogo($this->plugin_company_logo);
|
||||
|
||||
$copyObj->setPluginWorkspaces($this->plugin_workspaces);
|
||||
|
||||
$copyObj->setPluginVersion($this->plugin_version);
|
||||
|
||||
$copyObj->setPluginEnable($this->plugin_enable);
|
||||
|
||||
@@ -25,7 +25,7 @@ abstract class BasePluginsRegistryPeer
|
||||
const CLASS_DEFAULT = 'classes.model.PluginsRegistry';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 21;
|
||||
const NUM_COLUMNS = 24;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
@@ -43,18 +43,27 @@ abstract class BasePluginsRegistryPeer
|
||||
/** the column name for the PLUGIN_DESCRIPTION field */
|
||||
const PLUGIN_DESCRIPTION = 'PLUGINS_REGISTRY.PLUGIN_DESCRIPTION';
|
||||
|
||||
/** the column name for the CLASS_NAME field */
|
||||
const CLASS_NAME = 'PLUGINS_REGISTRY.CLASS_NAME';
|
||||
/** the column name for the PLUGIN_CLASS_NAME field */
|
||||
const PLUGIN_CLASS_NAME = 'PLUGINS_REGISTRY.PLUGIN_CLASS_NAME';
|
||||
|
||||
/** the column name for the FRIENDLY_NAME field */
|
||||
const FRIENDLY_NAME = 'PLUGINS_REGISTRY.FRIENDLY_NAME';
|
||||
/** the column name for the PLUGIN_FRIENDLY_NAME field */
|
||||
const PLUGIN_FRIENDLY_NAME = 'PLUGINS_REGISTRY.PLUGIN_FRIENDLY_NAME';
|
||||
|
||||
/** the column name for the FILE_NAME field */
|
||||
const FILE_NAME = 'PLUGINS_REGISTRY.FILE_NAME';
|
||||
/** the column name for the PLUGIN_FILE field */
|
||||
const PLUGIN_FILE = 'PLUGINS_REGISTRY.PLUGIN_FILE';
|
||||
|
||||
/** the column name for the PLUGIN_FOLDER field */
|
||||
const PLUGIN_FOLDER = 'PLUGINS_REGISTRY.PLUGIN_FOLDER';
|
||||
|
||||
/** the column name for the PLUGIN_SETUP_PAGE field */
|
||||
const PLUGIN_SETUP_PAGE = 'PLUGINS_REGISTRY.PLUGIN_SETUP_PAGE';
|
||||
|
||||
/** the column name for the PLUGIN_COMPANY_LOGO field */
|
||||
const PLUGIN_COMPANY_LOGO = 'PLUGINS_REGISTRY.PLUGIN_COMPANY_LOGO';
|
||||
|
||||
/** the column name for the PLUGIN_WORKSPACES field */
|
||||
const PLUGIN_WORKSPACES = 'PLUGINS_REGISTRY.PLUGIN_WORKSPACES';
|
||||
|
||||
/** the column name for the PLUGIN_VERSION field */
|
||||
const PLUGIN_VERSION = 'PLUGINS_REGISTRY.PLUGIN_VERSION';
|
||||
|
||||
@@ -105,10 +114,10 @@ abstract class BasePluginsRegistryPeer
|
||||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('Id', 'PrUid', 'PluginNamespace', 'PluginDescription', 'ClassName', 'FriendlyName', 'FileName', 'PluginFolder', 'PluginVersion', 'PluginEnable', 'PluginPrivate', 'PluginMenus', 'PluginFolders', 'PluginTriggers', 'PluginPmFunctions', 'PluginRedirectLogin', 'PluginSteps', 'PluginCss', 'PluginJs', 'PluginRestService', 'PluginAttributes', ),
|
||||
BasePeer::TYPE_COLNAME => array (PluginsRegistryPeer::ID, PluginsRegistryPeer::PR_UID, PluginsRegistryPeer::PLUGIN_NAMESPACE, PluginsRegistryPeer::PLUGIN_DESCRIPTION, PluginsRegistryPeer::CLASS_NAME, PluginsRegistryPeer::FRIENDLY_NAME, PluginsRegistryPeer::FILE_NAME, PluginsRegistryPeer::PLUGIN_FOLDER, PluginsRegistryPeer::PLUGIN_VERSION, PluginsRegistryPeer::PLUGIN_ENABLE, PluginsRegistryPeer::PLUGIN_PRIVATE, PluginsRegistryPeer::PLUGIN_MENUS, PluginsRegistryPeer::PLUGIN_FOLDERS, PluginsRegistryPeer::PLUGIN_TRIGGERS, PluginsRegistryPeer::PLUGIN_PM_FUNCTIONS, PluginsRegistryPeer::PLUGIN_REDIRECT_LOGIN, PluginsRegistryPeer::PLUGIN_STEPS, PluginsRegistryPeer::PLUGIN_CSS, PluginsRegistryPeer::PLUGIN_JS, PluginsRegistryPeer::PLUGIN_REST_SERVICE, PluginsRegistryPeer::PLUGIN_ATTRIBUTES, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ID', 'PR_UID', 'PLUGIN_NAMESPACE', 'PLUGIN_DESCRIPTION', 'CLASS_NAME', 'FRIENDLY_NAME', 'FILE_NAME', 'PLUGIN_FOLDER', 'PLUGIN_VERSION', 'PLUGIN_ENABLE', 'PLUGIN_PRIVATE', 'PLUGIN_MENUS', 'PLUGIN_FOLDERS', 'PLUGIN_TRIGGERS', 'PLUGIN_PM_FUNCTIONS', 'PLUGIN_REDIRECT_LOGIN', 'PLUGIN_STEPS', 'PLUGIN_CSS', 'PLUGIN_JS', 'PLUGIN_REST_SERVICE', 'PLUGIN_ATTRIBUTES', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, )
|
||||
BasePeer::TYPE_PHPNAME => array ('Id', 'PrUid', 'PluginNamespace', 'PluginDescription', 'PluginClassName', 'PluginFriendlyName', 'PluginFile', 'PluginFolder', 'PluginSetupPage', 'PluginCompanyLogo', 'PluginWorkspaces', 'PluginVersion', 'PluginEnable', 'PluginPrivate', 'PluginMenus', 'PluginFolders', 'PluginTriggers', 'PluginPmFunctions', 'PluginRedirectLogin', 'PluginSteps', 'PluginCss', 'PluginJs', 'PluginRestService', 'PluginAttributes', ),
|
||||
BasePeer::TYPE_COLNAME => array (PluginsRegistryPeer::ID, PluginsRegistryPeer::PR_UID, PluginsRegistryPeer::PLUGIN_NAMESPACE, PluginsRegistryPeer::PLUGIN_DESCRIPTION, PluginsRegistryPeer::PLUGIN_CLASS_NAME, PluginsRegistryPeer::PLUGIN_FRIENDLY_NAME, PluginsRegistryPeer::PLUGIN_FILE, PluginsRegistryPeer::PLUGIN_FOLDER, PluginsRegistryPeer::PLUGIN_SETUP_PAGE, PluginsRegistryPeer::PLUGIN_COMPANY_LOGO, PluginsRegistryPeer::PLUGIN_WORKSPACES, PluginsRegistryPeer::PLUGIN_VERSION, PluginsRegistryPeer::PLUGIN_ENABLE, PluginsRegistryPeer::PLUGIN_PRIVATE, PluginsRegistryPeer::PLUGIN_MENUS, PluginsRegistryPeer::PLUGIN_FOLDERS, PluginsRegistryPeer::PLUGIN_TRIGGERS, PluginsRegistryPeer::PLUGIN_PM_FUNCTIONS, PluginsRegistryPeer::PLUGIN_REDIRECT_LOGIN, PluginsRegistryPeer::PLUGIN_STEPS, PluginsRegistryPeer::PLUGIN_CSS, PluginsRegistryPeer::PLUGIN_JS, PluginsRegistryPeer::PLUGIN_REST_SERVICE, PluginsRegistryPeer::PLUGIN_ATTRIBUTES, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ID', 'PR_UID', 'PLUGIN_NAMESPACE', 'PLUGIN_DESCRIPTION', 'PLUGIN_CLASS_NAME', 'PLUGIN_FRIENDLY_NAME', 'PLUGIN_FILE', 'PLUGIN_FOLDER', 'PLUGIN_SETUP_PAGE', 'PLUGIN_COMPANY_LOGO', 'PLUGIN_WORKSPACES', 'PLUGIN_VERSION', 'PLUGIN_ENABLE', 'PLUGIN_PRIVATE', 'PLUGIN_MENUS', 'PLUGIN_FOLDERS', 'PLUGIN_TRIGGERS', 'PLUGIN_PM_FUNCTIONS', 'PLUGIN_REDIRECT_LOGIN', 'PLUGIN_STEPS', 'PLUGIN_CSS', 'PLUGIN_JS', 'PLUGIN_REST_SERVICE', 'PLUGIN_ATTRIBUTES', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -118,10 +127,10 @@ abstract class BasePluginsRegistryPeer
|
||||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'PrUid' => 1, 'PluginNamespace' => 2, 'PluginDescription' => 3, 'ClassName' => 4, 'FriendlyName' => 5, 'FileName' => 6, 'PluginFolder' => 7, 'PluginVersion' => 8, 'PluginEnable' => 9, 'PluginPrivate' => 10, 'PluginMenus' => 11, 'PluginFolders' => 12, 'PluginTriggers' => 13, 'PluginPmFunctions' => 14, 'PluginRedirectLogin' => 15, 'PluginSteps' => 16, 'PluginCss' => 17, 'PluginJs' => 18, 'PluginRestService' => 19, 'PluginAttributes' => 20, ),
|
||||
BasePeer::TYPE_COLNAME => array (PluginsRegistryPeer::ID => 0, PluginsRegistryPeer::PR_UID => 1, PluginsRegistryPeer::PLUGIN_NAMESPACE => 2, PluginsRegistryPeer::PLUGIN_DESCRIPTION => 3, PluginsRegistryPeer::CLASS_NAME => 4, PluginsRegistryPeer::FRIENDLY_NAME => 5, PluginsRegistryPeer::FILE_NAME => 6, PluginsRegistryPeer::PLUGIN_FOLDER => 7, PluginsRegistryPeer::PLUGIN_VERSION => 8, PluginsRegistryPeer::PLUGIN_ENABLE => 9, PluginsRegistryPeer::PLUGIN_PRIVATE => 10, PluginsRegistryPeer::PLUGIN_MENUS => 11, PluginsRegistryPeer::PLUGIN_FOLDERS => 12, PluginsRegistryPeer::PLUGIN_TRIGGERS => 13, PluginsRegistryPeer::PLUGIN_PM_FUNCTIONS => 14, PluginsRegistryPeer::PLUGIN_REDIRECT_LOGIN => 15, PluginsRegistryPeer::PLUGIN_STEPS => 16, PluginsRegistryPeer::PLUGIN_CSS => 17, PluginsRegistryPeer::PLUGIN_JS => 18, PluginsRegistryPeer::PLUGIN_REST_SERVICE => 19, PluginsRegistryPeer::PLUGIN_ATTRIBUTES => 20, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ID' => 0, 'PR_UID' => 1, 'PLUGIN_NAMESPACE' => 2, 'PLUGIN_DESCRIPTION' => 3, 'CLASS_NAME' => 4, 'FRIENDLY_NAME' => 5, 'FILE_NAME' => 6, 'PLUGIN_FOLDER' => 7, 'PLUGIN_VERSION' => 8, 'PLUGIN_ENABLE' => 9, 'PLUGIN_PRIVATE' => 10, 'PLUGIN_MENUS' => 11, 'PLUGIN_FOLDERS' => 12, 'PLUGIN_TRIGGERS' => 13, 'PLUGIN_PM_FUNCTIONS' => 14, 'PLUGIN_REDIRECT_LOGIN' => 15, 'PLUGIN_STEPS' => 16, 'PLUGIN_CSS' => 17, 'PLUGIN_JS' => 18, 'PLUGIN_REST_SERVICE' => 19, 'PLUGIN_ATTRIBUTES' => 20, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, )
|
||||
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'PrUid' => 1, 'PluginNamespace' => 2, 'PluginDescription' => 3, 'PluginClassName' => 4, 'PluginFriendlyName' => 5, 'PluginFile' => 6, 'PluginFolder' => 7, 'PluginSetupPage' => 8, 'PluginCompanyLogo' => 9, 'PluginWorkspaces' => 10, 'PluginVersion' => 11, 'PluginEnable' => 12, 'PluginPrivate' => 13, 'PluginMenus' => 14, 'PluginFolders' => 15, 'PluginTriggers' => 16, 'PluginPmFunctions' => 17, 'PluginRedirectLogin' => 18, 'PluginSteps' => 19, 'PluginCss' => 20, 'PluginJs' => 21, 'PluginRestService' => 22, 'PluginAttributes' => 23, ),
|
||||
BasePeer::TYPE_COLNAME => array (PluginsRegistryPeer::ID => 0, PluginsRegistryPeer::PR_UID => 1, PluginsRegistryPeer::PLUGIN_NAMESPACE => 2, PluginsRegistryPeer::PLUGIN_DESCRIPTION => 3, PluginsRegistryPeer::PLUGIN_CLASS_NAME => 4, PluginsRegistryPeer::PLUGIN_FRIENDLY_NAME => 5, PluginsRegistryPeer::PLUGIN_FILE => 6, PluginsRegistryPeer::PLUGIN_FOLDER => 7, PluginsRegistryPeer::PLUGIN_SETUP_PAGE => 8, PluginsRegistryPeer::PLUGIN_COMPANY_LOGO => 9, PluginsRegistryPeer::PLUGIN_WORKSPACES => 10, PluginsRegistryPeer::PLUGIN_VERSION => 11, PluginsRegistryPeer::PLUGIN_ENABLE => 12, PluginsRegistryPeer::PLUGIN_PRIVATE => 13, PluginsRegistryPeer::PLUGIN_MENUS => 14, PluginsRegistryPeer::PLUGIN_FOLDERS => 15, PluginsRegistryPeer::PLUGIN_TRIGGERS => 16, PluginsRegistryPeer::PLUGIN_PM_FUNCTIONS => 17, PluginsRegistryPeer::PLUGIN_REDIRECT_LOGIN => 18, PluginsRegistryPeer::PLUGIN_STEPS => 19, PluginsRegistryPeer::PLUGIN_CSS => 20, PluginsRegistryPeer::PLUGIN_JS => 21, PluginsRegistryPeer::PLUGIN_REST_SERVICE => 22, PluginsRegistryPeer::PLUGIN_ATTRIBUTES => 23, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('ID' => 0, 'PR_UID' => 1, 'PLUGIN_NAMESPACE' => 2, 'PLUGIN_DESCRIPTION' => 3, 'PLUGIN_CLASS_NAME' => 4, 'PLUGIN_FRIENDLY_NAME' => 5, 'PLUGIN_FILE' => 6, 'PLUGIN_FOLDER' => 7, 'PLUGIN_SETUP_PAGE' => 8, 'PLUGIN_COMPANY_LOGO' => 9, 'PLUGIN_WORKSPACES' => 10, 'PLUGIN_VERSION' => 11, 'PLUGIN_ENABLE' => 12, 'PLUGIN_PRIVATE' => 13, 'PLUGIN_MENUS' => 14, 'PLUGIN_FOLDERS' => 15, 'PLUGIN_TRIGGERS' => 16, 'PLUGIN_PM_FUNCTIONS' => 17, 'PLUGIN_REDIRECT_LOGIN' => 18, 'PLUGIN_STEPS' => 19, 'PLUGIN_CSS' => 20, 'PLUGIN_JS' => 21, 'PLUGIN_REST_SERVICE' => 22, 'PLUGIN_ATTRIBUTES' => 23, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, )
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -230,14 +239,20 @@ abstract class BasePluginsRegistryPeer
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_DESCRIPTION);
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::CLASS_NAME);
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_CLASS_NAME);
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::FRIENDLY_NAME);
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_FRIENDLY_NAME);
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::FILE_NAME);
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_FILE);
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_FOLDER);
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_SETUP_PAGE);
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_COMPANY_LOGO);
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_WORKSPACES);
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_VERSION);
|
||||
|
||||
$criteria->addSelectColumn(PluginsRegistryPeer::PLUGIN_ENABLE);
|
||||
|
||||
Reference in New Issue
Block a user