1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
12:
13: namespace Maniaplanet\WebServices\Rankings;
14:
15: use Maniaplanet\WebServices\Exception;
16:
17:
18: class Storm extends \Maniaplanet\WebServices\HTTPClient
19: {
20: function getMultiplayerPlayer($login)
21: {
22: if(!$login)
23: {
24: throw new Exception('Invalid login');
25: }
26: return $this->execute('GET', '/storm/rankings/multiplayer/player/%s/', array($login));
27: }
28:
29: function getMultiplayerWorld($offset = 0, $length = 100)
30: {
31: return $this->execute('GET', '/storm/rankings/multiplayer/zone/?offset=%d&length=%d', array($offset, $length));
32: }
33:
34: function getMultiplayerZone($path, $offset = 0, $length = 100)
35: {
36: if(!$path)
37: {
38: throw new Exception('Invalid zone path');
39: }
40: return $this->execute('GET', '/storm/rankings/multiplayer/zone/%s/?offset=%d&length=%d',
41: array($path, $offset, $length));
42: }
43: }
44:
45: ?>