1 | <?php |
||
21 | class WuBookExtras extends WuBookApi |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $token; |
||
28 | |||
29 | /** |
||
30 | * Create a new WuBookRooms Instance. |
||
31 | */ |
||
32 | public function __construct($config, $cache, $client, $token = null) |
||
38 | |||
39 | /** |
||
40 | * http://tdocs.wubook.net/wired/extras.html#fetch_opportunities |
||
41 | * |
||
42 | * @param string $dfrom |
||
43 | * @param string $dto |
||
44 | * @param int $ancillary |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function fetch_opportunities($dfrom, $dto, $ancillary = 0) |
||
51 | |||
52 | /** |
||
53 | * http://tdocs.wubook.net/wired/extras.html#new_opportunity |
||
54 | * |
||
55 | * @param array $data |
||
56 | * @return mixed |
||
57 | */ |
||
58 | public function new_opportunity($data) |
||
62 | |||
63 | /** |
||
64 | * http://tdocs.wubook.net/wired/extras.html#mod_opportunity |
||
65 | * |
||
66 | * @param array $data |
||
67 | * @return mixed |
||
68 | */ |
||
69 | public function mod_opportunity($data) |
||
73 | |||
74 | /** |
||
75 | * http://tdocs.wubook.net/wired/extras.html#del_opportunity |
||
76 | * |
||
77 | * @param int $id |
||
78 | * @return mixed |
||
79 | */ |
||
80 | public function del_opportunity($id) |
||
84 | |||
85 | /** |
||
86 | * http://tdocs.wubook.net/wired/extras.html#fetch_soffers |
||
87 | * |
||
88 | * @param string $dfrom |
||
89 | * @param string $dto |
||
90 | * @param int $ancillary |
||
91 | * @return mixed |
||
92 | */ |
||
93 | public function fetch_soffers($dfrom, $dto, $ancillary = 0) |
||
97 | |||
98 | /** |
||
99 | * http://tdocs.wubook.net/wired/extras.html#new_soffer |
||
100 | * |
||
101 | * @param array $data |
||
102 | * @return mixed |
||
103 | */ |
||
104 | public function new_soffer($data) |
||
108 | |||
109 | /** |
||
110 | * http://tdocs.wubook.net/wired/extras.html#mod_soffer |
||
111 | * |
||
112 | * @param array $data |
||
113 | * @return mixed |
||
114 | */ |
||
115 | public function mod_soffer($data) |
||
119 | |||
120 | /** |
||
121 | * http://tdocs.wubook.net/wired/extras.html#del_soffer |
||
122 | * |
||
123 | * @param int $id |
||
124 | * @return mixed |
||
125 | */ |
||
126 | public function del_soffer($id) |
||
130 | } |
||
131 |