| @@ 214-223 (lines=10) @@ | ||
| 211 | * @api |
|
| 212 | * @throws \allejo\DaPulse\Exceptions\InvalidObjectException |
|
| 213 | */ |
|
| 214 | public function deletePulse () |
|
| 215 | { |
|
| 216 | $this->checkInvalid(); |
|
| 217 | ||
| 218 | $deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId()); |
|
| 219 | ||
| 220 | self::sendDelete($deleteURL); |
|
| 221 | ||
| 222 | $this->deletedObject = true; |
|
| 223 | } |
|
| 224 | ||
| 225 | public function duplicatePulse ($group_id = null, $owner_id = null) |
|
| 226 | { |
|
| @@ 384-392 (lines=9) @@ | ||
| 381 | // Board functions |
|
| 382 | // ================================================================================================================ |
|
| 383 | ||
| 384 | public function deleteBoard () |
|
| 385 | { |
|
| 386 | $this->checkInvalid(); |
|
| 387 | ||
| 388 | $url = sprintf("%s/%s.json", parent::apiEndpoint(), $this->getId()); |
|
| 389 | self::sendDelete($url); |
|
| 390 | ||
| 391 | $this->deletedObject = true; |
|
| 392 | } |
|
| 393 | ||
| 394 | public static function createBoard ($user_id, $name, $description = NULL) |
|
| 395 | { |
|