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

Method updateSharePassword

lib/Db/ShareMapper.php:209–218  ·  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

207 * @throws Exception
208 */
209 public function updateSharePassword($shareId, $password)
210 {
211 $sql = $this->db->getQueryBuilder();
212 $sql->update(self::TABLE_NAME)
213 ->set('password', $sql->createNamedParameter($password))
214 ->where($sql->expr()->eq('uid_initiator', $sql->createNamedParameter($this->userSession->getUser()->getUID())))
215 ->andWhere($sql->expr()->eq('id', $sql->createNamedParameter($shareId)));
216 $sql->executeStatement();
217 return true;
218 }
219
220 /**
221 * 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