/** * Returns a struct containing the infos for the map with the specified filename. * @param string $filename Relative to the Maps path * @param bool $multicall * @return Structures\Map * @throws InvalidArgumentException */ function getMapInfo($filename, $multicall = false) { if (!is_string($filename)) { throw new InvalidArgumentException('filename = ' . print_r($filename, true)); } $filename = $this->secureUtf8($filename); if ($multicall) { return $this->execute(ucfirst(__FUNCTION__), array($filename), $this->structHandler('Map')); } return Structures\Map::fromArray($this->execute(ucfirst(__FUNCTION__), array($filename))); }
/** * Returns a struct containing the infos for the map with the specified filename. * The struct contains the following fields : Name, UId, FileName, * Author, Environnement, Mood, BronzeTime, SilverTime, GoldTime, * AuthorTime, CopperPrice, LapRace, NbLaps and NbCheckpoints. * (NbLaps and NbCheckpoints are also present but always set to -1) * @param string $filename * @return Structures\Map * @throws InvalidArgumentException */ function getMapInfo($filename) { if (!is_string($filename)) { throw new InvalidArgumentException('filename = ' . print_r($filename, true)); } $temp = $this->execute(ucfirst(__FUNCTION__), array($filename)); return Structures\Map::fromArray($temp); }