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.
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.
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.
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!
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!