@@ -77,6 +77,9 @@ discard block |
||
| 77 | 77 | return Note::fromFile($this->getFileById($folder, $id), $folder, $this->getTags($id)); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | + /** |
|
| 81 | + * @param integer $id |
|
| 82 | + */ |
|
| 80 | 83 | private function getTags ($id) { |
| 81 | 84 | $tagger = \OC::$server->getTagManager()->load('files'); |
| 82 | 85 | if($tagger===null) { |
@@ -114,6 +117,7 @@ discard block |
||
| 114 | 117 | * @param string $content the content which will be written into the note |
| 115 | 118 | * the title is generated from the first line of the content |
| 116 | 119 | * @param int $mtime time of the note modification (optional) |
| 120 | + * @param string $userId |
|
| 117 | 121 | * @throws NoteDoesNotExistException if note does not exist |
| 118 | 122 | * @return \OCA\Notes\Db\Note the updated note |
| 119 | 123 | */ |
@@ -179,6 +183,7 @@ discard block |
||
| 179 | 183 | * Set or unset a note as favorite. |
| 180 | 184 | * @param int $id the id of the note used to update |
| 181 | 185 | * @param boolean $favorite whether the note should be a favorite or not |
| 186 | + * @param string $userId |
|
| 182 | 187 | * @throws NoteDoesNotExistException if note does not exist |
| 183 | 188 | * @return boolean the new favorite state of the note |
| 184 | 189 | */ |
@@ -15,7 +15,6 @@ |
||
| 15 | 15 | use OCP\IL10N; |
| 16 | 16 | use OCP\Files\IRootFolder; |
| 17 | 17 | use OCP\Files\Folder; |
| 18 | - |
|
| 19 | 18 | use OCA\Notes\Db\Note; |
| 20 | 19 | |
| 21 | 20 | /** |