(int $parent = 0)
| 166 | } |
| 167 | |
| 168 | public function createGroup(int $parent = 0): int { |
| 169 | if (!$this->isValidParent($parent)) { |
| 170 | return 0; |
| 171 | } |
| 172 | return $this->PanoramaMapper->create($this->l10n->t('New'), self::REPORT_TYPE_GROUP, $parent, '[]'); |
| 173 | } |
| 174 | |
| 175 | public function updateGroup(int $panoramaId, int $groupId): bool { |
| 176 | if (!$this->isOwn($panoramaId) || !$this->isValidParent($groupId, $panoramaId)) { |
nothing calls this directly
no test coverage detected