MCPcopy Create free account
hub / github.com/Rello/analytics / createGroup

Method createGroup

lib/Service/PanoramaService.php:195–200  ·  view source on GitHub ↗
(int $parent = 0)

Source from the content-addressed store, hash-verified

193 }
194
195 public function createGroup(int $parent = 0): int {
196 if (!$this->isValidParent($parent)) {
197 return 0;
198 }
199 return $this->PanoramaMapper->create($this->l10n->t('New'), self::REPORT_TYPE_GROUP, $parent, '[]');
200 }
201
202 public function updateGroup(int $panoramaId, int $groupId): bool {
203 if (!$this->isOwn($panoramaId) || !$this->isValidParent($groupId, $panoramaId)) {

Callers

nothing calls this directly

Calls 3

isValidParentMethod · 0.95
createMethod · 0.45
tMethod · 0.45

Tested by

no test coverage detected