(int $parent = 0)
| 212 | } |
| 213 | |
| 214 | public function createGroup(int $parent = 0): int { |
| 215 | if (!$this->isValidParent($parent)) { |
| 216 | return 0; |
| 217 | } |
| 218 | return $this->PanoramaMapper->create($this->l10n->t('New'), self::REPORT_TYPE_GROUP, $parent, '[]'); |
| 219 | } |
| 220 | |
| 221 | public function updateGroup(int $panoramaId, int $groupId): bool { |
| 222 | if (!$this->isOwn($panoramaId) || !$this->isValidParent($groupId, $panoramaId)) { |
nothing calls this directly
no test coverage detected