tjhunt d867e696aa accesslib: MDL-18620 do not used static to cache things, it makes unit testing impossible.
Instead we have a new $ACCESSLIB_PRIVATE for all caching. Regrettably, the only way to make this work in PHP (other than rewriting everything to be methods of a class rather than functions) is to make this a global variable. However $ACCESSLIB_PRIVATE should not be thought of a global, it is a private implementation detail of accesslib.php. (And there is a comment saying that.)

There is a new function accesslib_clear_all_caches_for_unit_testing(). In a unit test, you need to call this at the start of your test method, before you set up any test data, and again at the end, after you have discarded all your test data.

This new $ACCESSLIB_PRIVATE subsumes the old $ACCESS, $RDEFS and $DITRYCONTEXTS globals.

Also, I took the opportunity to refactor the (inconsistently) duplicated code for adding a context to the caches code into a cache_context function.
2009-03-23 03:54:50 +00:00
2009-03-18 13:28:57 +00:00
2009-02-17 17:23:56 +00:00
2008-09-21 21:30:26 +00:00
2008-05-31 17:48:51 +00:00
2009-03-18 11:15:51 +00:00
2007-12-06 08:44:07 +00:00
2008-09-18 07:37:11 +00:00

README      $Id$
------

QUICK INSTALL
=============

For the impatient, here is a basic outline of the 
installation process, which normally takes me only 
a few minutes:

1) Move the Moodle files into your web directory. 

2) Create a single database for Moodle to store all
   it's tables in (or choose an existing database).

3) Visit your Moodle site with a browser, you should 
   be taken to the install.php script, which will lead
   you through creating a config.php file and then 
   setting up Moodle, creating an admin account etc.

4) Set up a cron task to call the file admin/cron.php
   every five minutes or so.


For more information, see the INSTALL DOCUMENTATION:

   http://docs.moodle.org/en/Installing_Moodle 

A local copy can also be found in 

   lang/en_utf8/help/install.html   (or your language)


Good luck and have fun!
Martin Dougiamas, Lead Developer

S
Description
Moodle - the world's open source learning platform
Readme 979 MiB
Languages
PHP 85.9%
JavaScript 9.2%
Gherkin 2.3%
CSS 1.2%
Mustache 1%
Other 0.3%