|
@@ 262-278 (lines=17) @@
|
| 259 |
|
|
| 260 |
|
} |
| 261 |
|
|
| 262 |
|
public function update() |
| 263 |
|
{ |
| 264 |
|
$route = Route4Me::makeRequst(array( |
| 265 |
|
'url' => self::$apiUrl, |
| 266 |
|
'method' => 'PUT', |
| 267 |
|
'query' => array( |
| 268 |
|
'route_id' => isset($this->route_id) ? $this->route_id : null, |
| 269 |
|
'route_destination_id' => isset($this->route_destination_id) ? $this->route_destination_id : null, |
| 270 |
|
), |
| 271 |
|
'body' => array ( |
| 272 |
|
'parameters' => $this->parameters, |
| 273 |
|
), |
| 274 |
|
'HTTPHEADER' => isset($this->httpheaders) ? $this->httpheaders : null, |
| 275 |
|
)); |
| 276 |
|
|
| 277 |
|
return Route::fromArray($route); |
| 278 |
|
} |
| 279 |
|
|
| 280 |
|
public function updateAddress() |
| 281 |
|
{ |
|
@@ 280-294 (lines=15) @@
|
| 277 |
|
return Route::fromArray($route); |
| 278 |
|
} |
| 279 |
|
|
| 280 |
|
public function updateAddress() |
| 281 |
|
{ |
| 282 |
|
$result = Route4Me::makeRequst(array( |
| 283 |
|
'url' => self::$apiUrlAddress, |
| 284 |
|
'method' => 'PUT', |
| 285 |
|
'query' => array( |
| 286 |
|
'route_id' => isset($this->route_id) ? $this->route_id : null, |
| 287 |
|
'route_destination_id' => isset($this->route_destination_id) ? $this->route_destination_id : null, |
| 288 |
|
), |
| 289 |
|
'body' => get_object_vars($this->parameters), |
| 290 |
|
'HTTPHEADER' => isset($this->httpheaders) ? $this->httpheaders : null, |
| 291 |
|
)); |
| 292 |
|
|
| 293 |
|
return $result; |
| 294 |
|
} |
| 295 |
|
|
| 296 |
|
public function addAddresses(array $params) |
| 297 |
|
{ |