コード例 #1
0
ファイル: manager.php プロジェクト: BertLasker/Catch-design
 /**
  * @param CSubscription $oSubscription
  *
  * @return bool
  */
 public function UpdateSubscription($oSubscription)
 {
     $bResult = false;
     try {
         if ($oSubscription->Validate()) {
             $bResult = $this->oStorage->CreateSubscription($oSubscription);
         }
     } catch (CApiBaseException $oException) {
         $this->setLastException($oException);
     }
     //		if ($bResult)
     //		{
     //			$oTenant = $this->TenantManager();
     //			if ($oTenant)
     //			{
     //				$oTenant->UpdateTenantMainCapa($oSubscription->IdTenant);
     //			}
     //		}
     return $bResult;
 }