apps/federation/lib/DbHandler.php
/**
	 * add shared Secret to database
	 *
	 * @param string $url
	 * @param string $sharedSecret
	 */
add shared Secret to database
@param string $url
@param string $sharedSecret
add shared Secret to database @param string $url @param string $sharedSecret
public function addSharedSecret($url, $sharedSecret) {
		$hash = $this->hash($url);
		$query = $this->connection->getQueryBuilder();
		$query->update($this->dbTable)
			->set('shared_secret', $query->createParameter('sharedSecret'))
			->where($query->expr()->eq('url_hash', $query->createParameter('url_hash')))
			->setParameter('url_hash', $hash)
			->setParameter('sharedSecret', $sharedSecret);
		$query->execute();
	}
public function addSharedSecret ( $ url , $ sharedSecret ) { $ hash = $ this -> hash ( $ url ) ; $ query = $ this -> connection -> getQueryBuilder ( ) ; $ query -> update ( $ this -> dbTable ) -> set ( 'shared_secret' , $ query -> createParameter ( 'sharedSecret' ) ) -> where ( $ query -> expr ( ) -> eq ( 'url_hash' , $ query -> createParameter ( 'url_hash' ) ) ) -> setParameter ( 'url_hash' , $ hash ) -> setParameter ( 'sharedSecret' , $ sharedSecret ) ; $ query -> execute ( ) ; }
add shared Secret to database
 @param string $url
 @param string $sharedSecret
add shared Secret to database @param string $url @param string $sharedSecret