/** * @param int $iIdTenant * * @return string */ public function GetTenantLoginById($iIdTenant) { $sResult = ''; if ($this->oConnection->Execute($this->oCommandCreator->GetTenantLoginById($iIdTenant))) { $oRow = $this->oConnection->GetNextRecord(); if ($oRow) { $sResult = (string) $oRow->login; } $this->oConnection->FreeResult(); } $this->throwDbExceptionIfExist(); return $sResult; }