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