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

Method updateGroup

lib/Service/ReportService.php:701–707  ·  view source on GitHub ↗

* update report group assignment (from drag & drop) * * @NoAdminRequired * @param int $reportId * @param $groupId * @return bool */

(int $reportId, $groupId)

Source from the content-addressed store, hash-verified

699 * @return bool
700 */
701 public function updateGroup(int $reportId, $groupId) {
702 $groupId = (int)$groupId;
703 if (!$this->isOwn($reportId) || !$this->isValidParent($groupId, $reportId)) {
704 return false;
705 }
706 return $this->ReportMapper->updateGroup($reportId, $groupId);
707 }
708
709 private function isValidParent(int $parentId, ?int $itemId = null): bool {
710 if ($parentId === 0) {

Callers 2

createMethod · 0.95
importBundleMethod · 0.45

Calls 2

isOwnMethod · 0.95
isValidParentMethod · 0.95

Tested by

no test coverage detected