HOR-3275 improvement

This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-05-19 16:29:32 -04:00
parent 23a928c7e0
commit cf0481a943

View File

@@ -577,11 +577,16 @@ class PMPlugin
return $items;
}
/**
* Gets a general list of all plugins within processmaker per workspace.
*
* @param string $workspace
* @return array
*/
public static function getListAllPlugins($workspace)
{
$pathSingleton = PATH_DATA . "sites" . PATH_SEP . $workspace . PATH_SEP . "plugin.singleton";
$oPluginRegistry = PMPluginRegistry::loadSingleton($pathSingleton);
//$oPluginRegistry = PMPluginRegistry::getSingleton();
$items = [];
if ($handle = opendir(PATH_PLUGINS)) {
while (false !== ($file = readdir($handle))) {