query regarding structure of moodle

query regarding structure of moodle

ady contractor -
回帖数:5
Hi everybody, I am new to moodle and php. I am finding it difficult to trace the loctions of different functions in files and different files in the file system of moodle.  Can anyone pls help us to resolve this query.
回复ady contractor

Re: query regarding structure of moodle

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
I strongly recomment getting a good code editor that can:

1) quickly search all the files in the codebase for a particular string.

2) when looking at a call to a function like get_records(...) let you CTRL+click (or similar) on the function name to go to where that function is defined.

I use Eclipse, and I wrote a page of instructinos for using it to edit Moodle: http://docs.moodle.org/en/Development:Setting_up_Eclipse. Of course, there are plenty of other good choices.
回复ady contractor

Re: query regarding structure of moodle

David Jackson -
You are gonna love this...
http://moodle.org/xref/nav.html?_functions/index.html

It's like a dictionary of all known functions. Not only tells you about the function, but also gives you links to where it is defined and where it is used in the code.

Same for all the variables...
http://moodle.org/xref/nav.html?_variables/index.html

Randomly came across them this morning when googling "moodle get_records()". I have been moodleing for a few months now and I can't believe I got this far without them!
回复David Jackson

Re: query regarding structure of moodle

Greg Lyon -
I can't believe I've never found this yet either, and I've don a lot of searching on moodle in the 3 months I've been moodling...great reference!