コード例 #1
0
 /**
  * Function to delete discount codes track
  *
  * @param  int $trackID ID of the discount code track to be deleted.
  *
  * @access public
  * @static
  * @return true on success else false
  */
 static function del($trackID)
 {
     if (!CRM_Utils_Rule::positiveInteger($trackID)) {
         return FALSE;
     }
     $item = new CRM_CiviDiscount_DAO_Track();
     $item->id = $trackID;
     $item->delete();
     return TRUE;
 }
コード例 #2
0
 /**
  * Function to delete discount codes track
  *
  * @param  int  $trackID     ID of the discount code track to be deleted.
  *
  * @access public
  * @static
  * @return true on success else false
  */
 static function del($trackID)
 {
     if (!CRM_Utils_Rule::positiveInteger($trackID)) {
         return false;
     }
     require_once 'CRM/CiviDiscount/DAO/Track.php';
     $item = new CRM_CiviDiscount_DAO_Track();
     $item->id = $trackID;
     $item->delete();
     return true;
 }