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

Public Member Functions

 __construct ()
 Send headers for each function.
 get_accounts_by_type ($origin_account_id=NULL)
 Function to return accounts belong to account type.
 get_address ()
 Returns address from address server.
 get_fee_by_id ()
 Returns fee details in json format.
 get_fees_by_type ()
 Returns all fees belongs to fee type in json format.
 member_name ()
 Callback AJAX function to filter's whisper for member name.
 obtain_mac_address ()
 Callback AJAX funxtion to obtain MAC address from given IP and subnet.
 organization_identifier ()
 Callback AJAX function to filter's whisper for organization identifier.
 vat_organization_identifier ()
 Callback AJAX function to filter's whisper for VAT organization identifier.
 variable_symbol ()
 Callback AJAX function to filter's whisper for variable symbol.
 town_name ()
 Callback AJAX function to filter's whisper for town name.
 quarter_name ()
 Callback AJAX function to filter's whisper for quarter name.
 zip_code ()
 Callback AJAX function to filter's whisper for ZIP code.
 street_name ()
 Callback AJAX function to filter's whisper for street name.
 user_name ()
 Callback AJAX function to filter's whisper for user name.
 user_surname ()
 Callback AJAX function to filter's whisper for user surname.
 user_fullname ()
 Callback AJAX function to filter's whisper for user fullname.
 user_login ()
 Callback AJAX function to filter's whisper for user login.
 user_email ()
 Callback AJAX function to filter's whisper for user e-mail.
 user_phone ()
 Callback AJAX function to filter's whisper for user phone.
 user_icq ()
 Callback AJAX function to filter's whisper for user ICQ.
 user_jabber ()
 Callback AJAX function to filter's whisper for user jabber.
 mac_address_check ()
 Performs action of mac_address_check jQuery form validator.
 ip_address_check ()
 Performs action of ip_address_check jQuery form validator.
 iface_mac ()
 Callback AJAX function to filter's whisper for iface MAC address.
 link_name ()
 Callback AJAX function to filter's whisper for link name.
 device_name ()
 Callback AJAX function to filter's whisper for device name.
 subnet_name ()
 Callback AJAX function to filter's whisper for subnet name.
 device_login ()
 Callback AJAX function to filter's whisper for device login.
 device_password ()
 Callback AJAX function to filter's whisper for device password.
 device_trade_name ()
 Callback AJAX function to filter's whisper for device trade name.
 country_name ()
 Callback AJAX function to filter's whisper for country name.
 gps ()
 Callback AJAX function to filter's whisper for GPS.
 address_point_name ()
 Callback AJAX function to filter's whisper for address point name.
 bank_account_name ()
 get_link_by_iface ()
 Callback AJAX function to return link by iface id.
 get_iface_and_device_connected_to_iface ()
 Callback AJAX function to return iface and device that are connected to given iface.
 ssid ()
 Callback AJAX function to filter's whisper for SSID.
 get_device_name ()
 Callback AJAX function for getting if device name.
 get_device_template_value ()
 Callback AJAX function to get value of device template.
 get_device_template_active_links ()
 AJAX function for loading device template active links.
 get_device_templates_by_type ()
 Callback AJAX function to get only device templates of choosen type of device to dropdown.
 get_streets_by_town ()
 Callback AJAX function to get only streets of choosen town to dropdown.
 get_suggestion_for_connecting_to ()
 Gets suggestion for connecting one type of interface on location given by member address point or by given GPS.
 get_members ()
 Returns all members in JSON format.
 get_devices ()
 Returns all devices of member in JSON format.
 get_filtered_devices ()
 Returns filtered devices in JSON format.
 get_ifaces ()
 Returns all ifaces in in JSON format.
 get_user_address ()
 Function return address of given user.
 calculate_additional_payment_of_applicant ()
 Calculated additional of applicant.
 get_free_ip_addresses ()
 Prints all free IP addresses similar to given IP address.
 invoice_name ()
 Callback AJAX function to filter's whisper for name.
 invoice_street ()
 Callback AJAX function to filter's whisper for street.
 invoice_town ()
 Callback AJAX function to filter's whisper for town.
 invoice_zip_code ()
 Callback AJAX function to filter's whisper for zip code.
 invoice_street_number ()
 Callback AJAX function to filter's whisper for street name.
 invoice_company ()
 Callback AJAX function to filter's whisper for company.
 invoice_country ()
 Callback AJAX function to filter's whisper for country.
 invoice_organization_id ()
 Callback AJAX function to filter's whisper for organization identifier.
 invoice_vat_organization_id ()
 Callback AJAX function to filter's whisper for organization identifier.
 invoice_account_nr ()
 Callback AJAX function to filter's whisper for account number.
 invoice_phone_nr ()
 Callback AJAX function to filter's whisper for phone number.
 invoice_email ()
 Callback AJAX function to filter's whisper for email.
 get_connected_to_device_and_iface ()
 Callback AJAX funxtion to get device and iface to which is device connected.
 load_member_data_from_ares ()
 Loads data about member from ARES.
