예제 #1
0
파일: storage.php 프로젝트: Git-Host/email
 /**
  * Saves changes made to the account.
  * 
  * @param CAccount &$oAccount Account object containing data to be saved.
  * 
  * @return bool
  */
 public function updateAccount(CAccount $oAccount)
 {
     $bResult = (bool) ($this->oConnection->Execute($this->oCommandCreator->updateAccountQuery($oAccount)) && $this->oConnection->Execute($this->oCommandCreator->updateUserQuery($oAccount->User)));
     $this->throwDbExceptionIfExist();
     return $bResult;
 }