/** * @param CContact $oContact * @return array | bool */ public function GetContactGroupsIds($oContact) { $mGroupsIds = false; if ($this->oConnection->Execute($this->oCommandCreator->GetContactGroupsIds($oContact->IdUser, (int) $oContact->IdContact))) { $oRow = null; $mGroupsIds = array(); while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $mGroupsIds[] = (string) $oRow->id_group; } } return $mGroupsIds; }