示例#1
0
 public static function deleteNonce(ezcDbHandler $db, $nonce)
 {
     $options = new ezcAuthenticationOpenidDbStoreOptions();
     $nonces = $options->tableNonces;
     $query = new ezcQueryDelete($db);
     $e = $query->expr;
     $query->deleteFrom($db->quoteIdentifier($nonces['name']))->where($e->eq($db->quoteIdentifier($nonces['fields']['nonce']), $query->bindValue($nonce)));
     $query = $query->prepare();
     $query->execute();
 }
 /**
  * Removes the association linked to the OpenID provider URL.
  *
  * Returns true always.
  *
  * @param string $url The URL of the OpenID provider
  * @return bool
  */
 public function removeAssociation($url)
 {
     $table = $this->options->tableAssociations;
     $query = new ezcQueryDelete($this->instance);
     $e = $query->expr;
     $query->deleteFrom($this->instance->quoteIdentifier($table['name']))->where($e->eq($this->instance->quoteIdentifier($table['fields']['url']), $query->bindValue($url)));
     $query = $query->prepare();
     $query->execute();
     return true;
 }