/** * @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; }