예제 #1
0
 /**
  * @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;
 }