Source for file IncomeEmail.inc

Documentation is available at IncomeEmail.inc

  1. <?php
  2. ################################################################
  3. # This file is part of SlidingDoors #
  4. # Copyright 2001-2004. Eric D. Nielsen, All rights reserverd #
  5. # SlidingDoors is availible for license under the GPL, see #
  6. # the COPYING file in the root directory of the install for #
  7. # the full terms of the GPL. #
  8. # #
  9. # File: IncomeEmail.inc #
  10. # Author: Eric D. Nielsen #
  11. # Description: The income class #
  12. # Constructor: Income #
  13. # Methods: validateInputs #
  14. # populateFromFormVars #
  15. # Change Log:11/12/04 -- created -- edn #
  16. ################################################################
  17.  
  18. class IncomeEmail extends Income
  19. {
  20.  
  21.  
  22. function IncomeEmail($db=0, $id=0)
  23. {
  24. $this->primeField="id";
  25. $this->setID($id);
  26. Income::Income($db,0);
  27. $this->addTable("income_email_details",
  28. "incomeid","id",
  29. array("txn_id","service","req_id"),
  30. array("txnID","service","reqID"));
  31.  
  32. if ($id)
  33. $this->retrieve();
  34. }
  35.  
  36. function validateInputs(&$formVars)
  37. {
  38. $valid=Income::validateInputs($formVars);
  39. return $valid;
  40. }
  41.  
  42. function populateFromFormVars($formVars)
  43. {
  44. Income::populateFromFormVars($formVars);
  45. $this->setPaymentMethod("Email Payment Service");
  46. $this->setService($formVars["Service"]);
  47. $this->setTxnID($formVars["TxnID"]);
  48. $this->setReqID($formVars["ReqID"]);
  49. }
  50.  
  51. function getTxnID()
  52. {
  53. return $this->getGeneralData("txnID");
  54. }
  55.  
  56. function setTxnID($data)
  57. {
  58. return $this->setGeneralData("txnID",$data);
  59. }
  60. function getService()
  61. {
  62. return $this->getGeneralData("service");
  63. }
  64.  
  65. function setService($data)
  66. {
  67. return $this->setGeneralData("service",$data);
  68. }
  69. function getReqID()
  70. {
  71. return $this->getGeneralData("reqID");
  72. }
  73.  
  74. function setReqID($data)
  75. {
  76. return $this->setGeneralData("reqID",$data);
  77. }
  78.  
  79. }
  80. ?>

Documentation generated on Tue, 25 Apr 2006 13:03:00 -0400 by phpDocumentor 1.3.0RC3