src/PulseBoard.php 1 location
|
@@ 421-429 (lines=9) @@
|
| 418 |
|
// Board functions |
| 419 |
|
// ================================================================================================================= |
| 420 |
|
|
| 421 |
|
public function archiveBoard () |
| 422 |
|
{ |
| 423 |
|
$this->checkInvalid(); |
| 424 |
|
|
| 425 |
|
$url = sprintf("%s/%s.json", self::apiEndpoint(), $this->getId()); |
| 426 |
|
self::sendDelete($url); |
| 427 |
|
|
| 428 |
|
$this->deletedObject = true; |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
public static function createBoard ($name, $userId, $description = NULL) |
| 432 |
|
{ |
src/Pulse.php 1 location
|
@@ 278-287 (lines=10) @@
|
| 275 |
|
* @api |
| 276 |
|
* @throws \allejo\DaPulse\Exceptions\InvalidObjectException |
| 277 |
|
*/ |
| 278 |
|
public function deletePulse () |
| 279 |
|
{ |
| 280 |
|
$this->checkInvalid(); |
| 281 |
|
|
| 282 |
|
$deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId()); |
| 283 |
|
|
| 284 |
|
self::sendDelete($deleteURL); |
| 285 |
|
|
| 286 |
|
$this->deletedObject = true; |
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
public function duplicatePulse ($groupId = NULL, $ownerId = NULL) |
| 290 |
|
{ |
src/PulseUpdate.php 1 location
|
@@ 321-329 (lines=9) @@
|
| 318 |
|
* |
| 319 |
|
* @throws InvalidObjectException if this PulseUpdate has already been deleted |
| 320 |
|
*/ |
| 321 |
|
public function deleteUpdate () |
| 322 |
|
{ |
| 323 |
|
$this->checkInvalid(); |
| 324 |
|
|
| 325 |
|
$url = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId()); |
| 326 |
|
self::sendDelete($url); |
| 327 |
|
|
| 328 |
|
$this->deletedObject = true; |
| 329 |
|
} |
| 330 |
|
|
| 331 |
|
// ================================================================================================================= |
| 332 |
|
// Liking functions |