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

Class: DTAZV

Source Location: /Payment_DTA-1.4.3/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: 1.4.3

Copyright:

  • 2008 Martin Schütte

Variables

Methods


Inherited Variables

Inherited Methods

Class: DTABase

DTABase::__construct()
Constructor.
DTABase::addExchange()
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.
DTABase::checkStr()
Checks if string $input contains the expected value at an offset.
DTABase::count()
Return number of exchanges
DTABase::current()
DTABase::filter()
Auxillary method to filter output strings.
DTABase::getFileContent()
Returns the full content of the generated file.
DTABase::getMetaData()
Returns an array with information about the transactions.
DTABase::getNum()
Read integer number of given length from input at offset.
DTABase::getParsingErrors()
Get parsing errors.
DTABase::getStr()
Read string of given length from input at offset.
DTABase::key()
DTABase::makeValidString()
Makes the given string valid for DTA files.
DTABase::next()
DTABase::rewind()
DTABase::saveFile()
Writes the DTA file.
DTABase::setAccountFileSender()
Set the sender of the file.
DTABase::valid()
DTABase::validString()
Checks if the given string contains only chars valid for fields in DTA files.

Class Details

[line 89]
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 ]


Class Variables

$max_amount =

[line 101]

The maximum allowed amount per transfer (in cents).

By default set to the maximum amount for a "EU-Standardüberweisung" that does not have to be reported.


Type:   integer


[ Top ]



Method Detail

__construct (Constructor)   [line 110]

DTAZV __construct( [string $input = null])

Constructor.
  • Access: public

Overrides DTABase::__construct() (Constructor.)

Parameters:

string   $input   —  Optional, a string with DTAZV data to import.

[ Top ]

addExchange   [line 299]

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

Overrides DTABase::addExchange() (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.)

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 382]

string getFileContent( )

Returns the full content of the generated DTAZV file.

All added exchanges are processed.

  • Access: public

Overrides DTABase::getFileContent() (Returns the full content of the generated file.)
[ Top ]

getMetaData   [line 593]

array getMetaData( )

Returns an array with information about the transactions.
  • Return: Returns an array with keys: "sender_name", "sender_bank_code", "sender_account", "sum_amounts", "type", "sum_bankcodes", "sum_accounts", "count", "date"
  • Access: public

Overrides DTABase::getMetaData() (Returns an array with information about the transactions.)
[ Top ]

parse   [line 805]

void parse( string $input)

Parser. Read data from an existing DTAZV file content.
  • Throws: Payment_DTA_Exception on unrecognized input
  • Access: protected

Parameters:

string   $input   —  content of DTAZV file

[ Top ]

setAccountFileSender   [line 146]

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

Overrides DTABase::setAccountFileSender() (Set the sender of the file.)

Parameters:

array   $account   —  Account data fot file sender.

[ Top ]

setMaxAmount   [line 576]

void setMaxAmount( integer $newmax)

Set the maximum allowed amount per transfer.

Pass 0 to disable the check (will set to maximum integer value).

Warning: Use at your own risk.

Amounts > 12500 Euro usually have notification requirements.

Amounts > 50000 Euro are not allowed in a "EU-Standardüberweisung", thus yielding a malformed DTAZV.


Parameters:

integer   $newmax   —  New maximum allowed amount in Euro or 0 to disable check.

[ Top ]


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