| @@ 34-46 (lines=13) @@ | ||
| 31 | * @param string $objectId the identifier for the PWC |
|
| 32 | * @param ExtensionDataInterface|null $extension |
|
| 33 | */ |
|
| 34 | public function cancelCheckOut($repositoryId, & $objectId, ExtensionDataInterface $extension = null) |
|
| 35 | { |
|
| 36 | $objectId = $this->getJsonConverter()->convertObject( |
|
| 37 | (array) $this->postJson( |
|
| 38 | $this->getObjectUrl($repositoryId, $objectId), |
|
| 39 | $this->createQueryArray( |
|
| 40 | Constants::CMISACTION_CANCEL_CHECK_OUT, |
|
| 41 | [], |
|
| 42 | $extension |
|
| 43 | ) |
|
| 44 | ) |
|
| 45 | ); |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * Checks-in the private working copy (PWC) document. |
|
| @@ 135-152 (lines=18) @@ | ||
| 132 | * @param boolean|null $contentCopied output: indicator if the content of the original |
|
| 133 | * document has been copied to the PWC |
|
| 134 | */ |
|
| 135 | public function checkOut( |
|
| 136 | $repositoryId, |
|
| 137 | & $objectId, |
|
| 138 | ExtensionDataInterface $extension = null, |
|
| 139 | $contentCopied = null |
|
| 140 | ) { |
|
| 141 | $objectData = $this->getJsonConverter()->convertObject( |
|
| 142 | (array) $this->postJson( |
|
| 143 | $this->getObjectUrl($repositoryId, $objectId), |
|
| 144 | $this->createQueryArray( |
|
| 145 | Constants::CMISACTION_CHECK_OUT, |
|
| 146 | [], |
|
| 147 | $extension |
|
| 148 | ) |
|
| 149 | ) |
|
| 150 | ); |
|
| 151 | $objectId = $objectData->getId(); |
|
| 152 | } |
|
| 153 | ||
| 154 | /** |
|
| 155 | * Returns the list of all document objects in the specified version series, |
|