function GetChildren() { $children = array(); $cabrow = new CabRow(); $cabrow->ZoneID = $this->ZoneID; foreach ($cabrow->GetCabRowsByZones() as $row) { $children[] = $row; } // While not currently supported this will allow us to nest cabinets into zones directly without a cabinet row $cab = new Cabinet(); $cab->ZoneID = $this->ZoneID; foreach ($cab->GetCabinetsByZone() as $cab) { if ($cab->CabRowID == 0) { $children[] = $cab; } } return $children; }