query regarding structure of moodle

query regarding structure of moodle

ady contractor發表於
Number of replies: 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.
評比平均分數: -
In reply to 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.
In reply to 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!
In reply to 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!