/** * @param int $iChannelId * * @return array */ public function GetTenantsIdsByChannelId($iChannelId) { $aTenantsIds = false; if ($this->oConnection->Execute($this->oCommandCreator->GetTenantsIdsByChannelId($iChannelId))) { $oRow = null; $aTenantsIds = array(); while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $aTenantsIds[] = $oRow->id_tenant; } } $this->throwDbExceptionIfExist(); return $aTenantsIds; }