view->qlink( $linkText, 'monitoring/host/show', array('host' => $host), array('title' => sprintf($this->view->translate('Show detailed information for host %s'), $linkText)) ); } /** * 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 * @param string $class An optional class to use for this link * * @return string */ public function service($service, $serviceLinkText, $host, $hostLinkText, $class = null) { return sprintf( '%s: %s', $this->host($host, $hostLinkText), $this->view->qlink( $serviceLinkText, 'monitoring/service/show', array('host' => $host, 'service' => $service), array( 'title' => sprintf( $this->view->translate('Show detailed information for service %s on host %s'), $serviceLinkText, $hostLinkText ), 'class' => $class ) ) ); } }