|
@@ 50-58 (lines=9) @@
|
| 47 |
|
$this->noteService = $noteService; |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public function deleteGroup($FOLDER, $group) { |
| 51 |
|
// We actually need to just rename all the notes |
| 52 |
|
$uid = \OC::$server->getUserSession()->getUser()->getUID(); |
| 53 |
|
$results = $this->noteMapper->findNotesByGroup($group, $uid); |
| 54 |
|
foreach ($results as $result) { |
| 55 |
|
$this->noteService->renameNote($FOLDER, $result->getId(), $result->getName(), ''); |
| 56 |
|
} |
| 57 |
|
return true; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
public function renameGroup($FOLDER, $group, $newgroup) { |
| 61 |
|
$uid = \OC::$server->getUserSession()->getUser()->getUID(); |
|
@@ 60-67 (lines=8) @@
|
| 57 |
|
return true; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
public function renameGroup($FOLDER, $group, $newgroup) { |
| 61 |
|
$uid = \OC::$server->getUserSession()->getUser()->getUID(); |
| 62 |
|
$results = $this->noteMapper->findNotesByGroup($group, $uid); |
| 63 |
|
foreach ($results as $result) { |
| 64 |
|
$this->noteService->renameNote($FOLDER, $result->getId(), $result->getName(), $newgroup); |
| 65 |
|
} |
| 66 |
|
return true; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
} |
| 70 |
|
|