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