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

Method updateGroup

lib/Db/PanoramaMapper.php:185–194  ·  view source on GitHub ↗
(int $id, int $groupId)

Source from the content-addressed store, hash-verified

183 }
184
185 public function updateGroup(int $id, int $groupId)
186 {
187 $sql = $this->db->getQueryBuilder();
188 $sql->update(self::TABLE_NAME)
189 ->set('parent', $sql->createNamedParameter($groupId))
190 ->where($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId)))
191 ->andWhere($sql->expr()->eq('id', $sql->createNamedParameter($id)));
192 $sql->executeStatement();
193 return true;
194 }
195
196 public function updateName(int $id, string $name): bool
197 {

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected