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

Method updateGroup

lib/Service/ReportService.php:697–703  ·  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

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

Callers 1

createMethod · 0.95

Calls 2

isOwnMethod · 0.95
isValidParentMethod · 0.95

Tested by

no test coverage detected