Payment_DTA
[ class tree: Payment_DTA ] [ index: Payment_DTA ] [ all elements ]

Class: DTAZV

Source Location: /Payment_DTA-1.3.0a2/DTAZV.php

Class Overview

DTABase
   |
   --DTAZV

DTAZV class provides functions to create and handle with DTAZV files used in Germany to exchange informations about european money transactions with banks or online banking programs.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2008 Martin Schütte

Methods


Inherited Variables

Inherited Methods

Class: DTABase

DTABase::DTABase()
Constructor.
DTABase::count()
Return number of exchanges
DTABase::makeValidString()
Makes the given string valid for DTA files.
DTABase::saveFile()
Writes the DTA file.
DTABase::validString()
Checks if the given string contains only chars valid for fields in DTA files.

Class Details

[line 99]
DTAZV class provides functions to create and handle with DTAZV files used in Germany to exchange informations about european money transactions with banks or online banking programs.


[ Top ]


Method Detail

DTAZV (Constructor)   [line 106]

DTAZV DTAZV( )

Constructor.
  • Access: public

[ Top ]

addExchange   [line 197]

boolean addExchange( array $account_receiver, double $amount, array $purposes, [array $account_sender = array()])

Adds an exchange.

First the account data for the receiver of the exchange is set. In the case the DTA file contains credits, this is the payment receiver. In the other case (the DTA file contains debits), this is the account, from which money is taken away.

If the sender is not specified, values of the file sender are used by default. Account data for sender contain name Sender's name. Maximally 35 chars are allowed. additional_name Sender's additional name (max. 35 chars) street Sender's street/PO Box (max. 35 chars) city Sender's city (max. 35 chars) bank_code Sender's bank code (8-digit BLZ) account_number Sender's account number (10-digit)

Account data for receiver contain name Receiver's name. Maximally 35 chars are allowed. additional_name Receiver's additional name (max. 35 chars) street Receiver's street/PO Box (max. 35 chars) city Receiver's city (max. 35 chars) bank_code Receiver's bank code (8 or 11 char BIC) account_number Receiver's account number (up to 34 char IBAN)

  • Access: public

Parameters:

array   $account_receiver   —  Receiver's account data.
double   $amount   —  Amount of money (Euro) in this exchange.
array   $purposes   —  Array of up to 4 lines (max. 35 chars each) for description of the exchange.
array   $account_sender   —  Sender's account data.

[ Top ]

getFileContent   [line 309]

string getFileContent( )

Returns the full content of the generated DTAZV file.

All added exchanges are processed.

  • Access: public

[ Top ]

setAccountFileSender   [line 127]

boolean setAccountFileSender( array $account)

Set the sender of the DTAZV file. Must be set for valid DTAZV file.

The given account data is also used as default sender's account. Account data contains name Sender's name. Maximally 35 chars are allowed. additional_name Sender's additional name (max. 35 chars) street Sender's street/PO Box (max. 35 chars) city Sender's city (max. 35 chars) bank_code Sender's bank code (BLZ, 8-digit) account_number Sender's account number (10-digit)

  • Access: public

Parameters:

array   $account   —  Account data fot file sender.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:28:52 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.