HOR-1317: Adding support for plugin extensions for the granular import and export.

This commit is contained in:
Gustavo Adolfo Cruz Laura
2016-06-16 18:10:18 -04:00
parent 9e95b10463
commit 00a4022d6f
11 changed files with 191 additions and 36 deletions

View File

@@ -1789,5 +1789,28 @@ class PMPluginRegistry
return $this->_aOpenReassignCallback;
}
public function getPluginsData()
{
return $this->_aPlugins;
}
/**
* The following function method extracts the plugin if exists one
* with the same uppercase characters, this is required for the
*
* @param $code
*/
public function getPluginByCode($code)
{
$plugin = false;
foreach ($this->_aPlugins as $plugin) {
$plugin = (array)$plugin;
if (strtoupper($plugin['sNamespace']) == $code) {
return (object)$plugin;
}
}
return $plugin;
}
}