Writting a New form of assignment

Writting a New form of assignment

by Ali RP -
Number of replies: 1

Hello everyone.

 

I'm new here and I'm read docs inside of http://docs.moodle.org/dev/Main_Page. but i couldn't find my answers.

 

1. I want to write some kind of assignment, but i want to run my code after some user upload their assignment, where should i look after?

2. is there any chance i can read inside of uploaded file? i know the users upload text file (.java files) and i want to do some process on it. can i read it?

 

3. and have something else in mind, after i wrote my code what should i do? (do i have to install moodle all over again inside my web server? what's the step there?)

Average of ratings: -
In reply to Ali RP

Re: Writting a New form of assignment

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

1. Sounds like you need to write an assignment submission plugin ( http://docs.moodle.org/dev/Assign_submission_plugins ).

2. Yes, of course you can read the uploaded files, once they are on the server, you can do whatever you like with them.

3. If you want your Moodle site to be available to more than just yourself, then you are going to need to install it on a server somewhere. If you already have Moodle running on a server, then you will just need to add your new code to the server.