/** * Returns the HTML img tags which can be used to display the various icons for a * AbstractNode object. * * @return string */ protected function getCorpusTitle() { if ($this->currObj instanceof ServerNode) { return "ID: " . $this->currObj->getId() . " | Clients: " . $this->currObj->clientCount() . "/" . $this->currObj["virtualserver_maxclients"] . " | Uptime: " . Convert::seconds($this->currObj["virtualserver_uptime"]); } elseif ($this->currObj instanceof ChannelNode && !$this->currObj->isSpacer()) { return "ID: " . $this->currObj->getId() . " | Codec: " . Convert::codec($this->currObj["channel_codec"]) . " | Quality: " . $this->currObj["channel_codec_quality"]; } elseif ($this->currObj instanceof ClientNode) { return "ID: " . $this->currObj->getId() . " | Version: " . Convert::versionShort($this->currObj["client_version"]) . " | Platform: " . $this->currObj["client_platform"]; } elseif ($this->currObj instanceof ServerGroupNode || $this->currObj instanceof ChannelGroupNode) { return "ID: " . $this->currObj->getId() . " | Type: " . Convert::groupType($this->currObj["type"]) . " (" . ($this->currObj["savedb"] ? "Permanent" : "Temporary") . ")"; } }