Commit Graph

6 Commits

Author SHA1 Message Date
Petr Skoda 2e00d01db4 MDL-46099 session: fix use of references for session globals
This reverses the references used for global $USER and $SESSION,
the reason is that PHP does not allow references to references.
$USER is a reference to $GLOBALS['USER'] which means we cannot
put any references to it. Solution is to store the current user and session
objects in $GLOBALS['USER'] and $GLOBALS['SESSIOn'] are reference
them in $_SESSION.

This patch makes the session code behave the same way in CLI,
phpunit and normal web requests - this allows use to finally
unit test most aspects of the session code in Moodle.
2014-07-01 08:38:00 +12:00
Petr Škoda 965a3c6621 MDL-44106 add origin info to $PAGE object and use it in logs 2014-03-20 17:28:32 +08:00
Sam Hemelryk e89fba41af MDL-44496 fixed renamed method ref in comment 2014-03-11 11:54:52 +13:00
Petr Škoda 875f191963 MDL-44496 fix minor trait docs issue
The store trait is not necessary any more in bufferef_writer
because we define the required methods as abstract.
2014-03-07 11:06:17 +08:00
Petr Škoda e23bd11010 MDL-44496 fix event buffering in log stores 2014-03-07 10:58:19 +08:00
Ankit Agarwal 8bae0d0d80 MDL-43759 logging: Rename trait writer to buffered_writer 2014-02-28 14:52:29 +08:00