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: class Title extends \Maniaplanet\WebServices\HTTPClient
18: {
19:
20:
21: function getMultiplayerPlayer($title, $login)
22: {
23: if(!$login)
24: {
25: throw new Exception('Invalid login');
26: }
27: return $this->execute('GET', '/titles/rankings/multiplayer/player/%s/?title=%s', array($login, $title));
28: }
29:
30: function getMultiplayerWorld($title, $offset = 0, $length = 100)
31: {
32: return $this->execute('GET', '/titles/rankings/multiplayer/zone/?title=%s&offset=%d&length=%d', array($title, $offset, $length));
33: }
34:
35: function getMultiplayerZone($title, $path, $offset = 0, $length = 100)
36: {
37: if(!$path)
38: {
39: throw new Exception('Invalid zone path');
40: }
41: return $this->execute('GET', '/titles/rankings/multiplayer/zone/%s/?title=%s&offset=%d&length=%d',
42: array($title, $path, $offset, $length));
43: }
44: }
45:
46: ?>