input_class Class Reference

Input-related methods and variables. More...

Public Member Functions

 input_class ($obj_type=false)
 Parse input variables common to lots of pages.
 parse_obj_selection ($obj_type= 'host')
 Given an object type, parses the selection based on dual inputs (selected_{$obj_type}s and selected_{$obj_type}groups) and concatenates them into a unique list of $obj_type id's in an $id => $id style indexed array.
 post_parse_selection ()
 Some special magic to deal with a host_selection being parsed when the actual target type are services.
 get_array ($name)
 Fetches an array from the $_REQUEST array.
 get_numeric ($name)
 Fetches a numeric variable from the $_REQUEST array.
 get_string ($name)
 Fetches a string variable from the $_REQUEST array.
 as_form_elements ()
 Return a string of hidden form elements with all information retrieved.
 debug_print ()
 Print debugging information about the input variables.

Static Public Member Functions

static services_to_cmd_args (array $services)

Data Fields

 $action = false
 action
 $obj_id = false
 object id
 $obj = false
 object
 $obj_type = false
 object type
 $host_id = false
 host id
 $master_obj_id = false
 master object id
 $master_obj_type = false
 master object type
 $protected = array('object', 'gui', 'help', 'escalation', 'extinfo', 'pnp')
 protected variables
 $user = false
 user
 $custom_vars = false
 custom variables
 $selection = false
 This variable will be populated with whatever selection targets we find in the input.

Detailed Description

Input-related methods and variables.

This class automagically mangles a lot of input variables into a manageable state.


Member Function Documentation

input_class::as_form_elements (  ) 

Return a string of hidden form elements with all information retrieved.

Excluding 'action' to let the caller add it's own action buttons.

input_class::get_array ( name  ) 

Fetches an array from the $_REQUEST array.

Parameters:
$name The name of the array to fetch
Returns:
The array if it is an array, or false otherwise
input_class::get_numeric ( name  ) 

Fetches a numeric variable from the $_REQUEST array.

Parameters:
$name The name of the numeric variable to fetch
Returns:
The variable if it is numeric, or false otherwise
input_class::get_string ( name  ) 

Fetches a string variable from the $_REQUEST array.

Parameters:
$name The name of the string variable to fetch
Returns:
The variable if it is a string, or false otherwise
input_class::input_class ( obj_type = false  ) 

Parse input variables common to lots of pages.

Parameters:
$obj_type The object type we're dealing with
static input_class::services_to_cmd_args ( array $  services  )  [static]
Parameters:
$services array
Returns:
string

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 1 Oct 2014 for nacoma by  doxygen 1.6.1