FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
Bank_statement_Model Class Reference
Inheritance diagram for Bank_statement_Model:
ORM

Public Member Functions

 __construct ($id=NULL)
 Contruct of app, shutdown action logs by default.
 count_bank_statements ($ba_id, $filter_values=array())
 Counts bank statements of given bank account.
 get_bank_statements ($ba_id=null, $limit_from=0, $limit_results=20, $order_by= 'id', $order_by_direction= 'DESC', $filter_values=array())
 Gets bank statements of given bank account.
 get_last_statement ($bank_account_id)
 Gets last bank statement.

Protected Attributes

 $belongs_to = array('bank_account', 'user')
 $has_many = array('bank_transfers')

Constructor & Destructor Documentation

Bank_statement_Model::__construct (   $id = NULL)

Contruct of app, shutdown action logs by default.

Parameters
type$id

Member Function Documentation

Bank_statement_Model::count_bank_statements (   $ba_id,
  $filter_values = array() 
)

Counts bank statements of given bank account.

Author
Jiri Svitak
Parameters
$ba_id
$filter_values
Returns
integer
Bank_statement_Model::get_bank_statements (   $ba_id = null,
  $limit_from = 0,
  $limit_results = 20,
  $order_by = 'id',
  $order_by_direction = 'DESC',
  $filter_values = array() 
)

Gets bank statements of given bank account.

Author
Jiri Svitak
Parameters
$ba_id
$limit_from
$limit_results
$order_by
$order_by_direction
$filter_values
Returns
Mysql_Result
Bank_statement_Model::get_last_statement (   $bank_account_id)

Gets last bank statement.

Returns
Mysql_Result Gets last closing date from statement.
<type>

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