Allow plugins to always be registered to mantain them with last version always
This commit is contained in:
@@ -165,6 +165,9 @@ class PMPluginRegistry {
|
||||
$detail->aWorkspaces = $plugin->aWorkspaces;
|
||||
if ( isset ($plugin->bPrivate) )
|
||||
$detail->bPrivate = $plugin->bPrivate;
|
||||
if ( isset( $this->_aPluginDetails[$sNamespace] ) ){
|
||||
$detail->enabled=$this->_aPluginDetails[$sNamespace]->enabled;
|
||||
}
|
||||
$this->_aPluginDetails[$sNamespace] = $detail;
|
||||
}
|
||||
|
||||
@@ -352,7 +355,7 @@ class PMPluginRegistry {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Register a dashboard page for cases in the singleton
|
||||
*
|
||||
* @param unknown_type $sNamespace
|
||||
@@ -699,7 +702,7 @@ class PMPluginRegistry {
|
||||
if (array_key_exists($sNamespace, $this->_aPlugins)) {
|
||||
return $this->_aPlugins[$sNamespace];
|
||||
}
|
||||
/*
|
||||
/*
|
||||
$aDetails = KTUtil::arrayGet($this->_aPluginDetails, $sNamespace);
|
||||
if (empty($aDetails)) {
|
||||
return null;
|
||||
@@ -712,7 +715,7 @@ class PMPluginRegistry {
|
||||
$oPlugin =& new $sClassName($sFilename);
|
||||
$this->_aPlugins[$sNamespace] =& $oPlugin;
|
||||
return $oPlugin;
|
||||
*/
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -910,7 +913,7 @@ class PMPluginRegistry {
|
||||
$this->_aCaseSchedulerPlugin[] = new caseSchedulerPlugin ( $sNamespace, $sActionId, $sActionForm, $sActionSave, $sActionExecute, $sActionGetFields);
|
||||
}
|
||||
}
|
||||
/**
|
||||
/**
|
||||
* This function returns all Case Scheduler Plugins registered
|
||||
*
|
||||
* @return string
|
||||
|
||||
Reference in New Issue
Block a user