3 * doesn't allow this file to be loaded with a browser.
\r
5 if (!defined('AT_INCLUDE_PATH')) { exit; }
\r
8 * this file must only be included within a Module obj
\r
10 if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }
\r
13 * assign the instructor and admin privileges to the constants.
\r
15 define('AT_PRIV_UTF8CONV', $this->getPrivilege());
\r
16 define('AT_ADMIN_PRIV_UTF8CONV', $this->getAdminPrivilege());
\r
19 * add the admin pages when needed.
\r
21 if (admin_authenticate(AT_ADMIN_PRIV_UTF8CONV, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
\r
22 $this->_pages['admin/courses.php']['children'] = array('mods/utf8conv/index_admin.php');
\r
23 $this->_pages['mods/utf8conv/index_admin.php']['title_var'] = 'utf8conv';
\r
24 $this->_pages['mods/utf8conv/index_admin.php']['parent'] = 'admin/courses.php';
\r
28 * instructor Manage section:
\r
30 $this->_pages['tools/content/index.php']['children'] = array('mods/utf8conv/index_instructor.php');
\r
31 $this->_pages['mods/utf8conv/index_instructor.php']['title_var'] = 'utf8conv';
\r
32 $this->_pages['mods/utf8conv/index_instructor.php']['parent'] = 'tools/content/index.php';
\r
34 function utf8conv_get_group_url($group_id) {
\r
35 return 'mods/utf8conv/index.php';
\r