1 | <?php namespace EventEspresso\core\libraries\rest_api\changes; |
||
7 | class ChangesIn40833 extends ChangesInBase |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Adds hooks so requests to 4.8.29 don't have the checkin endpoints |
||
12 | */ |
||
13 | public function setHooks() |
||
30 | |||
31 | |||
32 | |||
33 | /** |
||
34 | * Removes the checkin and checkout endpoints from the index for requests |
||
35 | * to api versions lowers than 4.8.33 |
||
36 | * |
||
37 | * @param array $routes_on_this_version |
||
38 | * @param string $version |
||
39 | * @return array like $routes_on_this_version |
||
40 | */ |
||
41 | public function removeCheckinRoutesEarlierThan4833($routes_on_this_version, $version) |
||
42 | { |
||
43 | if ($this->appliesToVersion($version)) { |
||
44 | unset($routes_on_this_version['registrations/(?P<REG_ID>\d+)/toggle_checkin_for_datetime/(?P<DTT_ID>\d+)']); |
||
45 | } |
||
46 | return $routes_on_this_version; |
||
47 | } |
||
48 | |||
49 | |||
50 | |||
51 | /** |
||
52 | * We just added headers for notices in this version |
||
53 | * |
||
54 | * @param array $headers_from_ee_notices |
||
55 | * @param string $requested_version |
||
56 | * @return array |
||
57 | */ |
||
58 | public function dontAddHeadersFromEeNotices($headers_from_ee_notices, $requested_version) |
||
65 | } |
||
66 |