src/libraries/adapters/DatabaseSimpleDb.php
/**
    * Update the information for the user record.
    * This method overwrites existing values present in $params.
    *
    * @param string $id ID of the user to update which is always 1.
    * @param array $params Attributes to update.
    * @return boolean
    */
Update the information for the user record.
This method overwrites existing values present in $params.

@param string $id ID of the user to update which is always 1.
@param array $params Attributes to update.
@return boolean
Update the information for the user record . This method overwrites existing values present in $params . @param string $id ID of the user to update which is always 1 . @param array $params Attributes to update . @return boolean
public function postUser($params)
  {
    if(isset($params['password']) && empty($params['password']))
      unset($params['password']);
    $res = $this->db->put_attributes($this->domainUser, $this->owner, $params, true);
    $this->logErrors($res);
    return $res->isOK();
  }
public function postUser ( $ params ) { if ( isset ( $ params [ 'password' ] ) && empty ( $ params [ 'password' ] ) ) unset ( $ params [ 'password' ] ) ; $ res = $ this -> db -> put_attributes ( $ this -> domainUser , $ this -> owner , $ params , true ) ; $ this -> logErrors ( $ res ) ; return $ res -> isOK ( ) ; }
Update the information for the user record.
Update the information for the user record .
// make sure we don't overwrite an existing user record