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

Method updateName

lib/Db/PanoramaMapper.php:197–207  ·  view source on GitHub ↗
(int $id, string $name)

Source from the content-addressed store, hash-verified

195 }
196
197 public function updateName(int $id, string $name): bool
198 {
199 $name = $this->truncate($name, 64);
200 $sql = $this->db->getQueryBuilder();
201 $sql->update(self::TABLE_NAME)
202 ->set('name', $sql->createNamedParameter($name))
203 ->where($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId)))
204 ->andWhere($sql->expr()->eq('id', $sql->createNamedParameter($id)));
205 $sql->executeStatement();
206 return true;
207 }
208
209 /**
210 * get panoramas by group

Callers

nothing calls this directly

Calls 4

truncateMethod · 0.95
setMethod · 0.80
eqMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected