/** * Returns a list of maps among the current selection of the server. * @param int $length Maximum number of infos to be returned * @param int $offset Starting index in the list * @param bool $multicall * @return Structures\Map[] * @throws InvalidArgumentException */ function getMapList($length = -1, $offset = 0, $multicall = false) { if (!is_int($length)) { throw new InvalidArgumentException('length = ' . print_r($length, true)); } if (!is_int($offset)) { throw new InvalidArgumentException('offset = ' . print_r($offset, true)); } if ($multicall) { return $this->execute(ucfirst(__FUNCTION__), array($length, $offset), $this->structHandler('Map', true)); } return Structures\Map::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__), array($length, $offset))); }
/** * Returns a list of maps among the current selection of the server. * This method take two parameters. * The first parameter specifies the maximum number of infos to be returned, * the second one the starting index in the selection. * The list is an array of structures. Each structure contains the following fields : Name, UId, FileName, Environnement, Author, GoldTime and CopperPrice. * @param int $length specifies the maximum number of infos to be returned * @param int $offset specifies the starting index in the list * @return Structures\Map[] The list is an array of Map * @throws InvalidArgumentException */ function getMapList($length, $offset) { if (!is_int($length)) { throw new InvalidArgumentException('length = ' . print_r($length, true)); } if (!is_int($offset)) { throw new InvalidArgumentException('offset = ' . print_r($offset, true)); } return Structures\Map::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__), array($length, $offset))); }