Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/admin/settings/mnet.php
Go to the documentation of this file.
00001 <?php
00002 
00003 // This file defines settingpages and externalpages under the "mnet" category
00004 
00005 if ($hassiteconfig) { // speedup for non-admins, add all caps used on this page
00006 
00007 $ADMIN->add('mnet', new admin_externalpage('net', get_string('settings', 'mnet'),
00008                                            "$CFG->wwwroot/$CFG->admin/mnet/index.php",
00009                                            'moodle/site:config'));
00010 
00011 
00012 
00013 $ADMIN->add('mnet', new admin_externalpage('mnetpeers', get_string('managemnetpeers', 'mnet'),
00014                                            "$CFG->wwwroot/$CFG->admin/mnet/peers.php",
00015                                            'moodle/site:config'));
00016 
00017 
00018 $ADMIN->add('mnet', new admin_category('mnetpeercat', get_string('mnetpeers', 'mnet')));
00019 
00020 if (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode !== 'off') {
00021     require_once($CFG->dirroot.'/mnet/lib.php');
00022 
00023     $hosts = mnet_get_hosts();
00024     foreach ($hosts as $host) {
00025         if ($host->id == $CFG->mnet_all_hosts_id) {
00026             $host->name = get_string('allhosts', 'core_mnet');
00027         }
00028         $ADMIN->add('mnetpeercat',
00029             new admin_externalpage(
00030                 'mnetpeer' . $host->id,
00031                 $host->name,
00032                 $CFG->wwwroot . '/admin/mnet/peers.php?step=update&hostid=' . $host->id,
00033                 'moodle/site:config'
00034             )
00035         );
00036     }
00037 }
00038 
00039 $ADMIN->add('mnet', new admin_externalpage('ssoaccesscontrol', get_string('ssoaccesscontrol', 'mnet'),
00040                                            "$CFG->wwwroot/$CFG->admin/mnet/access_control.php",
00041                                            'moodle/site:config'));
00042 $ADMIN->add('mnet', new admin_externalpage('mnetenrol', get_string('clientname', 'mnetservice_enrol'),
00043                                            "$CFG->wwwroot/mnet/service/enrol/index.php",
00044                                            'moodle/site:config'));
00045 $ADMIN->add('mnet', new admin_externalpage('trustedhosts', get_string('trustedhosts', 'mnet'),
00046                                            "$CFG->wwwroot/$CFG->admin/mnet/trustedhosts.php",
00047                                            'moodle/site:config'));
00048 
00049 if (isset($CFG->mnet_dispatcher_mode) and $CFG->mnet_dispatcher_mode !== 'off') {
00050     $profilefields = new admin_settingpage('mnetprofilefields', get_string('profilefields', 'mnet'),
00051                                                'moodle/site:config');
00052     $ADMIN->add('mnet', $profilefields);
00053 
00054     $fields = mnet_profile_field_options();
00055     $forced = implode(', ', $fields['forced']);
00056 
00057     $profilefields->add(new admin_setting_configmultiselect('mnetprofileexportfields', get_string('profileexportfields', 'mnet'), get_string('profilefielddesc', 'mnet', $forced), $fields['legacy'], $fields['optional']));
00058     $profilefields->add(new admin_setting_configmultiselect('mnetprofileimportfields', get_string('profileimportfields', 'mnet'), get_string('profilefielddesc', 'mnet', $forced), $fields['legacy'], $fields['optional']));
00059 }
00060 
00061 
00062 } // end of speedup
 All Data Structures Namespaces Files Functions Variables Enumerations