| @@ 322-331 (lines=10) @@ | ||
| 319 | * |
|
| 320 | * @throws InvalidObjectException |
|
| 321 | */ |
|
| 322 | public function deletePulse () |
|
| 323 | { |
|
| 324 | $this->checkInvalid(); |
|
| 325 | ||
| 326 | $deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId()); |
|
| 327 | $this->jsonResponse = self::sendDelete($deleteURL); |
|
| 328 | $this->assignResults(); |
|
| 329 | ||
| 330 | $this->deletedObject = true; |
|
| 331 | } |
|
| 332 | ||
| 333 | public function duplicatePulse ($groupId = null, $ownerId = null) |
|
| 334 | { |
|
| @@ 453-461 (lines=9) @@ | ||
| 450 | * |
|
| 451 | * @throws InvalidObjectException if the object has already been deleted |
|
| 452 | */ |
|
| 453 | public function archiveBoard () |
|
| 454 | { |
|
| 455 | $this->checkInvalid(); |
|
| 456 | ||
| 457 | $url = sprintf("%s/%s.json", self::apiEndpoint(), $this->getId()); |
|
| 458 | self::sendDelete($url); |
|
| 459 | ||
| 460 | $this->deletedObject = true; |
|
| 461 | } |
|
| 462 | ||
| 463 | /** |
|
| 464 | * Create a new board |
|