1 | <?php |
||
21 | class WuBookRestrictions 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/rstrs.html#rplan_add_rplan |
||
41 | * |
||
42 | * @param string $name |
||
43 | * @param int $compact 0|1 |
||
44 | * @return mixed |
||
45 | */ |
||
46 | public function rplan_add_rplan($name, $compact = 1) |
||
50 | |||
51 | /** |
||
52 | * http://tdocs.wubook.net/wired/rstrs.html#rplan_rplans |
||
53 | * |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function rplan_rplans() |
||
60 | |||
61 | /** |
||
62 | * http://tdocs.wubook.net/wired/rstrs.html#rplan_del_rplan |
||
63 | * |
||
64 | * @param int $id |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function rplan_del_rplan($id) |
||
71 | |||
72 | /** |
||
73 | * http://tdocs.wubook.net/wired/rstrs.html#rplan_rename_rplan |
||
74 | * |
||
75 | * @param int $id |
||
76 | * @return mixed |
||
77 | */ |
||
78 | public function rplan_rename_rplan($id, $name) |
||
82 | |||
83 | /** |
||
84 | * http://tdocs.wubook.net/wired/rstrs.html#rplan_update_rplan_rules |
||
85 | * |
||
86 | * @param int $id |
||
87 | * @param array $rules |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function rplan_update_rplan_rules($id, $rules) |
||
94 | |||
95 | /** |
||
96 | * http://tdocs.wubook.net/wired/rstrs.html#rplan_update_rplan_values |
||
97 | * |
||
98 | * @param int $id |
||
99 | * @param string $dfrom |
||
100 | * @param array $values |
||
101 | * @return mixed |
||
102 | */ |
||
103 | public function rplan_update_rplan_values($id, $dfrom, $values) |
||
107 | |||
108 | /** |
||
109 | * http://tdocs.wubook.net/wired/rstrs.html#rplan_get_rplan_values |
||
110 | * |
||
111 | * @param string $dfrom |
||
112 | * @param string $dto |
||
113 | * @param array $rpids |
||
114 | * @return mixed |
||
115 | */ |
||
116 | public function rplan_get_rplan_values($dfrom, $dto, $rpids = []) |
||
120 | } |
||
121 |