/** * @param CAccount $oAccount * @param $sAuthType * @param $iDataType * @param $sDataValue * @return bool * @throws CApiBaseException */ public function UpdateAccount(\CAccount &$oAccount, $sAuthType, $iDataType, $sDataValue) { $oObject = new CTwofactorauth(); $oObject->AccountId = $oAccount->IdAccount; $oObject->AuthType = $sAuthType; $oObject->DataType = $iDataType; $oObject->DataValue = $sDataValue; $bResult = $this->oConnection->Execute($this->oCommandCreator->UpdateAccount($oObject)); $this->throwDbExceptionIfExist(); return $bResult; }