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

Public Member Functions

 __construct ()
 Constructor, only test if networks is enabled.
 index ()
 Index redirects to show all.
 show_all ($limit_results=50, $order_by= 'ip_address', $order_by_direction= 'asc', $page_word=null, $page=1)
 Shows all ip addresses.
 show ($ip_address_id=null)
 Shows details of ip address.
 add ($device_id=NULL, $iface_id=NULL)
 Adds new ip address to interface which may be selected in parameters.
 edit ($ip_address_id=NULL)
 Edits ip address.
 delete ($ip_address_id=NULL)
 Function deletes given ip address.
 valid_ip ($input=NULL)
 Checks validity of ip address.
 valid_mac_address_unique_in_subnet ($input=NULL)
 Callback function to validate if MAC address is unique in subnet.
 valid_gateway ($input=NULL)
 Callback function to validate if subnet has gateway.
- 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.

Protected Attributes

 $form
 $ip_address_id
- Protected Attributes inherited from Controller
 $member_id
 $user_id
 $member_account_id = 1
 $session

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.

Member Function Documentation

Ip_addresses_Controller::add (   $device_id = NULL,
  $iface_id = NULL 
)

Adds new ip address to interface which may be selected in parameters.

Parameters
integer$device_id
integer$device_id
Ip_addresses_Controller::delete (   $ip_address_id = NULL)

Function deletes given ip address.

Parameters
integer$ip_address_id
Ip_addresses_Controller::edit (   $ip_address_id = NULL)

Edits ip address.

Author
Michal Kliment
Parameters
type$ip_address_id
Ip_addresses_Controller::show (   $ip_address_id = null)

Shows details of ip address.

Parameters
integer$ip_address_idid of ip address to show
Ip_addresses_Controller::show_all (   $limit_results = 50,
  $order_by = 'ip_address',
  $order_by_direction = 'asc',
  $page_word = null,
  $page = 1 
)

Shows all ip addresses.

Parameters
integer$limit_resultsip addresses per page
string$order_bysorting column
string$order_by_directionsorting direction
Ip_addresses_Controller::valid_gateway (   $input = NULL)

Callback function to validate if subnet has gateway.

Author
Michal Kliment klime.nosp@m.nt@f.nosp@m.reene.nosp@m.tis..nosp@m.org
Parameters
type$input
Ip_addresses_Controller::valid_ip (   $input = NULL)

Checks validity of ip address.

Parameters
object$input
Ip_addresses_Controller::valid_mac_address_unique_in_subnet (   $input = NULL)

Callback function to validate if MAC address is unique in subnet.

Author
Ondrej Fibich
Parameters
Form_Field$input

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