makeServiceKey($this->getName())); } protected function exists($name) { return parent::exists($this->makeServiceKey($this->getName())); } protected function makeServiceKey($name) { if ($host = $this->params->get('host')) { return array( 'object_name' => $name, 'host_id' => IcingaHost::load($host, $this->db())->get('id'), ); } else { return array( 'object_name' => $name, 'object_type' => 'template', ); } } }