Show Menu
Cheatography

Moodle Cheat Sheet (DRAFT) by

Moodle Coders Quick Reference

This is a draft cheat sheet. It is a work in progress and is not finished yet.
 

CFG Global Object

wwwroot
The url to Moodle site
dirroot
The path to Moodle site
libdir
The path of Moodle lib dir

GIT Moodle

git checkout -t origin­/<b­ran­ch>
git fetch origin­/<r­emo­teb­ran­ch>­:<l­oca­lbr­anc­h>
 

USER Global Object

username
user's login name
firstname
user's first name
lastname
user's last name
fullna­me(­$user)
returns formatted full name