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

Method createGroup

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

isValidParentMethod · 0.95
createMethod · 0.45
tMethod · 0.45

Tested by

no test coverage detected