src/libraries/adapters/DatabaseMySql.php
/**
    * Update the information for an existing credential.
    * This method overwrites existing values present in $params.
    *
    * @param string $id ID of the credential to update.
    * @param array $params Attributes to update.
    * @return boolean
    */
Update the information for an existing credential.
This method overwrites existing values present in $params.

@param string $id ID of the credential to update.
@param array $params Attributes to update.
@return boolean
Update the information for an existing credential . This method overwrites existing values present in $params . @param string $id ID of the credential to update . @param array $params Attributes to update . @return boolean
public function postCredential($id, $params)
  {
    $params = $this->prepareCredential($params);
    $bindings = array();
    if(isset($params['::bindings']))
      $bindings = $params['::bindings'];
    $stmt = $this->sqlUpdateExplode($params, $bindings);
    $bindings[':id'] = $id;
    $bindings[':owner'] = $this->owner;
    $result = $this->db->execute("UPDATE `{$this->mySqlTablePrefix}credential` SET {$stmt} WHERE `id`=:id AND owner=:owner", $bindings);
    return ($result !== false);
  }
public function postCredential ( $ id , $ params ) { $ params = $ this -> prepareCredential ( $ params ) ; $ bindings = array ( ) ; if ( isset ( $ params [ '::bindings' ] ) ) $ bindings = $ params [ '::bindings' ] ; $ stmt = $ this -> sqlUpdateExplode ( $ params , $ bindings ) ; $ bindings [ ':id' ] = $ id ; $ bindings [ ':owner' ] = $ this -> owner ; $ result = $ this -> db -> execute ( " UPDATE ` { $ this -> mySqlTablePrefix } credential` SET  { $ stmt }  WHERE `id`=:id AND owner=:owner " , $ bindings ) ; return ( $ result !== false ) ; }
Update the information for an existing credential.
Update the information for an existing credential .