コード例 #1
0
ファイル: storage.php プロジェクト: BertLasker/Catch-design
 /**
  * @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;
 }