src/Pulse.php 1 location
|
@@ 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 |
|
{ |
src/PulseBoard.php 1 location
|
@@ 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 |
src/PulseUpdate.php 1 location
|
@@ 348-356 (lines=9) @@
|
| 345 |
|
* |
| 346 |
|
* @throws InvalidObjectException if this PulseUpdate has already been deleted |
| 347 |
|
*/ |
| 348 |
|
public function deleteUpdate () |
| 349 |
|
{ |
| 350 |
|
$this->checkInvalid(); |
| 351 |
|
|
| 352 |
|
$url = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId()); |
| 353 |
|
self::sendDelete($url); |
| 354 |
|
|
| 355 |
|
$this->deletedObject = true; |
| 356 |
|
} |
| 357 |
|
|
| 358 |
|
// ================================================================================================================= |
| 359 |
|
// Liking functions |