Extinfo related methods. More...
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. |
Extinfo related methods.
hostextinfo and serviceextinfo share some functions, so we put those here and let those two classes extend this one.
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
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.
Reimplemented from object_class.