public function AnalyticsService::hasMultipleInstances in Analytics 7
File
- lib/
AnalyticsService.php, line 76
Class
Code
public function hasMultipleInstances() {
if (!isset($this->hasMultiple)) {
ctools_include('export');
$services = ctools_export_crud_load_all('analytics_service');
$count = 0;
foreach ($services as $service) {
if ($service->service == $this
->getService()) {
$count++;
}
}
$this->hasMultiple = $count >= 2;
}
return $this->hasMultiple;
}