Exemplo n.º 1
0
 /**
  * updateUser
  * updates all non-null values supplied in the args in the database
  * 
  * @param type $password
  * @param type $email
  * @param type $fname
  * @param type $lname
  * @param type $addr1
  * @param type $addr2
  * @param type $city
  * @param type $state
  * @param type $zip
  */
 function updateUser($password, $email, $fname, $lname, $addr1, $addr2, $city, $state, $zip)
 {
     // call db function to update user
     try {
         UserDBAPI::updateUser($this->_uName, $password, $email, $fname, $lname, $addr1, $addr2, $city, $state, $zip);
     } catch (Exception $ex) {
         throw new Exception("Unabel to update user record : " . $ex . getMessage(), 0, $ex);
     }
     return true;
 }