+
+ protected function getNotes()
+ {
+ $username = $this->user->getUid();
+ $notes = new \OCA\Grauphel\Lib\NoteStorage($this->urlGen);
+ $notes->setUsername($username);
+ return $notes;
+ }
+
+ protected function getPrettyTagName($rawtag)
+ {
+ if (substr($rawtag, 0, 16) == 'system:notebook:') {
+ return substr($rawtag, 16);
+ } else if (substr($rawtag, 0, 17) == 'grauphel:special:') {
+ return '*' . substr($rawtag, 17) . '*';
+ }
+ return false;
+ }