static function RowToObject($row) { $panel = new PowerPanel(); $panel->PanelID = $row["PanelID"]; $panel->PanelLabel = $row["PanelLabel"]; $panel->NumberOfPoles = $row["NumberOfPoles"]; $panel->MainBreakerSize = $row["MainBreakerSize"]; $panel->PanelVoltage = $row["PanelVoltage"]; $panel->NumberScheme = $row["NumberScheme"]; $panel->ParentPanelID = $row["ParentPanelID"]; $panel->ParentBreakerName = $row["ParentBreakerName"]; $panel->TemplateID = $row["TemplateID"]; $panel->PanelIPAddress = $row["PanelIPAddress"]; $panel->MakeDisplay(); return $panel; }