diff --git a/class.class.php b/class.class.php --- a/class.class.php +++ b/class.class.php @@ -61,33 +61,13 @@ class Classes //-------------------------------------------------- // Returns the name of the class. //-------------------------------------------------- - function getName() + public function getName() { return $this->name; } /** * \brief - * Renders this Classes into something suitable for input.php. - */ - function input_form_render($class_key) - { - $n = "\n"; - $out = '' . $n - . ' ' . $n - . ' ' . $n - . '
' . $n - . '
' . $n - . "\n"; - - foreach ($this->sections as $key => $section) - $out .= $section->input_form_render($class_key, $key); - - return $out; - } - - /** - * \brief * Split up a user-friendly course specification into components. * * This will only return the 'department' and 'course' components of diff --git a/class.schedule.php b/class.schedule.php --- a/class.schedule.php +++ b/class.schedule.php @@ -358,24 +358,6 @@ class Schedule $outputPage->foot(); } - /** - * \brief - * Render the input table form for editing a saved schedule in input.php. - * - * This function's output must be synchronized with the - * associated javascript in scripts/scheduleInput.js. - */ - function input_form_render() - { - $out = ''; - static $n = "\n"; - - foreach ($this->classStorage as $class_key => $class) - $out .= $class->input_form_render($class_key); - - return $out; - } - //-------------------------------------------------- // Changes the title of the page. //-------------------------------------------------- diff --git a/class.section.php b/class.section.php --- a/class.section.php +++ b/class.section.php @@ -202,111 +202,6 @@ class Section /** * \brief - * Create output suitable for editing on input.php. - * - * \see Classes::input_form_render() - * - * \param $class_key - * The same $class_key passed to Classes::input_form_render(). - * \param $section_key - * The index of this section. - * \param $section_format - * The type of input method used for this section. Valid values - * are 'numerous', 'numbered', and 'lettered' - */ - public function input_form_render($class_key, $section_key, $section_format = 'numerous') - { - static $n = "\n"; - $out = '' . $n - . ' ' . $n; - switch ($section_format) - { - case 'numerous': - default: - /* see customIds() in scheduleInput.js */ - $out .= ' ' . $n - . ' ' . $n - . " \n"; - break; - } - - $out .= " \n" - . ' \n" - . " \n"; - - /* ugh, code duplication :-( --binki commenting on his own code*/ - $out .= " \n" - . ' \n" - . " \n"; - - foreach ($this->bdays as $day_key => $day_enabled) - { - if ($day_enabled) - $day_enabled = 'checked="checked"'; - else - $day_enabled = ''; - $out .= " \n" - . ' ' . $n - . " \n"; - } - - $out .= '
' . $n; - $out .= ' ' . $n; - - $out .= "\n"; - - return $out; - } - - /** - * \brief * Splits up a section specifier into dept, course number, and * section. *