extinfo_class Class Reference

Extinfo related methods. More...

Inheritance diagram for extinfo_class:
object_class hostextinfo_class serviceextinfo_class

Public Member Functions

 get_object ()
 extinfo objects have a 1-to-1 relation with their master objects, so if we have the master_obj_id but not the id, we can still fetch the correct object
 validate_object ()
 Validates that an object is correct prior to saving it to the database.
 set_master_object_id ($id)
 Set the master object id extinfo objects are unique in that their id can be determined uniquely by having the parent id, so try doing that when we get the master_object_id passed to us.

Detailed Description

Extinfo related methods.

hostextinfo and serviceextinfo share some functions, so we put those here and let those two classes extend this one.


Member Function Documentation

extinfo_class::get_object (  ) 

extinfo objects have a 1-to-1 relation with their master objects, so if we have the master_obj_id but not the id, we can still fetch the correct object

Returns:
object array

Reimplemented from object_class.

extinfo_class::validate_object (  ) 

Validates that an object is correct prior to saving it to the database.

We need to special case this to avoid convoluting object_class::validate_object() overly. Specifically, we need to rip out the images and re-insert them after the real validation is done.

Returns:
True if the object validates. False if it doesn't.

Reimplemented from object_class.


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

Generated on 22 Nov 2012 for nacoma by  doxygen 1.6.1