Summary:
Extend the Application Form activity module and add a File Attachments item
type.
The Application Form activity module gives teachers the function to
create web forms as an activity in a Moodle course. These can be used to get
feedback from students, or as part of the course material. Various types of
form objects can be added to the form, such as text fields, labels, drop-down
lists and checkboxes.
These form objects (item types) are stored in the \mod\apply\item folder
in the module code. Each item type has a dedicated folder, such as:
\mod\apply\item\textarea
\mod\apply\item\textfield
\mod\apply\item\captcha
etc.
You will
add an additional folder where the file attachments code will be created:
\mod\apply\item\fileattach
In there you will add the fileattach_form.php and lib.php files with the
relevant Moodle $mform file attachments code.
That will make the File Attachments item type available to the course
creator/teacher when they edit or add an Application Form activity in a course.
After the item has been added to the form students can attach files to their
form submissions.
This required file attachments functionality is very similar to the Advanced
uploading of files function in the Assignment module in
Moodle core. When a student opens the Application Form that the teacher has
created in a course, a File Picker is displayed on the form using $mform. The student clicks the file
picker and selects the files that must be attached to the form. On submission,
the files are saved and made available to the teacher for review.
The Application Form plugin that you will modify is https://moodle.org/plugins/mod_apply.
The change needs to support Moodle versions 2.1 through to the latest Moodle
release, currently v3.2.
The solution will be deployed on a Moodle instance running on a Microsoft SQL Server 2008 R2 or Microsoft
SQL Server 2016 database using the $CFG->dbtype =
'sqlsrv'; driver.
A more detailed requirements spec will be provided on expression of interest.