findPks($platforms); $retVal = ''; foreach ($data as $platform) { $retVal .= "- {$platform->getName()} \n"; } return $retVal; } public function getNotes() { $notes = "**Support Level:**\n\n"; $notes .= "%{$this->getSupport()}%\n\n"; if ($stable = $this->getStablePlatforms()) { $notes .= "**Supported Platforms:**\n"; $notes .= "{$this->processPlatforms($stable)}\n"; } if ($unstable = $this->getUnstablePlatforms()) { $notes .= "**Unsupported Platforms:**\n"; $notes .= "{$this->processPlatforms($unstable)}\n"; } if ($this->notes) { $notes .= "**Additional Notes:**\n"; $notes .= str_replace("- ", "\n- ", parent::getNotes()) . "\n"; } if ($this->getMobyId() != '-1') { $notes .= "\n\n**External Links:**\n"; $notes .= "- getMobyId()}\">MobyGames\n"; } $config = \HTMLPurifier_Config::createDefault(); $purifier = new \HTMLPurifier($config); $parsedown = new \Parsedown(); $notes = $parsedown->text($notes); $notes = $purifier->purify($notes); return $notes; } public function getDataFiles() { return $this->getGame()->getDataFiles(); } public function getMobyId() { return $this->getGame()->getMobyId(); } }