/** * @param int $iIdSocial * * @return array | false */ public function GetSocialById($iIdSocial) { $oSocial = null; if ($this->oConnection->Execute($this->oCommandCreator->GetSocialById($iIdSocial))) { $oRow = $this->oConnection->GetNextRecord(); if ($oRow) { $oSocial = new CTenantSocials(); $oSocial->InitByDbRow($oRow); } $this->oConnection->FreeResult(); } $this->throwDbExceptionIfExist(); return $oSocial; }