volgens Luis de Vasconcelos.
What are you trying to achieve? What is that $cfg->moodlecourse setting? What if you just backup the config.php file? Then, if the admin changes the origional file, you can just restore it from the copy.