Esempio n. 1
0
 /**
  * @param CSocial &$oSocial
  * @return bool
  */
 public function UpdateSocial(CSocial &$oSocial)
 {
     $bResult = false;
     try {
         if ($oSocial->Validate()) {
             if ($this->SocialExists($oSocial->Type, $oSocial->IdSocial)) {
                 $bResult = $this->oStorage->UpdateSocial($oSocial);
             }
         }
         $bResult = true;
     } catch (CApiBaseException $oException) {
         $bResult = false;
         $this->setLastException($oException);
     }
     return $bResult;
 }