remove extend in action disable
This commit is contained in:
@@ -360,6 +360,17 @@ class PMPlugin
|
|||||||
$oPluginRegistry->registerExtendsRestService($this->sNamespace, $className);
|
$oPluginRegistry->registerExtendsRestService($this->sNamespace, $className);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register a extend rest service and expose it
|
||||||
|
*
|
||||||
|
* @param string $className that is name class to extends
|
||||||
|
*/
|
||||||
|
function disableExtendsRestService($className)
|
||||||
|
{
|
||||||
|
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||||
|
$oPluginRegistry->disableExtendsRestService($this->sNamespace, $className);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregister a rest service
|
* Unregister a rest service
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1492,6 +1492,20 @@ class PMPluginRegistry
|
|||||||
{
|
{
|
||||||
return isset($this->_restExtendServices[$className]) ? $this->_restExtendServices[$className] : array();
|
return isset($this->_restExtendServices[$className]) ? $this->_restExtendServices[$className] : array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a extend rest service class from a plugin to be served by processmaker
|
||||||
|
*
|
||||||
|
* @param string $className The service (api) class name
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function disableExtendsRestService($sNamespace, $className)
|
||||||
|
{
|
||||||
|
if (isset($this->_restExtendServices[$className])) {
|
||||||
|
unset($this->_restExtendServices[$className]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unregister a rest service class of a plugin
|
* Unregister a rest service class of a plugin
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user