| @@ 62-78 (lines=17) @@ | ||
| 59 | * currently filed. |
|
| 60 | * @param ExtensionDataInterface|null $extension |
|
| 61 | */ |
|
| 62 | public function removeObjectFromFolder( |
|
| 63 | $repositoryId, |
|
| 64 | $objectId, |
|
| 65 | $folderId = null, |
|
| 66 | ExtensionDataInterface $extension = null |
|
| 67 | ) |
|
| 68 | { |
|
| 69 | $url = $this->getObjectUrl($repositoryId, $objectId); |
|
| 70 | ||
| 71 | $queryArray = [ |
|
| 72 | Constants::CONTROL_CMISACTION => Constants::CMISACTION_REMOVE_OBJECT_FROM_FOLDER, |
|
| 73 | Constants::PARAM_SUCCINCT => $this->getSuccinct() ? 'true' : 'false', |
|
| 74 | Constants::PARAM_FOLDER_ID => $folderId, |
|
| 75 | ]; |
|
| 76 | ||
| 77 | $this->post($url, $queryArray); |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||
| @@ 474-488 (lines=15) @@ | ||
| 471 | * the document object specified (default is <code>true</code>) |
|
| 472 | * @param ExtensionDataInterface|null $extension |
|
| 473 | */ |
|
| 474 | public function deleteObject( |
|
| 475 | $repositoryId, |
|
| 476 | $objectId, |
|
| 477 | $allVersions = true, |
|
| 478 | ExtensionDataInterface $extension = null |
|
| 479 | ) { |
|
| 480 | $url = $this->getObjectUrl($repositoryId, $objectId); |
|
| 481 | $content = [ |
|
| 482 | Constants::CONTROL_CMISACTION => Constants::CMISACTION_DELETE, |
|
| 483 | Constants::PARAM_ALL_VERSIONS => $allVersions ? 'true' : 'false', |
|
| 484 | ]; |
|
| 485 | ||
| 486 | $this->post($url, $content); |
|
| 487 | $this->flushCached(); |
|
| 488 | } |
|
| 489 | ||
| 490 | /** |
|
| 491 | * Deletes the specified folder object and all of its child- and descendant-objects. |
|