Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.
Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL. I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php
Still working on forums, quizzes, surveys, resources.
The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
Changes to expand "open" option in forums. Now have a choice between
three options: new discussions and new replies, new replies only and
no new discussions or new replies.
Three new options in lang/forum.php and I changed "allowdiscussions".
modular (at slight cost to performance) and every modules can now
have a module_print_recent_activity() function. This function
takes a list of logs, searches for things to display and does so.
So far I've done forum and journal functions
to the login screen to login first. However, this was being saved
as the place to go back to after replying.
I added a check for this so now it behaves as you'd expect.
They are stored in the course moddata area.
They appear as links within the message, including mailed-out messages.
They are deleted when the post is deleted.
servers that have register_globals turned off (this is the
default setting on newer version of PHP).
In fact it's partly a hack that globalises all GET, POST, FILES
AND COOKIE variables. Unfortunately though the SESSION and
USER global session variables are only available as $_SESSION["USER"]
and $_SESSION["SESSION"], which is cumbersome to use.
So, for every request I now make a copy of these two session variables
into $USER and $SESSION. Whenever I update them thoughout Moodle I
now have to call save_session("USER") which copies them back to the
session variable. This seems to be working well now.
Because I'm using $_SESSION etc now this will raise
the required minimum version of PHP to 4.1.0
ratings that haven't been done yet on a discussion. If not, then
it won't print the ratings form. This avoids a slight confusion
about the interface that existed previously.