This class allows us to assign a unique ID to each of its derived instances. More...
Public Member Functions | |
| SetParentObj ($in_parent_obj) | |
| Sets the object's "parent" (Container) object, as a reference. | |
| GetParentObj () | |
| Returns a reference to the object's container. | |
Private Attributes | |
| $_local_id_parent_obj = null | |
| This is the parent (container) object that holds this instance. | |
This class allows us to assign a unique ID to each of its derived instances.
We keep a static array of instantiated subclasses. When a new instance is created, the array is consulted to assign a new ID. When
| t_local_id_class::GetParentObj | ( | ) |
Returns a reference to the object's container.
Implements i_comdef_has_parent.
| t_local_id_class::SetParentObj | ( | $ | in_parent_obj | ) |
Sets the object's "parent" (Container) object, as a reference.
We check for recursion here. We go up to a hundred levels deep (should never get close to that).
Prevent looping forever, in case a recursed object is presented.
| in_parent_obj | A reference to the parent object. |
Implements i_comdef_has_parent.
t_local_id_class::$_local_id_parent_obj = null [private] |
This is the parent (container) object that holds this instance.
1.7.4