|
@@ 237-245 (lines=9) @@
|
| 234 |
|
* @param IShare $share |
| 235 |
|
* @param string $userId |
| 236 |
|
*/ |
| 237 |
|
public function deleteFromSelf(IShare $share, $userId) { |
| 238 |
|
$childId = $this->getShareChildId($share, $userId); |
| 239 |
|
|
| 240 |
|
$qb = $this->getBaseUpdateSql(); |
| 241 |
|
$qb->set('permissions', $qb->createNamedParameter(0)); |
| 242 |
|
$this->limitToShare($qb, $childId); |
| 243 |
|
|
| 244 |
|
$qb->execute(); |
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
|
| 248 |
|
/** |
|
@@ 257-267 (lines=11) @@
|
| 254 |
|
* @return IShare |
| 255 |
|
* |
| 256 |
|
*/ |
| 257 |
|
public function move(IShare $share, $userId) { |
| 258 |
|
|
| 259 |
|
$childId = $this->getShareChildId($share, $userId); |
| 260 |
|
|
| 261 |
|
$qb = $this->getBaseUpdateSql(); |
| 262 |
|
$qb->set('file_target', $qb->createNamedParameter($share->getTarget())); |
| 263 |
|
$this->limitToShare($qb, $childId); |
| 264 |
|
$qb->execute(); |
| 265 |
|
|
| 266 |
|
return $share; |
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
|
| 270 |
|
/** |