/** * @param CSocial &$oSocial * * @return bool */ public function updateSocial(CSocial &$oSocial) { $bResult = false; try { if ($oSocial->validate()) { if ($this->isSocialExists($oSocial)) { $bResult = $this->oStorage->updateSocial($oSocial); } } $bResult = true; } catch (CApiBaseException $oException) { $bResult = false; $this->setLastException($oException); } return $bResult; }