isset($CFG->enrol)????

isset($CFG->enrol)????

av Eugene Ritter -
Antal svar: 2
Where is $CFG->enroll set at? I can't seem to find it. I've browsed though, moodlelib.php, weblib.php, setup.php, defaults.php and so on... I'm working on modifying the paypal module to connect to the Bluepay gateway as well as a few other modifications...

Thanks
Genomsnitt av betyg: -
Som svar till Eugene Ritter

Re: isset($CFG->enrol)????

av Zbigniew Fiedorowicz -
It's stored in the config table of the Moodle database.  If it's not there, then it gets set to 'internal' in setup.php.

It gets into the database when you click on "Save Changes" in admin/enrol.php
Som svar till Zbigniew Fiedorowicz

Re: isset($CFG->enrol)????

av Eugene Ritter -
Duh. I found it....

//setup.php line 74 - 82

if ($configs = get_records('config')) {
$CFG = (array)$CFG;
foreach ($configs as $config) {
$CFG[$config->name] = $config->value;
}
$CFG = (object)$CFG;
unset($configs);
unset($config);
}

Thanks!