@@ -25,6 +25,9 @@ discard block |
||
| 25 | 25 | $this->metaMapper = $metaMapper; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $userId |
|
| 30 | + */ |
|
| 28 | 31 | public function updateAll($userId, Array $notes) { |
| 29 | 32 | $metas = $this->metaMapper->getAll($userId); |
| 30 | 33 | $metas = $this->getIndexedArray($metas, 'fileId'); |
@@ -49,6 +52,9 @@ discard block |
||
| 49 | 52 | return $metas; |
| 50 | 53 | } |
| 51 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $property |
|
| 57 | + */ |
|
| 52 | 58 | private function getIndexedArray(array $data, $property) { |
| 53 | 59 | $property = ucfirst($property); |
| 54 | 60 | $getter = 'get'.$property; |
@@ -8,8 +8,6 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace OCA\Notes\Service; |
| 10 | 10 | |
| 11 | -use OCA\Notes\Db\Note; |
|
| 12 | -use OCA\Notes\Db\Meta; |
|
| 13 | 11 | use OCA\Notes\Db\MetaMapper; |
| 14 | 12 | |
| 15 | 13 | /** |