Documentation is available at IncomeEmail.inc
- <?php
- ################################################################
- # This file is part of SlidingDoors #
- # Copyright 2001-2004. Eric D. Nielsen, All rights reserverd #
- # SlidingDoors is availible for license under the GPL, see #
- # the COPYING file in the root directory of the install for #
- # the full terms of the GPL. #
- # #
- # File: IncomeEmail.inc #
- # Author: Eric D. Nielsen #
- # Description: The income class #
- # Constructor: Income #
- # Methods: validateInputs #
- # populateFromFormVars #
- # Change Log:11/12/04 -- created -- edn #
- ################################################################
- class IncomeEmail extends Income
- {
- function IncomeEmail($db=0, $id=0)
- {
- $this->primeField="id";
- $this->setID($id);
- Income::Income($db,0);
- $this->addTable("income_email_details",
- "incomeid","id",
- array("txn_id","service","req_id"),
- array("txnID","service","reqID"));
- if ($id)
- $this->retrieve();
- }
- function validateInputs(&$formVars)
- {
- $valid=Income::validateInputs($formVars);
- return $valid;
- }
- function populateFromFormVars($formVars)
- {
- Income::populateFromFormVars($formVars);
- $this->setPaymentMethod("Email Payment Service");
- $this->setService($formVars["Service"]);
- $this->setTxnID($formVars["TxnID"]);
- $this->setReqID($formVars["ReqID"]);
- }
- function getTxnID()
- {
- return $this->getGeneralData("txnID");
- }
- function setTxnID($data)
- {
- return $this->setGeneralData("txnID",$data);
- }
- function getService()
- {
- return $this->getGeneralData("service");
- }
- function setService($data)
- {
- return $this->setGeneralData("service",$data);
- }
- function getReqID()
- {
- return $this->getGeneralData("reqID");
- }
- function setReqID($data)
- {
- return $this->setGeneralData("reqID",$data);
- }
- }
- ?>
Documentation generated on Tue, 25 Apr 2006 13:03:00 -0400 by phpDocumentor 1.3.0RC3