Fill table with CSV file

本讨论区帖子已移除

回帖数:5
本讨论区帖子的内容已移除,无法再访问。
回复删除的用户

Re: Fill table with CSV file

Davo Smith -
Core developers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Where have you got to so far? Have you read through the code that implements the user import?
回复Davo Smith

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复删除的用户

Re: Fill table with CSV file

Davo Smith -
Core developers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
OK, then maybe start with a few questions about the bits you don't understand - I'm sure there are people willing to help in the forums, but we'll need a bit more to go on.

If you want a general starting point for how to write Moodle code, then you could start with the free Moodle developer training course at: https://learn.moodle.org/
回复Davo Smith

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复删除的用户

Re: Fill table with CSV file

Davo Smith -
Core developers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
That's a good starting point.

So you've looked at the existing code for the tool_uploaduser (and possibly tool_uploadcourse as well, as that does something similar) and, presumably, you can see the basic flow of the page that shows the upload form and the way it processes the file. But, you've stated there are "some things that I do not understand". Which bits do you not understand? I guess someone could go line by line through each of the files in tool_uploaduser and explain exactly what each line does, but that's probably not a good use of anyone's time (do you need someone to explain what "require_once()" does, do you need an explanation of "optional_param()", is it "admin_externalpage_setup()" that you are getting stuck on, or is it something else in that plugin?)