@@ -95,6 +95,9 @@ discard block |
||
| 95 | 95 | return $this->getNote($this->getFileById($folder, $id), $folder, $this->getTags($id)); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | + /** |
|
| 99 | + * @param integer $id |
|
| 100 | + */ |
|
| 98 | 101 | private function getTags ($id) { |
| 99 | 102 | $tagger = \OC::$server->getTagManager()->load('files'); |
| 100 | 103 | if($tagger===null) { |
@@ -265,6 +268,9 @@ discard block |
||
| 265 | 268 | return trim($str); |
| 266 | 269 | } |
| 267 | 270 | |
| 271 | + /** |
|
| 272 | + * @param string $content |
|
| 273 | + */ |
|
| 268 | 274 | private function getSafeTitleFromContent($content) { |
| 269 | 275 | // prepare content: remove markdown characters and empty spaces |
| 270 | 276 | $content = preg_replace("/^\s*[*+-]\s+/mu", "", $content); // list item |