Mostly working on the view.php UI plus some changes

This commit is contained in:
David Mudrak
2010-01-04 18:00:54 +00:00
parent b13142daee
commit b761e6d9c6
18 changed files with 535 additions and 147 deletions
+5 -8
View File
@@ -42,10 +42,11 @@ interface workshop_allocator {
*
* This method is called soon after the allocator is constructed and before any output
* is generated. Therefore is may process any data submitted and do other tasks.
* It should not generate any output
* It should not generate any output. However if it does so, the output is rendered
* using the method {@link moodle_mod_workshop_renderer::allocation_init_result()}
*
* @throws moodle_exception
* @return mixed void or optional HTML string
* @return void|string
*/
public function init();
@@ -53,13 +54,9 @@ interface workshop_allocator {
* Print HTML to be displayed as the user interface
*
* If a form is part of the UI, the caller should have called $PAGE->set_url(...)
* The methods must produce output instead of just returning it so mform->display() can
* be used there. This should be changed once we make quickforms deprecated and then,
* this method will just return the required HTML code.
*
* @param stdClass $wsoutput workshop module renderer can be used
* @return void
* @return string HTML code to be echoed
*/
public function ui(moodle_mod_workshop_renderer $wsoutput);
public function ui();
}