FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Parser_Ebanka Class Reference

Parser_Ebanka is a parser for getting data from bank account transaction listing in the HTML format used by the Czech bank called "Ebanka" (now Raiffeisen Bank). More...

Inheritance diagram for Parser_Ebanka:
Parser_Html_Table

Public Member Functions

 __construct ($send_emails, $send_sms)
 Construct.
 parse ($url, $account_id=NULL)
 Parses url.
- Public Member Functions inherited from Parser_Html_Table
 open ($url)
 Opens URL.
 get_line ()
 get_line appends AT LEAST one line from the $file into the $buffer.
 parse ($url)
 Parse method.

Public Attributes

const START_STRING = "Pohyby na"
 Poslední řetězec před začátkem hlavní
const YEAR_STRING = "Bankovn"
 U běžných (netransparentních) výpisů
const ACCOUNT_STRING = "IBAN:"
 String before account.
- Public Attributes inherited from Parser_Html_Table
const TIMEOUT = 3

Protected Member Functions

 get_statement_number_and_interval ()
 Function parses date from and to of the statement and statement number.
 get_cislo_uctu ()
 Sets account number.
 get_balances ()
 get_amount ($field)
 Gets amount.
 get_fee ($field, $transparent)
 V posledním sloupci HTML výpisu ebanka dává tyto poplatky: Poplatek, směna, zpráva.
 get_data_from_transparent ()
 Gets data from transparent.
 get_data_from_regular ()
 Gets data from regular.
- Protected Member Functions inherited from Parser_Html_Table
 find_tag_and_trim ($tag)
 find_tag_and_trim($tag) tries to find the tag in the $this->buffer and trim the beginning of the buffer till (and including) the $tag returns false if string not found.
 find_tags_and_trim ($tags)
 The same as previous function, but for multiple tags search.
 find_row_end ()
 this functions tries to find the end of table row.
 get_table_rows ()
 get_table_rows tries to fill the buffer with at least one table row (...<[/]tr>) string.
 get_charset ()
 Sets charset.

Protected Attributes

 $year = false
 $callback
 $result
 $send_sms = Notifications_Controller::KEEP
 $send_emails = Notifications_Controller::KEEP
- Protected Attributes inherited from Parser_Html_Table
 $file
 $charset
 $buffer
 $eoln_pos
 $matches
 $table_end = false

Detailed Description

Parser_Ebanka is a parser for getting data from bank account transaction listing in the HTML format used by the Czech bank called "Ebanka" (now Raiffeisen Bank).

The parsing is a bit peculiar, because Ebanka uses different format for listings that are visible to general public (the "transparent" listing used by NGOV non-profit organizations) and different format for regular listing used in the ebanking application. This parser autodetects these two formats and parses the data according to it.

Benchmarks: Machine: Notebook FSC Lifebook S7110, CPU: Pentium T2400 @ 1.8 GHz Win XP SP2, Apache 2.2.3, PHP 5.2.0 Regular listing with 136 table rows (1 week listing): time=0.1 sec, memory=205 kB Regular listing with 2175 table rows (whole year listing): time=1.6 sec, memory=205 kB Transparent listing with 467 table rows: time=0.14 sec, memory=122 kB

Author
Tomas <Dulik at="" unart="" dot="" cz>="">
Version
1.0

Constructor & Destructor Documentation

Parser_Ebanka::__construct (   $send_emails,
  $send_sms 
)

Construct.

Parameters
boolean$send_emailsSend e-mail notification of received payments?
boolean$send_smsSend SMS notification of received payments?

Member Function Documentation

Parser_Ebanka::get_amount (   $field)
protected

Gets amount.

Parameters
string$field
Returns
string
Parser_Ebanka::get_data_from_regular ( )
protected

Gets data from regular.

ted uz muzeme ulozit ziskane data do databaze:

Parser_Ebanka::get_fee (   $field,
  $transparent 
)
protected

V posledním sloupci HTML výpisu ebanka dává tyto poplatky: Poplatek, směna, zpráva.

Poplatky jsou odděleny značkami
, u transp. výpisu

Parameters
$field
$transparent
Returns
ineteger součet všech poplatků generovaných pro daný řádek
Parser_Ebanka::get_statement_number_and_interval ( )
protected

Function parses date from and to of the statement and statement number.

Author
Tomas Dulik, Jiri Svitak
Parser_Ebanka::parse (   $url,
  $account_id = NULL 
)

Parses url.

Parameters
string$url
integer$account_id

Member Data Documentation

const Parser_Ebanka::START_STRING = "Pohyby na"

Poslední řetězec před začátkem hlavní


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