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...
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 |
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
Parser_Ebanka::__construct | ( | $send_emails, | |
$send_sms | |||
) |
Construct.
boolean | $send_emails | Send e-mail notification of received payments? |
boolean | $send_sms | Send SMS notification of received payments? |
|
protected |
Gets amount.
string | $field |
|
protected |
Gets data from regular.
ted uz muzeme ulozit ziskane data do databaze:
|
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
$field | |
$transparent |
|
protected |
Function parses date from and to of the statement and statement number.
Parser_Ebanka::parse | ( | $url, | |
$account_id = NULL |
|||
) |
Parses url.
string | $url | |
integer | $account_id |
const Parser_Ebanka::START_STRING = "Pohyby na" |
Poslední řetězec před začátkem hlavní