예제 #1
0
 /**
  * @param int $iIdTenant
  * @param string $sSocialName
  *
  * @return array | false
  */
 public function GetSocialByName($iIdTenant, $sSocialName)
 {
     $oSocial = null;
     if ($this->oConnection->Execute($this->oCommandCreator->GetSocialByName($iIdTenant, $sSocialName))) {
         $oRow = $this->oConnection->GetNextRecord();
         if ($oRow) {
             $oSocial = new CTenantSocials();
             $oSocial->InitByDbRow($oRow);
         }
         $this->oConnection->FreeResult();
     }
     $this->throwDbExceptionIfExist();
     return $oSocial;
 }