function getPluginNameFromServicesCtPath($ctPath) { $pluginClasses = KalturaPluginManager::getPlugins(); foreach ($pluginClasses as $pluginClass) { $ct_callback = array($pluginClass, "getServiceConfig"); if (!is_callable($ct_callback)) { continue; } $pluginCtPath = call_user_func($ct_callback); if (realpath($pluginCtPath) === realpath($ctPath)) { return call_user_func(array($pluginClass, 'getPluginName')); } } return null; }