Пример #1
0
 /**
  * @param int $iUserId
  * @param array $aContactsIds
  * @param int $iSharedTenantId = null
  * @return bool
  */
 public function DeleteContacts($iUserId, $aContactsIds, $iSharedTenantId = null)
 {
     $bResult = false;
     if ($this->oConnection->Execute($this->oCommandCreator->DeleteContacts($iUserId, $aContactsIds, $iSharedTenantId))) {
         $bResult = true;
         $this->oConnection->Execute($this->oCommandCreator->ClearGroupsIdsByContactsIds($aContactsIds));
     }
     return $bResult;
 }