|
@@ 184-192 (lines=9) @@
|
| 181 |
|
* @param IShare $share |
| 182 |
|
* @param string $userId |
| 183 |
|
*/ |
| 184 |
|
public function deleteFromSelf(IShare $share, $userId) { |
| 185 |
|
$childId = $this->getShareChildId($share, $userId); |
| 186 |
|
|
| 187 |
|
$qb = $this->getBaseUpdateSql(); |
| 188 |
|
$qb->set('permissions', $qb->createNamedParameter(0)); |
| 189 |
|
$this->limitToShare($qb, $childId); |
| 190 |
|
|
| 191 |
|
$qb->execute(); |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
|
| 195 |
|
/** |
|
@@ 204-214 (lines=11) @@
|
| 201 |
|
* @return IShare |
| 202 |
|
* |
| 203 |
|
*/ |
| 204 |
|
public function move(IShare $share, $userId) { |
| 205 |
|
|
| 206 |
|
$childId = $this->getShareChildId($share, $userId); |
| 207 |
|
|
| 208 |
|
$qb = $this->getBaseUpdateSql(); |
| 209 |
|
$qb->set('file_target', $qb->createNamedParameter($share->getTarget())); |
| 210 |
|
$this->limitToShare($qb, $childId); |
| 211 |
|
$qb->execute(); |
| 212 |
|
|
| 213 |
|
return $share; |
| 214 |
|
} |
| 215 |
|
|
| 216 |
|
|
| 217 |
|
/** |