Form_Field_Perfdata_Model Class Reference

Let the user pick one of the performance data source for a specific host- or service model. More...

Inheritance diagram for Form_Field_Perfdata_Model:
Form_Field_Model

Public Member Functions

 __construct ($name, $pretty_name, $target_model, array $options=array())
 get_type ()
 get_target_model ()
 get_options ()
 Since we depend on the value (ORM object) of $target_model, we only know which the specific options are after.
 process_data (array $raw_data, Form_Result_Model $result)

Detailed Description

Let the user pick one of the performance data source for a specific host- or service model.

Usage:

$form_model = new Form_Model('action', array( new Form_Field_ORMObject_Model('host', 'A host', array('hosts')), new Form_Field_Perfdata_Model('perfdata_src', 'Pick a performance data source', 'host') ));


Constructor & Destructor Documentation

Form_Field_Perfdata_Model::__construct ( name,
pretty_name,
target_model,
array $  options = array() 
)
Parameters:
$name string
$pretty_name string
$target_model string
$options array

Member Function Documentation

Form_Field_Perfdata_Model::get_options (  ) 

Since we depend on the value (ORM object) of $target_model, we only know which the specific options are after.

See also:
Form_Model::set_values() has been called, or when the form has been dynamically rendered by JS. It's perfectly OK that this is empty, and handled by JS.
Returns:
array
Form_Field_Perfdata_Model::get_target_model (  ) 
Returns:
string
Form_Field_Perfdata_Model::get_type (  ) 
Returns:
string

Reimplemented from Form_Field_Model.

Form_Field_Perfdata_Model::process_data ( array $  raw_data,
Form_Result_Model result 
)
Parameters:
$raw_data array
$result Form_Result_Model
Exceptions:
FormException 
MissingValueException 

Reimplemented from Form_Field_Model.


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

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1