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

Method createGroup

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

Source from the content-addressed store, hash-verified

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)) {

Callers

nothing calls this directly

Calls 3

isValidParentMethod · 0.95
createMethod · 0.45
tMethod · 0.45

Tested by

no test coverage detected