name = $object->hostname . ';Hoststate'; $this->hostname = $object->hostname; $this->bp = $bp; if (isset($object->state)) { $this->setState($object->state); } else { $this->setState(0)->setMissing(); } } public function renderLink($view) { if ($this->bp->isSimulationMode()) { return $view->qlink($this->getHostname(), 'businessprocess/host/simulate', array( 'node' => $this->name, 'processName' => $this->bp->getName() )); } else { return $view->qlink($this->getHostname(), 'monitoring/host/show', array( 'host' => $this->getHostname, 'processName' => $this->bp->getName() )); } } public function getHostname() { return $this->hostname; } }