PHP4 class nesting depth
Posted: Thu Jan 22, 2004 12:49 pm
I've run into a problem and cannot figure it out for the life of me...
Basically I have a class within a class, and so on...
I have a method that Populates a floorplan floor with Elements in that floor. If I dump $workorder->floorplan->floor->elements (outside of the Populate call) it is blank, however... dumping immediatly after my PopulateFloor call does it's thing (inside the actual function though) shows the correct information.
There is nothing different about the printout outside of the Populate call besides that it's outside the function hehe. I just can't seem to figure this one out...
workorder is a WorkOrder object
floorplan is a FloorPlan object
floor is an array of Floor objects
elements is an array of FloorElement objects.
Any help would be... helpful hehe.
Thanks,
Zher
Basically I have a class within a class, and so on...
I have a method that Populates a floorplan floor with Elements in that floor. If I dump $workorder->floorplan->floor->elements (outside of the Populate call) it is blank, however... dumping immediatly after my PopulateFloor call does it's thing (inside the actual function though) shows the correct information.
There is nothing different about the printout outside of the Populate call besides that it's outside the function hehe. I just can't seem to figure this one out...
workorder is a WorkOrder object
floorplan is a FloorPlan object
floor is an array of Floor objects
elements is an array of FloorElement objects.
Any help would be... helpful hehe.
Thanks,
Zher