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 postGroup($id, $params)
  {
    $members = false;
    if(isset($params['members']))
    {
      $members = !empty($params['members']) ? (array)explode(',', $params['members']) : null;
      unset($params['members']);
    }
    $params = $this->prepareGroup($id, $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}group` SET {$stmt} WHERE `id`=:id AND owner=:owner", $bindings);
    if($members !== false)
    {
      $this->deleteGroupMembers($id);
      $this->addGroupMembers($id, $members);
    }
    return $result !== false;
  }
public function postGroup ( $ id , $ params ) { $ members = false ; if ( isset ( $ params [ 'members' ] ) ) { $ members = ! empty ( $ params [ 'members' ] ) ? ( array ) explode ( ',' , $ params [ 'members' ] ) : null ; unset ( $ params [ 'members' ] ) ; } $ params = $ this -> prepareGroup ( $ id , $ 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 } group` SET  { $ stmt }  WHERE `id`=:id AND owner=:owner " , $ bindings ) ; if ( $ members !== false ) { $ this -> deleteGroupMembers ( $ id ) ; $ this -> addGroupMembers ( $ id , $ members ) ; } return $ result !== false ; }
Update the information for an existing credential.
Update the information for an existing credential .