@@ 38-53 (lines=16) @@ | ||
35 | * |
|
36 | * @return \SplFileObject |
|
37 | */ |
|
38 | public static function PobierzZmianyTercUrzedowy(\DateTime $fromDate, \DateTime $toDate = null): \SplFileObject |
|
39 | { |
|
40 | $toDate = $toDate ?? new \DateTime(); |
|
41 | $res = Client::getInstance()->request( |
|
42 | 'PobierzZmianyTercUrzedowy', |
|
43 | [ |
|
44 | 'stanod' => $fromDate->format('Y-m-d'), |
|
45 | 'stando' => $toDate->format('Y-m-d'), |
|
46 | ], |
|
47 | false) |
|
48 | ; |
|
49 | $sPath = sprintf('%s/%s.zip', sys_get_temp_dir(), $res->nazwa_pliku); |
|
50 | $content = base64_decode($res->plik_zawartosc); |
|
51 | ||
52 | return Helper::saveFile($sPath, $content); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * Zmiany w katalogu TERC w wersji adresowej rejestru |
|
@@ 63-78 (lines=16) @@ | ||
60 | * |
|
61 | * @return \SplFileObject |
|
62 | */ |
|
63 | public static function PobierzZmianyTercAdresowy(\DateTime $fromDate, \DateTime $toDate = null): \SplFileObject |
|
64 | { |
|
65 | $toDate = $toDate ?? new \DateTime(); |
|
66 | $res = Client::getInstance()->request( |
|
67 | 'PobierzZmianyTercAdresowy', |
|
68 | [ |
|
69 | 'stanod' => $fromDate->format('Y-m-d'), |
|
70 | 'stando' => $toDate->format('Y-m-d'), |
|
71 | ], |
|
72 | false) |
|
73 | ; |
|
74 | $sPath = sprintf('%s/%s.zip', sys_get_temp_dir(), $res->nazwa_pliku); |
|
75 | $content = base64_decode($res->plik_zawartosc); |
|
76 | ||
77 | return Helper::saveFile($sPath, $content); |
|
78 | } |
|
79 | ||
80 | /** |
|
81 | * Zmiany w katalogu TERC w wersji adresowej rejestru |
|
@@ 88-103 (lines=16) @@ | ||
85 | * |
|
86 | * @return \SplFileObject |
|
87 | */ |
|
88 | public static function PobierzZmianyNTS(\DateTime $fromDate, \DateTime $toDate = null): \SplFileObject |
|
89 | { |
|
90 | $toDate = $toDate ?? new \DateTime(); |
|
91 | $res = Client::getInstance()->request( |
|
92 | 'PobierzZmianyNTS', |
|
93 | [ |
|
94 | 'stanod' => $fromDate->format('Y-m-d'), |
|
95 | 'stando' => $toDate->format('Y-m-d'), |
|
96 | ], |
|
97 | false) |
|
98 | ; |
|
99 | $sPath = sprintf('%s/%s.zip', sys_get_temp_dir(), $res->nazwa_pliku); |
|
100 | $content = base64_decode($res->plik_zawartosc); |
|
101 | ||
102 | return Helper::saveFile($sPath, $content); |
|
103 | } |
|
104 | ||
105 | /** |
|
106 | * Zmiany w katalogu SIMC w wersji urzędowej rejestru |
|
@@ 113-128 (lines=16) @@ | ||
110 | * |
|
111 | * @return \SplFileObject |
|
112 | */ |
|
113 | public static function PobierzZmianySimcUrzedowy(\DateTime $fromDate, \DateTime $toDate = null): \SplFileObject |
|
114 | { |
|
115 | $toDate = $toDate ?? new \DateTime(); |
|
116 | $res = Client::getInstance()->request( |
|
117 | 'PobierzZmianySimcUrzedowy', |
|
118 | [ |
|
119 | 'stanod' => $fromDate->format('Y-m-d'), |
|
120 | 'stando' => $toDate->format('Y-m-d'), |
|
121 | ], |
|
122 | false) |
|
123 | ; |
|
124 | $sPath = sprintf('%s/%s.zip', sys_get_temp_dir(), $res->nazwa_pliku); |
|
125 | $content = base64_decode($res->plik_zawartosc); |
|
126 | ||
127 | return Helper::saveFile($sPath, $content); |
|
128 | } |
|
129 | ||
130 | /** |
|
131 | * Zmiany w katalogu SIMC w wersji adresowej rejestru |
|
@@ 138-153 (lines=16) @@ | ||
135 | * |
|
136 | * @return \SplFileObject |
|
137 | */ |
|
138 | public static function PobierzZmianySimcAdresowy(\DateTime $fromDate, \DateTime $toDate = null): \SplFileObject |
|
139 | { |
|
140 | $toDate = $toDate ?? new \DateTime(); |
|
141 | $res = Client::getInstance()->request( |
|
142 | 'PobierzZmianySimcAdresowy', |
|
143 | [ |
|
144 | 'stanod' => $fromDate->format('Y-m-d'), |
|
145 | 'stando' => $toDate->format('Y-m-d'), |
|
146 | ], |
|
147 | false) |
|
148 | ; |
|
149 | $sPath = sprintf('%s/%s.zip', sys_get_temp_dir(), $res->nazwa_pliku); |
|
150 | $content = base64_decode($res->plik_zawartosc); |
|
151 | ||
152 | return Helper::saveFile($sPath, $content); |
|
153 | } |
|
154 | ||
155 | /** |
|
156 | * Zmiany w katalogu SIMC w wersji statystycznej rejestru |
|
@@ 163-178 (lines=16) @@ | ||
160 | * |
|
161 | * @return \SplFileObject |
|
162 | */ |
|
163 | public static function PobierzZmianySimcStatystyczny(\DateTime $fromDate, \DateTime $toDate = null): \SplFileObject |
|
164 | { |
|
165 | $toDate = $toDate ?? new \DateTime(); |
|
166 | $res = Client::getInstance()->request( |
|
167 | 'PobierzZmianySimcStatystyczny', |
|
168 | [ |
|
169 | 'stanod' => $fromDate->format('Y-m-d'), |
|
170 | 'stando' => $toDate->format('Y-m-d'), |
|
171 | ], |
|
172 | false) |
|
173 | ; |
|
174 | $sPath = sprintf('%s/%s.zip', sys_get_temp_dir(), $res->nazwa_pliku); |
|
175 | $content = base64_decode($res->plik_zawartosc); |
|
176 | ||
177 | return Helper::saveFile($sPath, $content); |
|
178 | } |
|
179 | ||
180 | /** |
|
181 | * Zmiany w katalogu ULIC w wersji urzędowej rejestru |
|
@@ 188-203 (lines=16) @@ | ||
185 | * |
|
186 | * @return \SplFileObject |
|
187 | */ |
|
188 | public static function PobierzZmianyUlicUrzedowy(\DateTime $fromDate, \DateTime $toDate = null): \SplFileObject |
|
189 | { |
|
190 | $toDate = $toDate ?? new \DateTime(); |
|
191 | $res = Client::getInstance()->request( |
|
192 | 'PobierzZmianyUlicUrzedowy', |
|
193 | [ |
|
194 | 'stanod' => $fromDate->format('Y-m-d'), |
|
195 | 'stando' => $toDate->format('Y-m-d'), |
|
196 | ], |
|
197 | false) |
|
198 | ; |
|
199 | $sPath = sprintf('%s/%s.zip', sys_get_temp_dir(), $res->nazwa_pliku); |
|
200 | $content = base64_decode($res->plik_zawartosc); |
|
201 | ||
202 | return Helper::saveFile($sPath, $content); |
|
203 | } |
|
204 | ||
205 | /** |
|
206 | * Zmiany w katalogu ULIC w wersji adresowej rejestru |
|
@@ 213-228 (lines=16) @@ | ||
210 | * |
|
211 | * @return \SplFileObject |
|
212 | */ |
|
213 | public static function PobierzZmianyUlicAdresowy(\DateTime $fromDate, \DateTime $toDate = null): \SplFileObject |
|
214 | { |
|
215 | $toDate = $toDate ?? new \DateTime(); |
|
216 | $res = Client::getInstance()->request( |
|
217 | 'PobierzZmianyUlicAdresowy', |
|
218 | [ |
|
219 | 'stanod' => $fromDate->format('Y-m-d'), |
|
220 | 'stando' => $toDate->format('Y-m-d'), |
|
221 | ], |
|
222 | false) |
|
223 | ; |
|
224 | $sPath = sprintf('%s/%s.zip', sys_get_temp_dir(), $res->nazwa_pliku); |
|
225 | $content = base64_decode($res->plik_zawartosc); |
|
226 | ||
227 | return Helper::saveFile($sPath, $content); |
|
228 | } |
|
229 | } |
|
230 |