Billing for VoIP.
More...
Static Public Member Functions |
static & | instance () |
| Returns instance of billing.
|
Public Attributes |
const | INACTIVE = 1 |
const | NFX_LBILLING = 2 |
Detailed Description
Billing for VoIP.
- Author
- Roman Sevcik, Ondrej Fibich
Member Function Documentation
Billing::get_account |
( |
|
$accountid | ) |
|
Gets account.
- Parameters
-
- Returns
- mixed false on error, data otherwise
Billing::get_account_calls |
( |
|
$accountid, |
|
|
|
$from, |
|
|
|
$to |
|
) |
| |
Gets calls from acount in given date interval.
- Parameters
-
integer | $accountid | |
string | $from | |
string | $to | |
- Returns
- mixed
Gets error from billing.
- Returns
- array
Billing::get_partner_calls |
( |
|
$from, |
|
|
|
$to |
|
) |
| |
Gets partner calls in given date interval.
- Parameters
-
integer | $accountid | |
string | $from | |
string | $to | |
- Returns
- mixed
Billing::get_price_of_minute_call |
( |
|
$caller_number, |
|
|
|
$number |
|
) |
| |
Gets price of simulated one minute long call.
- Parameters
-
type | $caller_number | Number to call from |
type | $number | Number to call to |
- Returns
- mixed Array with price and details on success FALSE otherwise
Billing::get_subscriber_calls |
( |
|
$accountid, |
|
|
|
$from, |
|
|
|
$to |
|
) |
| |
Gets subscribers calls in given date interval.
- Parameters
-
integer | $accountid | |
string | $from | |
string | $to | |
- Returns
- mixed
Check if driver is on.
- Returns
- bool
static& Billing::instance |
( |
| ) |
|
|
static |
Returns instance of billing.
- Returns
- Billing
Tests connection to billing.
- Returns
- bool
The documentation for this class was generated from the following file: