diff --git a/class.class.php b/class.class.php --- a/class.class.php +++ b/class.class.php @@ -65,4 +65,25 @@ class Classes { return $this->name; } + + /** + * \brief + * Renders this Classes into something suitable for input.php. + */ + function input_form_render($class_key) + { + $n = "\n"; + $out = '' . $n + . ' getName()) . '"/>' . $n + . ' ' . $n + . '
' . $n + . '
' . $n + . "\n"; + + foreach ($this->sections as $key => $section) + $out .= $section->input_form_render($class_key, $key); + + return $out; + } + }