Bank account settings enables to store different types of settings to bank account (e.g. More...
Public Member Functions | |
can_download_statements_automatically () | |
Can be bank statements automatically downloaded (using API) in this type of bank? | |
get_download_statement_type () | |
Gets download statement type (e.g. | |
get_download_base_url () | |
Gets base download URL (e.g. | |
get_download_statement_url () | |
Gets download URL for statement (e.g. | |
can_import_statements () | |
Can be bank statements imported in this type of bank? | |
get_column_fields () | |
Gets fields array (key is a name of field and value contains a another array with fields type, name, help, rules, etc.) | |
get_column_data () | |
Gets settings data in JSON format. | |
load_column_data ($json) | |
Loads data settings from a given JSON data. | |
__isset ($column) | |
Checks if the column exists in the column data. | |
__get ($column) | |
Gets value from the column data. | |
__set ($column, $data) | |
Sets value from the column data. |
Static Public Member Functions | |
static | factory ($type) |
Creates bank account setting for bank account with given type. |
Public Attributes | |
const | DIR = 'bank_account_settings' |
Dir with driver classes. | |
const | FIELD_TYPE_INT = 'integer' |
Integer type. | |
const | FIELD_TYPE_BOOL = 'boolean' |
Integer type. | |
const | FIELD_TYPE_STRING = 'string' |
String type. | |
const | FIELD_TYPE_DROPDOWN = 'dropdown' |
Dropdown type. | |
const | FIELD_TYPE_DATESELECT = 'dateselect' |
Dateselect type. |
Bank account settings enables to store different types of settings to bank account (e.g.
API key) in order to type of the bank account.
Types of bank account are specified at Bank_Account_Model database entity.
Bank_Account_Settings::__get | ( | $column | ) |
Gets value from the column data.
string | $column | Column name |
InvalidArgumentException | On invalid column |
Bank_Account_Settings::__isset | ( | $column | ) |
Checks if the column exists in the column data.
string | $column | Column name |
Bank_Account_Settings::__set | ( | $column, | |
$data | |||
) |
Sets value from the column data.
string | $column | Column name |
mixed | $data |
InvalidArgumentException | On invalid column or invalid data format |
|
abstract |
Can be bank statements automatically downloaded (using API) in this type of bank?
Reimplemented in Tatrabanka_Bank_Account_Settings, Fio_Bank_Account_Settings, Raiffeisenbank_Bank_Account_Settings, and Unicredit_Bank_Account_Settings.
|
abstract |
Can be bank statements imported in this type of bank?
Reimplemented in Tatrabanka_Bank_Account_Settings, Fio_Bank_Account_Settings, Raiffeisenbank_Bank_Account_Settings, and Unicredit_Bank_Account_Settings.
|
static |
Creates bank account setting for bank account with given type.
If an new bank account type will be added, it must be added also to this method.
integer | $type | type of bank account (from ORM model) |
InvalidArgumentException | On unknown type |
Bank_Account_Settings::get_column_data | ( | ) |
Gets settings data in JSON format.
This method is used for retrieving new value in order to store it into a database table.
|
abstract |
Gets fields array (key is a name of field and value contains a another array with fields type, name, help, rules, etc.)
Reimplemented in Tatrabanka_Bank_Account_Settings, Fio_Bank_Account_Settings, Raiffeisenbank_Bank_Account_Settings, and Unicredit_Bank_Account_Settings.
Bank_Account_Settings::get_download_base_url | ( | ) |
Gets base download URL (e.g.
http://mbank/) Valid only if download is enabled.
Override this method in order to support auto downloading of statements.
InvalidArgumentException | On invalid settings (e.g. API token) |
Reimplemented in Fio_Bank_Account_Settings.
Bank_Account_Settings::get_download_statement_type | ( | ) |
Gets download statement type (e.g.
csv, json). Valid only if download is enabled. Tells what file type is espected as result of download. This type is later use for detection of importer for statement.
Override this method in order to support auto downloading of statements.
Reimplemented in Tatrabanka_Bank_Account_Settings, and Fio_Bank_Account_Settings.
Bank_Account_Settings::get_download_statement_url | ( | ) |
Gets download URL for statement (e.g.
http://mbank/json/transactions) Valid only if download is enabled. The statment for the bank account is downloaded from this URL.
This method may use get_download_base_url() method for obtaining of base URL path.
Override this method in order to support auto downloading of statements.
InvalidArgumentException | On invalid settings (e.g. API token) |
Reimplemented in Tatrabanka_Bank_Account_Settings, and Fio_Bank_Account_Settings.
Bank_Account_Settings::load_column_data | ( | $json | ) |
Loads data settings from a given JSON data.
string | JSON data |