| @@ 384-392 (lines=9) @@ | ||
| 381 | // Board functions |
|
| 382 | // ================================================================================================================ |
|
| 383 | ||
| 384 | public function archiveBoard () |
|
| 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 ($name, $user_id, $description = NULL) |
|
| 395 | { |
|
| @@ 258-267 (lines=10) @@ | ||
| 255 | * @api |
|
| 256 | * @throws \allejo\DaPulse\Exceptions\InvalidObjectException |
|
| 257 | */ |
|
| 258 | public function deletePulse () |
|
| 259 | { |
|
| 260 | $this->checkInvalid(); |
|
| 261 | ||
| 262 | $deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId()); |
|
| 263 | ||
| 264 | self::sendDelete($deleteURL); |
|
| 265 | ||
| 266 | $this->deletedObject = true; |
|
| 267 | } |
|
| 268 | ||
| 269 | public function duplicatePulse ($group_id = null, $owner_id = null) |
|
| 270 | { |
|