FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Billing Class Reference

Billing for VoIP. More...

Public Member Functions

 has_driver ()
 Check if driver is on.
 test_conn ()
 Tests connection to billing.
 get_account ($accountid)
 Gets account.
 get_account_calls ($accountid, $from, $to)
 Gets calls from acount in given date interval.
 get_subscriber_calls ($accountid, $from, $to)
 Gets subscribers calls in given date interval.
 get_partner_calls ($from, $to)
 Gets partner calls in given date interval.
 get_price_of_minute_call ($caller_number, $number)
 Gets price of simulated one minute long call.
 get_error ()
 Gets error from billing.

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
integer$accountid
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
Billing::get_error ( )

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_numberNumber to call from
type$numberNumber 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
Billing::has_driver ( )

Check if driver is on.

Returns
bool
static& Billing::instance ( )
static

Returns instance of billing.

Returns
Billing
Billing::test_conn ( )

Tests connection to billing.

Returns
bool

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