function analytics_get_service_instance in Analytics 7
Parameters
$service:
Return value
Throws
\Exception
2 calls to analytics_get_service_instance()
File
- ./
analytics.module, line 99
Code
function analytics_get_service_instance($service) {
$info = analytics_get_service_info();
if (!empty($info[$service->service]['class']) && class_exists($info[$service->service]['class'])) {
return new $info[$service->service]['class']((array) $service);
}
else {
//throw new Exception("Could not find analytics service class for {$service->service}.");
}
}