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

Method updateGroup

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

setMethod · 0.80
eqMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected