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

Method updateSharePassword

lib/Db/ShareMapper.php:206–215  ·  view source on GitHub ↗

* Update the password of a share * @param $shareId * @param $password * @return bool * @throws Exception */

($shareId, $password)

Source from the content-addressed store, hash-verified

204 * @throws Exception
205 */
206 public function updateSharePassword($shareId, $password)
207 {
208 $sql = $this->db->getQueryBuilder();
209 $sql->update(self::TABLE_NAME)
210 ->set('password', $sql->createNamedParameter($password))
211 ->where($sql->expr()->eq('uid_initiator', $sql->createNamedParameter($this->userSession->getUser()->getUID())))
212 ->andWhere($sql->expr()->eq('id', $sql->createNamedParameter($shareId)));
213 $sql->executeStatement();
214 return true;
215 }
216
217 /**
218 * Update the domain of a share

Callers 1

updateMethod · 0.80

Calls 3

setMethod · 0.80
updateMethod · 0.45
getUIDMethod · 0.45

Tested by

no test coverage detected