/** * @param CContact $oContact * @return bool */ public function createContact($oContact) { $bResult = false; if ($this->oConnection->Execute($this->oCommandCreator->createContact($oContact))) { $oContact->IdContact = $this->oConnection->GetLastInsertId('awm_addr_book', 'id_addr'); $bResult = $this->updateContact($oContact); $this->oConnection->Execute($this->oCommandCreator->DeleteAutoCreateContacts($oContact->IdUser, $oContact->ViewEmail)); } return $bResult; }