Hi i would test how to instance class moodle
this is my test in a folder www
<h1>test</h1>
<?php
$CFG = new stdClassstd();
var_dump($CFG);
?>
where is stdClassstd for include it ?
thank for reply me
StdClass is php's generic empty class. Your code is incorrect should read :
$CFG = new stdClass();
Thanks a lot, I not undestand this class is native class php
I would like instance this class
http://tracker.moodle.org/browse/MDL-25011
The script is a command line script to be ran by a cron job.
Look at the comments at the top of the script - it suggests
/var/www/moodle/auth/cas/cli/sync_cohorts.php
Be careful, you will probably need to change the LDAP details.
*Translated by Bing *
Certains des commentaires dans le fichier sont en français