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_ECOMM', $this->getPrivilege());
\r
16 define('AT_ADMIN_PRIV_ECOMM', $this->getAdminPrivilege());
\r
20 * add the admin pages when needed.
\r
22 if (admin_authenticate(AT_ADMIN_PRIV_ECOMM, TRUE) || admin_authenticate(AT_ADMIN_PRIV_ADMIN, TRUE)) {
\r
23 $this->_pages[AT_NAV_ADMIN] = array('mods/ecomm/payments_admin.php');
\r
24 $this->_pages['mods/ecomm/payments_admin.php']['title_var'] = 'ec_payments';
\r
25 $this->_pages['mods/ecomm/payments_admin.php']['parent'] = AT_NAV_ADMIN;
\r
26 $this->_pages['mods/ecomm/payments_admin.php']['children'] = array('mods/ecomm/index_admin.php','mods/ecomm/index_admin_approve.php', 'mods/_core/enrolment/admin/index.php');
\r
28 $this->_pages['mods/ecomm/index_admin.php']['title_var'] = 'ec_settings';
\r
29 $this->_pages['mods/ecomm/index_admin.php']['parent'] = 'mods/ecomm/payments_admin.php';
\r
31 $this->_pages['mods/ecomm/index_admin_approve.php']['title_var'] = 'ec_approve_manually';
\r
32 $this->_pages['mods/ecomm/index_admin_approve.php']['parent'] = 'mods/ecomm/payments_admin.php';
\r
36 * instructor Manage section:
\r
38 $this->_pages['mods/ecomm/response_ipn.php']['title_var'] = 'ec_payments';
\r
39 $this->_pages['mods/ecomm/response_user.php']['title_var'] = 'ec_payments';
\r
40 $this->_pages['mods/ecomm/error_beanstream.php']['title_var'] = 'ec_payments';
\r
41 $this->_pages['mods/ecomm/success_beanstream.php']['title_var'] = 'ec_payments';
\r
42 $this->_pages['mods/ecomm/failure_beanstream.php']['title_var'] = 'ec_payments';
\r
43 $this->_pages['mods/ecomm/index_instructor.php']['title_var'] = 'ec_payments';
\r
44 $this->_pages['mods/ecomm/index_instructor.php']['parent'] = 'tools/index.php';
\r
45 $this->_pages['mods/ecomm/index_instructor.php']['children'] = array('mods/_core/enrolment/index.php');
\r
46 $this->_pages['tools/enrollment/index.php']['children'] = array('mods/ecomm/index_instructor.php');
\r
49 /* my start page pages */
\r
50 $this->_pages[AT_NAV_START] = array('mods/ecomm/index.php');
\r
51 $this->_pages['mods/ecomm/index.php']['title_var'] = 'ec_payments';
\r
52 $this->_pages['mods/ecomm/index.php']['parent'] = AT_NAV_START;
\r
54 $this->_pages['mods/ecomm/payment.php']['title_var'] = 'ec_payments';
\r
55 $this->_pages['mods/ecomm/payment.php']['parent'] = 'mods/ecomm/index.php';
\r
56 $this->_pages['mods/ecomm/index.php']['children'] = array('users/index.php','users/browse.php');
\r
58 $this->_pages['mods/ecomm/failure.php']['title_var'] = 'ec_payments';
\r
59 $this->_pages['mods/ecomm/invoice.php']['title_var'] = 'ec_payments';
\r