Writting a New form of assignment

Writting a New form of assignment

Ali RP -
回帖数: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?)

回复Ali RP

Re: Writting a New form of assignment

Davo Smith -
Core developers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 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.