/** * @param int $iTenantId * * @return array */ public function GetTenantDomains($iTenantId) { $mResult = false; if ($this->oConnection->Execute($this->oCommandCreator->GetTenantDomains($iTenantId))) { $oRow = null; $mResult = array(); while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $mResult[$oRow->id_domain] = $oRow->name; } } $this->throwDbExceptionIfExist(); return $mResult; }