FreenetIS
 All Classes Namespaces Functions Variables Pages
Static Public Member Functions | List of all members
UnicreditParser Class Reference

Auxiliary class for parsing CSV bank account listings from czech bank "Unicredit banka". More...

Static Public Member Functions

static getListingHeader ()
 Returns associative array containing important listing header information.
static parseCSV ($csv)
 The core of the parsing is done by this function.

Detailed Description

Auxiliary class for parsing CSV bank account listings from czech bank "Unicredit banka".

The CSV listings are downloaded from the ebanking and stored at dafined path. The CSV format looks like this: Název účtu;Číslo účtu;Měna;Zůstatek HLAVNÍ BÚ V BALÍČKU (PO);1002392380;CZK;0,000 Účet;Částka;Měna;Datum zaúčtování;Valuta;Banka;Název banky;Název banky;Číslo účtu;Název účtu;Adresa;Adresa;Adresa;Detaily transakce;Detaily transakce;Detaily transakce;Detaily transakce;Detaily transakce;Detaily transakce;Konstatní kód;Variabilní kód;Specifický kód;Platební titul;Reference 1002392380;600,000;CZK;2012-02-24;2012-02-24;;;;;;;;;VKLAD HOTOVOSTI V CZK;;;;;;0558;470500;;; {etc.}

Class for parsing bank account listings from czech bank "Unicredit banka".

Author
Petr Hruska, Lukas Turek, Tomas Dulik, Jiri Svitak, Ondrej Fibich

Member Function Documentation

static UnicreditParser::getListingHeader ( )
static

Returns associative array containing important listing header information.

Must be called after parsing.

Author
Jiri Svitak
Returns
header information
static UnicreditParser::parseCSV (   $csv)
static

The core of the parsing is done by this function.

Parameters
string$csvstring containing the original csv file.
Returns
array[array] Integer-indexed array of associative arrays. Each associative array represents one line of the CSV
Exceptions
UnicreditException

The documentation for this class was generated from the following file: