Public Member Functions |
| get_total_prices ($user_id) |
| Get sum of all users phone invoices separated to cells price_company and price_private.
|
| get_phone_invoices_of_user ($user_id) |
| Gets all users phone invoices.
|
| get_all_invoice_users ($invoice_id) |
| Gets info about each number in invoice.
|
| get_price () |
| Return price of current user phone invoice.
|
| get_prices () |
| Vat and Out of tax price of each service.
|
| get_user_id ($phone_number) |
| Search for user with specific phone number.
|
Protected Attributes |
| $belongs_to = array('user', 'phone_invoice', 'transfer') |
| $has_many |
Member Function Documentation
Phone_invoice_user_Model::get_all_invoice_users |
( |
|
$invoice_id | ) |
|
Gets info about each number in invoice.
Calculates total price for each number.
- Parameters
-
- Returns
- Mysql_Result
Phone_invoice_user_Model::get_phone_invoices_of_user |
( |
|
$user_id | ) |
|
Gets all users phone invoices.
- Parameters
-
- Returns
- Mysql_Result
Phone_invoice_user_Model::get_price |
( |
| ) |
|
Return price of current user phone invoice.
- Returns
- double
Phone_invoice_user_Model::get_prices |
( |
| ) |
|
Vat and Out of tax price of each service.
- Returns
- Database_Result
Phone_invoice_user_Model::get_total_prices |
( |
|
$user_id | ) |
|
Get sum of all users phone invoices separated to cells price_company and price_private.
- Parameters
-
- Returns
- Mysql_Result
Phone_invoice_user_Model::get_user_id |
( |
|
$phone_number | ) |
|
Search for user with specific phone number.
- Parameters
-
string | $phone_number | Number with prefix |
- Returns
- integer ID or zero if cannot find nuber in database
Member Data Documentation
Phone_invoice_user_Model::$has_many |
|
protected |
Initial value: array
(
'phone_connections', 'phone_calls', 'phone_fixed_calls', 'phone_pays',
'phone_roaming_sms_messages', 'phone_sms_messages', 'phone_vpn_calls'
)
The documentation for this class was generated from the following file: