Voice/GsocFormslibExercise
From MoodleDocs
GSoC 07
Development
Project Management
Warning: This page is no longer in use. The information contained on the page should NOT be seen as relevant or reliable. |
- Write a form using the Formslib class and its documentation.
- Date limit: 8th April 2007
- There should be two files: example.php and example_form.php
- example.php: It should invoke the form the first time called. If the form is the caller, then just present the parameters and their values on screen (to test if it has worked).
- example_form.php: The form itself. It should be a class that extends "moodleform" from "formslib.php". Note that this file should not be invoked from the browser.
- The form should have the next fields
- name: max 20 chars, obligatory
- password: max 20 chars, it should be presented with asterisks, obligatory
- email: max 20 chars, obligatory, preferably with validation
- comment: textfield, max 250 chars, optional
- You can use the next examples (and all you can find) from the Moodle CVS:
- http://moodle.cvs.sourceforge.net/moodle/moodle/login/signup.php?view=markup
- http://moodle.cvs.sourceforge.net/moodle/moodle/login/signup_form.php?view=markup
- http://moodle.cvs.sourceforge.net/moodle/moodle/login/change_password.php?view=markup
- http://moodle.cvs.sourceforge.net/moodle/moodle/login/change_password_form.php?view=markup
- http://moodle.cvs.sourceforge.net/moodle/moodle/login/forgot_password.php?view=markup
- http://moodle.cvs.sourceforge.net/moodle/moodle/login/forgot_password_form.php?view=markup
- FAQ
- Do I have to install the whole Moodle? No, just use the formslib.php file and any other if needed.
- Do I need any tools? You can use any tools as you need. In the project we will work probably with Eclipse and phpEclipse, although it can be discussed.
- Can I strip down the formslib.php file so it doesn´t have any references to other Moodle files? Yes you can, although you should state somewhere the changes so I can see them.
- Do it needs to work? Well, let´s just say that if it works, it gets more points. :)
- Where do I find the Moodle CVS? Here is the Moodle CVS
- At the end, you can either send me the files with two screenshots of them running (the first time called and second time called) or you can set it up in your webserver so I can see them running, plus a zip or tar.gz file with the files so I can download them.