コード例 #1
0
ファイル: notifier.php プロジェクト: bellodox/CrowdFunding
 /**
  * Remove a record of payment session from the database.
  *
  * @param stdClass $session
  */
 public function closePaymentSession($session)
 {
     if (is_object($session) and (int) $session->id > 0) {
         $intention = new Crowdfunding\Intention(JFactory::getDbo());
         $intention->setId($session->id);
         $intention->delete();
     }
 }
コード例 #2
0
ファイル: notifier.php プロジェクト: Eautentik/CrowdFunding
 /**
  * Remove a record of payment session from the database.
  *
  * @param object $session
  */
 public function closePaymentSession($session)
 {
     if (!empty($session->id)) {
         $intention = new Crowdfunding\Intention(JFactory::getDbo());
         $intention->setId($session->id);
         $intention->delete();
     }
 }