<?php

/**
 * @Copyright Copyright (C) 2009-2010 Ahmad Bilal
 * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
 * Company:     Buruj Solutions
 + Contact:     https://www.burujsolutions.com , info@burujsolutions.com
 * Created on:  Nov 22, 2010
 ^
 + Project:     JS Jobs
 ^ 
 */

defined('_JEXEC') or die('Restricted access');

// our table class for the application data
class TablePaymentHistory extends JTable {

    var $id = null;
    var $uid = null;
    var $packageid = null;
    var $packagetitle = null;
    var $packageprice = null;
    var $discountamount = null;
    var $paidamount = null;
    var $discountmessage = null;
    var $packagediscountstartdate = null;
    var $packagediscountenddate = null;
    var $packageexpireindays = null;
    var $packageshortdetails = null;
    var $packagedescription = null;
    var $status = 1;
    var $created = null;
    var $transactionverified = null;
    var $transactionautoverified = null;
    var $verifieddate = null;
    var $referenceid = null;
    var $payer_firstname = null;
    var $payer_lastname = null;
    var $payer_email = null;
    var $payer_amount = null;
    var $payer_itemname = null;
    var $payer_itemname2 = null;
    var $payer_status = null;
    var $payer_tx_token = null;
    var $packagefor = null;
    var $currencyid = null;

    function __construct(&$db) {
        parent::__construct('#__js_job_paymenthistory', 'id', $db);
    }

    /**
     * Validation
     * 
     * @return boolean True if buffer is valid
     * 
     */
    function check() {
      if (trim( $this->packagetitle) == '') {
          return false;
      }
        return true;
    }

}

?>
