Exemplo n.º 1
0
 /**
  * @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;
 }