Returning just a course ID in a block

Re: Returning just a course ID in a block

by Andrew Osiname -
Number of replies: 0

Good call. Ill start using that from now on. Just out of interest, the $USER and $COURSE objects can be accessed in moodle 1.9 like

global $USER;
$id = $USER->id;

Are there any other useful objects in moodle we can call in the same way?