/** * @param CContact $oContact * @return bool */ public function UpdateContact($oContact) { if ($this->oConnection->Execute($this->oCommandCreator->UpdateContact($oContact))) { $this->oConnection->Execute($this->oCommandCreator->ClearGroupsIdsByContactsIds(array($oContact->IdContact))); if (0 < count($oContact->GroupsIds)) { $this->oConnection->Execute($this->oCommandCreator->UpdateGroupIdsInContact($oContact)); } return true; } return false; }