- 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 send_json_headers ()
 Send headers for JSON.
- 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.

Protected Member Functions

 is_preprocesor_enabled ()

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 Attributes inherited from Controller
 $member_id
 $user_id
 $member_account_id = 1
 $session

Member Function Documentation

Json_Controller::address_point_name ( )

Callback AJAX function to filter's whisper for address point name.

Author
Michal Kliment
Json_Controller::calculate_additional_payment_of_applicant ( )

Calculated additional of applicant.

Author
Ondřej Fibich
See Also
Members_Controller::approve_applicant
Json_Controller::country_name ( )

Callback AJAX function to filter's whisper for country name.

Author
Michal Kliment
Json_Controller::device_login ( )

Callback AJAX function to filter's whisper for device login.

Author
Michal Kliment
Json_Controller::device_name ( )

Callback AJAX function to filter's whisper for device name.

Author
Michal Kliment
Json_Controller::device_password ( )

Callback AJAX function to filter's whisper for device password.

Author
Michal Kliment
Json_Controller::device_trade_name ( )

Callback AJAX function to filter's whisper for device trade name.

Author
Michal Kliment
Json_Controller::get_accounts_by_type (   $origin_account_id = NULL)

Function to return accounts belong to account type.

Returned array has name of account as key and its ID as a value due to JSON eval order bug.

Author
Michal Kliment
Parameters
number$origin_account_id
Json_Controller::get_address ( )

Returns address from address server.

Author
David Raška
Json_Controller::get_connected_to_device_and_iface ( )

Callback AJAX funxtion to get device and iface to which is device connected.

Author
Michal Kliment
Json_Controller::get_device_name ( )

Callback AJAX function for getting if device name.

Author
Ondřej Fibich
Json_Controller::get_device_template_active_links ( )

AJAX function for loading device template active links.

Author
David Raška
Json_Controller::get_device_template_value ( )

Callback AJAX function to get value of device template.

Author
Ondřej Fibich
Json_Controller::get_device_templates_by_type ( )

Callback AJAX function to get only device templates of choosen type of device to dropdown.

Author
Ondřej Fibich
Json_Controller::get_devices ( )

Returns all devices of member in JSON format.

Author
Michal Kliment
Json_Controller::get_fee_by_id ( )

Returns fee details in json format.

Author
David Raška
Json_Controller::get_fees_by_type ( )

Returns all fees belongs to fee type in json format.

Author
Michal Kliment
Json_Controller::get_filtered_devices ( )

Returns filtered devices in JSON format.

Author
Ondřej Fibich
See Also
Device_Controller::add
Filter_form
Json_Controller::get_free_ip_addresses ( )

Prints all free IP addresses similar to given IP address.

Author
Michal Kliment
Json_Controller::get_iface_and_device_connected_to_iface ( )

Callback AJAX function to return iface and device that are connected to given iface.

Author
Ondřej Fibich
Json_Controller::get_ifaces ( )

Returns all ifaces in in JSON format.

Author
Michal Kliment, Ondrej Fibich
Json_Controller::get_link_by_iface ( )

Callback AJAX function to return link by iface id.

Author
Ondřej Fibich
Json_Controller::get_members ( )

Returns all members in JSON format.

Author
Michal Kliment
Json_Controller::get_streets_by_town ( )

Callback AJAX function to get only streets of choosen town to dropdown.

Author
Ondřej Fibich
Json_Controller::get_suggestion_for_connecting_to ( )

Gets suggestion for connecting one type of interface on location given by member address point or by given GPS.

Author
Ondřej Fibich
See Also
Devices_Controller::add
Json_Controller::get_user_address ( )

Function return address of given user.

Author
David Raska
Json_Controller::gps ( )

Callback AJAX function to filter's whisper for GPS.

Author
Michal Kliment
Json_Controller::iface_mac ( )

Callback AJAX function to filter's whisper for iface MAC address.

Author
Michal Kliment
Json_Controller::invoice_account_nr ( )

Callback AJAX function to filter's whisper for account number.

