/** * @param string $sType * @param string $sIdSocial * @return string */ public function SocialExists($sType, $sIdSocial) { $bResult = false; if ($this->oConnection->Execute($this->oCommandCreator->SocialExists($sType, $sIdSocial))) { $oRow = $this->oConnection->GetNextRecord(); if ($oRow) { $bResult = 0 < (int) $oRow->social_count; } $this->oConnection->FreeResult(); } $this->throwDbExceptionIfExist(); return $bResult; }