FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
VoIP_calls_Controller Class Reference
Inheritance diagram for VoIP_calls_Controller:
Controller

Public Member Functions

 __construct ()
 Only check whether is VoIP enabled.
 index ()
 Redirects to show all.
 show_all ($from=null, $to=null, $limit_results=100, $order_by= 'type', $order_by_direction= 'asc', $page_word=null, $page=1)
 Shows VoIP calls.
 show_by_member ($member_id=null, $from=null, $to=null, $limit_results=100, $order_by= 'type', $order_by_direction= 'asc', $page_word=null, $page=1)
 Shows VoIP calls by member.
 show_by_user ($user_id=null, $from=null, $to=null, $limit_results=100, $order_by= 'type', $order_by_direction= 'asc', $page_word=null, $page=1)
 Shows VoIP calls by user.
 voip_call_price ()
 AJAX function for getting price of call.
- Public Member Functions inherited from Controller
 is_user_in_group ($aro_group_id, $aro_id)
 Checks if user is in ARO group.
 acl_check_view ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may view all $axo_value object in $axo_section else return false.
 acl_check_edit ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may edit all $axo_value object in $axo_section else return false.
 acl_check_new ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may add all $axo_value object in $axo_section else return false.
 acl_check_delete ($axo_section, $axo_value, $member_id=NULL, $force_own=FALSE)
 Fuction checks access rights Return true if currently logged user (stored in $_SESSION['user_id']) may view own $axo_value object in $axo_section (and in variable $member_id is his own id of member) or if currently logged user may delete all $axo_value object in $axo_section else return false.
 build_menu ()
 Build menu.
 url ()
 Return URL for controller and method.
 redirect ($uri=NULL, $id=NULL, $glue= '/')
 Redirects to uri according to attribute noredirect.

Static Public Member Functions

static parse_number ($number, $area= '')
 Parses number, returns number with country code, eg.
static number ($number, $user_id, $private_users=array())
 Tries to find number in IS and prints it.
- Static Public Member Functions inherited from Controller
static & instance ()
 Singleton instance of Controller.
static error ($message_type, $content=NULL)
 Function shows error of given message number.
static warning ($message_type, $content=NULL)
 Function shows warning of given message number.

Static Protected Member Functions

static caller_partner ($item, $name)
 Callbacks /////////////////////////////////////////////////////////////.
static callcon_partner ($item, $name)
 Callcon partner field.
static call_length ($item, $name)
 Length field.
static type ($item, $name)
 Type field.
static destination ($item, $name)
 Destination field.

Additional Inherited Members

- Public Attributes inherited from Controller
const ICON_ERROR = 1
const ICON_GOOD = 2
const ICON_HELP = 3
const ICON_INFO = 4
const ICON_WARNING = 5
 $arr
 $settings = NULL
 $popup = 0
 $dialog = 0
 $noredirect = FALSE
 $user_has_voip = 0
 $ip_address_span = ''
 $unread_user_mails = 0
 $count_of_unclosed_logged_errors = 0
 $devices_down_count = 0
 $user_favourites_pages = NULL
 $axo_doc_access = FALSE
- Protected Member Functions inherited from Controller
 is_preprocesor_enabled ()
 This methods defines whether the preprocessor of MY_Controller is loaded or not.
- Protected Attributes inherited from Controller
 $member_id
 $user_id
 $member_account_id = 1
 $session

Constructor & Destructor Documentation

VoIP_calls_Controller::__construct ( )

Only check whether is VoIP enabled.

Author
Michal Kliment

Reimplemented from Controller.

Member Function Documentation

static VoIP_calls_Controller::call_length (   $item,
  $name 
)
staticprotected

Length field.

Parameters
object$item
string$name
static VoIP_calls_Controller::callcon_partner (   $item,
  $name 
)
staticprotected

Callcon partner field.

Parameters
object$item
string$name
static VoIP_calls_Controller::caller_partner (   $item,
  $name 
)
staticprotected

Callbacks /////////////////////////////////////////////////////////////.

Caller partner field

Parameters
object$item
string$name
static VoIP_calls_Controller::destination (   $item,
  $name 
)
staticprotected

Destination field.

Parameters
object$item
string$name
static VoIP_calls_Controller::number (   $number,
  $user_id,
  $private_users = array() 
)
static

Tries to find number in IS and prints it.

Author
Michal Kliment User_Model $user_model Contact_Model $contact_model Voip_sip_Model $voip_sip_model Private_users_contact_Model $private_users_contact_model
Parameters
string$number
integer$user_id
Returns
string
static VoIP_calls_Controller::parse_number (   $number,
  $area = '' 
)
static

Parses number, returns number with country code, eg.

420XXXXXXXXX

Author
Roman Sevcik, Michal Kliment Contact_Model $contact_model Country_Model $country_model
Parameters
string$number
string$area
Returns
string
VoIP_calls_Controller::show_all (   $from = null,
  $to = null,
  $limit_results = 100,
  $order_by = 'type',
  $order_by_direction = 'asc',
  $page_word = null,
  $page = 1 
)

Shows VoIP calls.

Parameters
integer$from
imteger$to
integer$limit_results
string$order_by
string$order_by_direction
integer$page_word
integer$page
VoIP_calls_Controller::show_by_member (   $member_id = null,
  $from = null,
  $to = null,
  $limit_results = 100,
  $order_by = 'type',
  $order_by_direction = 'asc',
  $page_word = null,
  $page = 1 
)

Shows VoIP calls by member.

Parameters
integer$member_id
integer$from
integer$to
integer$limit_results
string$order_by
string$order_by_direction
integer$page_word
integer$page
VoIP_calls_Controller::show_by_user (   $user_id = null,
  $from = null,
  $to = null,
  $limit_results = 100,
  $order_by = 'type',
  $order_by_direction = 'asc',
  $page_word = null,
  $page = 1 
)

Shows VoIP calls by user.

Parameters
integer$user_id
integer$from
integer$to
integer$limit_results
string$order_by
string$order_by_direction
integer$page_word
integer$page
static VoIP_calls_Controller::type (   $item,
  $name 
)
staticprotected

Type field.

Parameters
object$item
string$name
VoIP_calls_Controller::voip_call_price ( )

AJAX function for getting price of call.

Author
Ondrej Fibich

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