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