Static Public Member Functions |
static | get_type_names () |
| Types of bank account (key is type, value is name).
|
static | get_type_name ($type) |
| Type of bank account type name.
|
static | create ($name, $account_nr, $bank_nr, $member_id) |
Protected Attributes |
| $belongs_to = array('member') |
| $has_and_belongs_to_many = array('accounts') |
Constructor & Destructor Documentation
Bank_account_Model::__construct |
( |
|
$id = NULL | ) |
|
Contruct of app, shutdown action logs by default.
- Parameters
-
Member Function Documentation
Bank_account_Model::count_bank_accounts |
( |
|
$filter_sql = '' | ) |
|
It counts bank accounts except bank accounts of association.
- Returns
- integer
static Bank_account_Model::create |
( |
|
$name, |
|
|
|
$account_nr, |
|
|
|
$bank_nr, |
|
|
|
$member_id |
|
) |
| |
|
static |
- Author
- Tomas Dulik
- Parameters
-
string | $name | - name of the bank account |
integer | $account_nr | - bank account number |
integer | $bank_nr | - bank number |
integer | $member_id | - id of the owner |
- Returns
- Bank_account_Model new object containing the new record model
Bank_account_Model::get_assoc_bank_accounts |
( |
| ) |
|
It gets all bank accounts of association.
- Author
- Jiri Svitak
- Returns
- Mysql_Result
Bank_account_Model::get_bank_accounts |
( |
|
$limit_from = 0 , |
|
|
|
$limit_results = 20 , |
|
|
|
$order_by = 'id' , |
|
|
|
$order_by_direction = 'asc' , |
|
|
|
$filter_sql = '' |
|
) |
| |
It gets all bank accounts except bank accounts of association.
- Returns
- Mysql_Result
Bank_account_Model::get_destination_bank_accounts |
( |
|
$origin_id | ) |
|
Function gets bank accounts except bank account with origin_id.
- Parameters
-
- Returns
- Mysql_Result
Bank_account_Model::get_related_account_by_attribute_id |
( |
|
$attribute_id | ) |
|
- Author
- Tomas Dulik
- Parameters
-
$attribute_id | - a value from accounts.account_attribute_id |
- Returns
- object containing first related account from the account table having the $type
Bank_account_Model::get_settings_driver |
( |
| ) |
|
Get settings driver for managing of bank account settings.
- Returns
- BankAccountSettings
- Exceptions
-
InvalidArgumentException | On unsuported type of bank account |
static Bank_account_Model::get_type_name |
( |
|
$type | ) |
|
|
static |
Type of bank account type name.
- Returns
- string|null
static Bank_account_Model::get_type_names |
( |
| ) |
|
|
static |
Types of bank account (key is type, value is name).
- Returns
- array
The documentation for this class was generated from the following file: