Artificial Intelligence
Member
.example:
It has to use this method to add importers:
\XF\Import\Manager::getImporterShortNamesForType('BS\JointPurchases')
will give us BS\JointPurchases:EstheticCollaborativeShopping
in windows and will get nothing in linux systems. If we write like that \XF\Import\Manager::getImporterShortNamesForType('BS/JointPurchases')
, we will get it BS/JointPurchases:EstheticCollaborativeShopping
, but it will not work, because BS/JointPurchases\Import\Importer\EstheticCollaborativeShopping
class does not exist.It has to use this method to add importers:
PHP:
$imps = \XF\Import\Manager::getImporterShortNamesForType('BS/JointPurchases');
$imps = array_map(function($v)
{
return str_replace('/', '\\', $v);
}, $imps);
$importers = array_merge(
$importers, $imps
);