function GetFirstSlot() { $this->MakeSafe(); $sql = "SELECT * FROM fac_Slots WHERE TemplateID={$this->TemplateID} ORDER BY BackSide,Position;"; if ($row = $this->query($sql)->fetch()) { foreach (Slot::RowToObject($row) as $prop => $value) { $this->{$prop} = $value; } return true; } else { return false; } }