|
@@ 86-88 (lines=3) @@
|
| 83 |
|
|
| 84 |
|
public function getDocument(Path $p, array $ifNoneMatch = null) |
| 85 |
|
{ |
| 86 |
|
if (null !== $ifNoneMatch && in_array($this->md->getVersion($p), $ifNoneMatch)) { |
| 87 |
|
throw new RemoteStorageException('document not modified'); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
return $this->d->getDocumentPath($p); |
| 91 |
|
} |
|
@@ 95-97 (lines=3) @@
|
| 92 |
|
|
| 93 |
|
public function getFolder(Path $p, array $ifNoneMatch = null) |
| 94 |
|
{ |
| 95 |
|
if (null !== $ifNoneMatch && in_array($this->md->getVersion($p), $ifNoneMatch)) { |
| 96 |
|
throw new RemoteStorageException('folder not modified'); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
$f = [ |
| 100 |
|
'@context' => 'http://remotestorage.io/spec/folder-description', |