view->qlink( $linkText, 'monitoring/host/show', array('host_name' => $host), array('title' => sprintf($this->view->translate('Show detailed information for host %s'), $host)) ); } /** * Create a service link * * @param string $service Service name * @param string $serviceLinkText Text for the service link, e.g. the service's display name * @param string $host Hostname * @param string $hostLinkText Text for the host link, e.g. the host's display name * * @return string */ public function service($service, $serviceLinkText, $host, $hostLinkText) { return sprintf( $this->view->translate('%s on %s', 'Service running on host'), $this->view->qlink( $serviceLinkText, 'monitoring/service/show', array('host_name' => $host, 'service' => $service), array('title' => sprintf( $this->view->translate('Show detailed information for service %s on host %s'), $service, $host )) ), $this->host($host, $hostLinkText) ); } }