Author
Jan Dubina
Json_Controller::invoice_company ( )

Callback AJAX function to filter's whisper for company.

Author
Jan Dubina
Json_Controller::invoice_country ( )

Callback AJAX function to filter's whisper for country.

Author
Jan Dubina
Json_Controller::invoice_email ( )

Callback AJAX function to filter's whisper for email.

Author
Jan Dubina
Json_Controller::invoice_name ( )

Callback AJAX function to filter's whisper for name.

Author
Jan Dubina
Json_Controller::invoice_organization_id ( )

Callback AJAX function to filter's whisper for organization identifier.

Author
Jan Dubina
Json_Controller::invoice_phone_nr ( )

Callback AJAX function to filter's whisper for phone number.

Author
Jan Dubina
Json_Controller::invoice_street ( )

Callback AJAX function to filter's whisper for street.

Author
Jan Dubina
Json_Controller::invoice_street_number ( )

Callback AJAX function to filter's whisper for street name.

Author
Jan Dubina
Json_Controller::invoice_town ( )

Callback AJAX function to filter's whisper for town.

Author
Jan Dubina
Json_Controller::invoice_vat_organization_id ( )

Callback AJAX function to filter's whisper for organization identifier.

Author
Jan Dubina
Json_Controller::invoice_zip_code ( )

Callback AJAX function to filter's whisper for zip code.

Author
Jan Dubina
Json_Controller::ip_address_check ( )

Performs action of ip_address_check jQuery form validator.

Author
Ondrej Fibich
Json_Controller::is_preprocesor_enabled ( )
protected
See Also
MY_Controller::is_preprocesor_enabled()

Reimplemented from Controller.

Json_Controller::link_name ( )

Callback AJAX function to filter's whisper for link name.

Author
Michal Kliment
Json_Controller::load_member_data_from_ares ( )

Loads data about member from ARES.

Author
Michal Kliment
Json_Controller::mac_address_check ( )

Performs action of mac_address_check jQuery form validator.

Checks whether the MAC is unique on subnet.

Author
Ondrej Fibich
Json_Controller::member_name ( )

Callback AJAX function to filter's whisper for member name.

Author
Michal Kliment
Json_Controller::obtain_mac_address ( )

Callback AJAX funxtion to obtain MAC address from given IP and subnet.

Author
Ondřej Fibich
Json_Controller::organization_identifier ( )

Callback AJAX function to filter's whisper for organization identifier.

Author
Michal Kliment
Json_Controller::quarter_name ( )

Callback AJAX function to filter's whisper for quarter name.

Author
Michal Kliment
static Json_Controller::send_json_headers ( )
static

Send headers for JSON.

Author
Ondřej Fibich
Json_Controller::ssid ( )

Callback AJAX function to filter's whisper for SSID.

Author
Michal Kliment
Json_Controller::street_name ( )

Callback AJAX function to filter's whisper for street name.

Author
Michal Kliment
Json_Controller::subnet_name ( )

Callback AJAX function to filter's whisper for subnet name.

Author
Michal Kliment
Json_Controller::town_name ( )

Callback AJAX function to filter's whisper for town name.

Author
Michal Kliment
Json_Controller::user_email ( )

Callback AJAX function to filter's whisper for user e-mail.

Author
Michal Kliment
Json_Controller::user_fullname ( )

Callback AJAX function to filter's whisper for user fullname.

Author
Michal Kliment
Json_Controller::user_icq ( )

Callback AJAX function to filter's whisper for user ICQ.

Author
Michal Kliment
Json_Controller::user_jabber ( )

Callback AJAX function to filter's whisper for user jabber.

Author
Michal Kliment
Json_Controller::user_login ( )

Callback AJAX function to filter's whisper for user login.

Author
Michal Kliment
Json_Controller::user_name ( )

Callback AJAX function to filter's whisper for user name.

Author
Michal Kliment
Json_Controller::user_phone ( )

Callback AJAX function to filter's whisper for user phone.

Author
Michal Kliment
Json_Controller::user_surname ( )

Callback AJAX function to filter's whisper for user surname.

Author
Michal Kliment
Json_Controller::variable_symbol ( )

Callback AJAX function to filter's whisper for variable symbol.

Author
Michal Kliment
Json_Controller::vat_organization_identifier ( )

Callback AJAX function to filter's whisper for VAT organization identifier.

Author
Michal Kliment
Json_Controller::zip_code ( )

Callback AJAX function to filter's whisper for ZIP code.

Author
Michal Kliment

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