|
@@ 268-276 (lines=9) @@
|
| 265 |
|
* @param IShare $share |
| 266 |
|
* @param string $userId |
| 267 |
|
*/ |
| 268 |
|
public function deleteFromSelf(IShare $share, $userId) { |
| 269 |
|
$childId = $this->getShareChildId($share, $userId); |
| 270 |
|
|
| 271 |
|
$qb = $this->getBaseUpdateSql(); |
| 272 |
|
$qb->set('permissions', $qb->createNamedParameter(0)); |
| 273 |
|
$this->limitToShare($qb, $childId); |
| 274 |
|
|
| 275 |
|
$qb->execute(); |
| 276 |
|
} |
| 277 |
|
|
| 278 |
|
|
| 279 |
|
/** |
|
@@ 288-298 (lines=11) @@
|
| 285 |
|
* @return IShare |
| 286 |
|
* |
| 287 |
|
*/ |
| 288 |
|
public function move(IShare $share, $userId) { |
| 289 |
|
|
| 290 |
|
$childId = $this->getShareChildId($share, $userId); |
| 291 |
|
|
| 292 |
|
$qb = $this->getBaseUpdateSql(); |
| 293 |
|
$qb->set('file_target', $qb->createNamedParameter($share->getTarget())); |
| 294 |
|
$this->limitToShare($qb, $childId); |
| 295 |
|
$qb->execute(); |
| 296 |
|
|
| 297 |
|
return $share; |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
|
| 301 |
|
/** |