Public Member Functions | |
__construct () | |
Constructor, only test if networks is enabled. | |
index () | |
Index redirect to show all. | |
show_all ($limit_results=50, $order_by= 'id', $order_by_direction= 'asc', $page_word=null, $page=1) | |
Function shows all interfaces. | |
show ($iface_id=null) | |
Function shows interface details. | |
add ($device_id=NULL, $type=NULL, $add_button=FALSE, $connect_type=NULL) | |
Function adds new interface. | |
add_iface_to_link ($link_id=NULL) | |
Adds iface to a given link. | |
edit ($iface_id=null, $type=null) | |
Function edits interface. | |
delete ($iface_id=null) | |
Function deletes interface. | |
remove_from_bridge ($bridge_iface_id=null, $iface_id=null) | |
Function removes iface from bridge. | |
remove_from_link ($iface_id=null) | |
Function removes iface from link. | |
valid_mode ($input=NULL) | |
Callback function to validate wireless mode. | |
valid_unique_mac_in_subnets ($input=NULL) | |
Callback function to validate MAC adress in order to have this MAC in maximum count of one. | |
valid_mode_virtual_ap ($input=NULL) | |
Callback function to validate vlan ap wmode. | |
valid_vlans ($input=NULL) | |
Callback function to validate tagged and untagged VLANs. | |
valid_port_vlan ($input=NULL) | |
Callback function to validate port VLAN. | |
valid_port_nr ($input=NULL) | |
Callback function to validate number of port. | |
valid_connect_to_iface ($input=NULL) | |
Callback function to validate connect to interface. | |
valid_iface_for_appending_to_link ($input=NULL) | |
Callback function to validate iface that should be appended to link. | |
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. |
Additional Inherited Members | |
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. | |
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 |
Ifaces_Controller::add | ( | $device_id = NULL , |
|
$type = NULL , |
|||
$add_button = FALSE , |
|||
$connect_type = NULL |
|||
) |
Function adds new interface.
integer | $device_id | Device ID |
integer | $type | Iface type |
boolean | $add_button | If opened by add button |
integer | $connect_type | Connect to iface type - only if add_button |
Ifaces_Controller::add_iface_to_link | ( | $link_id = NULL | ) |
Adds iface to a given link.
integer | $link_id |
Ifaces_Controller::delete | ( | $iface_id = null | ) |
Function deletes interface.
Interface is deleted with all of its ip addresses and vlan interfaces thanks to database cascade deleting.
integer | $iface_id | id of interface to delete |
Ifaces_Controller::edit | ( | $iface_id = null , |
|
$type = null |
|||
) |
Function edits interface.
integer | $iface_id | |
integer | $type |
Ifaces_Controller::remove_from_bridge | ( | $bridge_iface_id = null , |
|
$iface_id = null |
|||
) |
Function removes iface from bridge.
integer | $bridge_iface_id | |
integer | $iface_id |
Ifaces_Controller::remove_from_link | ( | $iface_id = null | ) |
Function removes iface from link.
integer | $iface_id |
Ifaces_Controller::show | ( | $iface_id = null | ) |
Function shows interface details.
integer | $iface_id |
Ifaces_Controller::show_all | ( | $limit_results = 50 , |
|
$order_by = 'id' , |
|||
$order_by_direction = 'asc' , |
|||
$page_word = null , |
|||
$page = 1 |
|||
) |
Function shows all interfaces.
integer | $limit_results | |
string | $order_by | |
string | $order_by_direction | |
integer | $page_word | |
integer | $page |
Ifaces_Controller::valid_connect_to_iface | ( | $input = NULL | ) |
Callback function to validate connect to interface.
Form_Field | $input |
Ifaces_Controller::valid_iface_for_appending_to_link | ( | $input = NULL | ) |
Callback function to validate iface that should be appended to link.
Form_Field | $input |
Ifaces_Controller::valid_mode | ( | $input = NULL | ) |
Callback function to validate wireless mode.
Form_Field | $input |
Ifaces_Controller::valid_mode_virtual_ap | ( | $input = NULL | ) |
Callback function to validate vlan ap wmode.
Form_Field | $input |
Ifaces_Controller::valid_port_nr | ( | $input = NULL | ) |
Callback function to validate number of port.
Form_Field | $input |
Ifaces_Controller::valid_port_vlan | ( | $input = NULL | ) |
Callback function to validate port VLAN.
Form_Field | $input |
Ifaces_Controller::valid_unique_mac_in_subnets | ( | $input = NULL | ) |
Callback function to validate MAC adress in order to have this MAC in maximum count of one.
Form_Field | $input |
Ifaces_Controller::valid_vlans | ( | $input = NULL | ) |
Callback function to validate tagged and untagged VLANs.
Form_Field | $input |