/** * Validate that dashboard method for getting ELIS jquery library version * @param array $files list of files to get info from * @param array $infostrings associative array of default values, i.e. array('name' => 'Name', 'version' => 'Version', 'release' => 'Release date') * @param array $expected array of expected info strings * @dataProvider get_jquery_info_dataprovider */ public function test_get_jquery_info($files, $infostrings, $expected) { $dashbrd = new dashboardpage(); list($componentname, $release, $version) = $dashbrd->get_jquery_file_info($files, $infostrings); $this->assertEquals($expected[0], $componentname); $this->assertEquals($expected[1], $release); $this->assertEquals($expected[2], $version); }
*/ require_once dirname(__FILE__) . '/config.php'; /// This is the main entry point for the curriculum management system. It can be called from anywhere. /// By using this, we can manage all application-specific handling easier. if (!isloggedin()) { redirect($CFG->wwwroot); } $pages = array('crscat' => array('class' => 'coursecatalogpage', 'file' => 'coursecatalogpage.class.php'), 'certlist' => array('class' => 'certificatelistpage', 'file' => 'certificatelistpage.class.php'), 'tag' => array('class' => 'tagpage', 'file' => 'tagpage.class.php'), 'env' => array('class' => 'envpage', 'file' => 'envpage.class.php'), 'usr' => array('class' => 'usermanagementpage', 'file' => 'usermanagementpage.class.php'), 'stucur' => array('class' => 'studentcurriculumpage', 'file' => 'curriculumstudentpage.class.php'), 'usrclst' => array('class' => 'userclusterpage', 'file' => 'cluster/manual/assignpage.class.php'), 'usrtrk' => array('class' => 'usertrackpage', 'file' => 'usertrackpage.class.php'), 'usrrole' => array('class' => 'user_rolepage', 'file' => 'rolepage.class.php'), 'clst' => array('class' => 'clusterpage', 'file' => 'clusterpage.class.php'), 'clstcur' => array('class' => 'clustercurriculumpage', 'file' => 'clustercurriculumpage.class.php'), 'clsttrk' => array('class' => 'clustertrackpage', 'file' => 'clustertrackpage.class.php'), 'clstusr' => array('class' => 'clusteruserpage', 'file' => 'cluster/manual/assignpage.class.php'), 'clstrole' => array('class' => 'cluster_rolepage', 'file' => 'rolepage.class.php'), 'clstusrsel' => array('class' => 'clusteruserselectpage', 'file' => 'cluster/manual/selectpage.class.php'), 'cur' => array('class' => 'curriculumpage', 'file' => 'curriculumpage.class.php'), 'curcrs' => array('class' => 'curriculumcoursepage', 'file' => 'curriculumcoursepage.class.php'), 'currcrs' => array('class' => 'curriculumcoursepage', 'file' => 'curriculumcoursepage.class.php'), 'curstu' => array('class' => 'curriculumstudentpage', 'file' => 'curriculumstudentpage.class.php'), 'curclst' => array('class' => 'curriculumclusterpage', 'file' => 'clustercurriculumpage.class.php'), 'curtag' => array('class' => 'curtaginstancepage', 'file' => 'taginstancepage.class.php'), 'currole' => array('class' => 'curriculum_rolepage', 'file' => 'rolepage.class.php'), 'trk' => array('class' => 'trackpage', 'file' => 'trackpage.class.php'), 'trkm' => array('class' => 'trackpage', 'file' => 'trackpage.class.php'), 'trkusr' => array('class' => 'trackuserpage', 'file' => 'usertrackpage.class.php'), 'trkclst' => array('class' => 'trackclusterpage', 'file' => 'clustertrackpage.class.php'), 'trkcls' => array('class' => 'trackassignmentpage', 'file' => 'trackassignmentpage.class.php'), 'trkrole' => array('class' => 'track_rolepage', 'file' => 'rolepage.class.php'), 'crs' => array('class' => 'coursepage', 'file' => 'coursepage.class.php'), 'cfc' => array('class' => 'curriculumforcoursepage', 'file' => 'curriculumpage.class.php'), 'crscurr' => array('class' => 'coursecurriculumpage', 'file' => 'curriculumcoursepage.class.php'), 'crstag' => array('class' => 'crstaginstancepage', 'file' => 'taginstancepage.class.php'), 'crsrole' => array('class' => 'course_rolepage', 'file' => 'rolepage.class.php'), 'cls' => array('class' => 'cmclasspage', 'file' => 'cmclasspage.class.php'), 'ins' => array('class' => 'instructorpage', 'file' => 'instructorpage.class.php'), 'stu' => array('class' => 'studentpage', 'file' => 'studentpage.class.php'), 'wtg' => array('class' => 'waitlistpage', 'file' => 'waitlistpage.class.php'), 'clstag' => array('class' => 'clstaginstancepage', 'file' => 'taginstancepage.class.php'), 'clsrole' => array('class' => 'class_rolepage', 'file' => 'rolepage.class.php'), 'replnk' => array('class' => 'class_reportlinkspage', 'file' => 'reportlinkspage.class.php'), 'bulkuser' => array('class' => 'bulkuserpage', 'file' => 'bulkuserpage.class.php'), 'field' => array('class' => 'customfieldpage', 'file' => 'customfieldpage.class.php'), 'health' => array('class' => 'healthpage', 'file' => 'healthpage.class.php'), 'clstclass' => array('class' => 'clusterclassificationpage', 'file' => 'plugins/cluster_classification/clusterclassificationpage.class.php'), 'dim' => array('class' => 'dataimportpage', 'file' => 'elis_ip/elis_ip_page.php'), 'cfg' => array('class' => 'configpage', 'file' => 'configpage.class.php'), 'dftcls' => array('class' => 'configclsdefaultpage', 'file' => 'configclsdefaultpage.class.php'), 'dftcrs' => array('class' => 'configcrsdefaultpage', 'file' => 'configcrsdefaultpage.class.php'), 'ntf' => array('class' => 'notifications', 'file' => 'notificationspage.class.php'), 'crp' => array('class' => 'RequestPage', 'file' => '../blocks/course_request/requestpage.php'), 'erp' => array('class' => 'EditRequestPage', 'file' => '../blocks/course_request/editrequestpage.php'), 'arp' => array('class' => 'courserequestapprovepage', 'file' => '../blocks/course_request/approvepage.class.php')); $section = optional_param('s', '', PARAM_ACTION); if (isset($pages[$section])) { include CURMAN_DIRLOCATION . '/' . $pages[$section]['file']; $classname = $pages[$section]['class']; $page = new $classname(); } else { include CURMAN_DIRLOCATION . '/dashboardpage.class.php'; $page = new dashboardpage(); } // include (CURMAN_DIRLOCATION . '/mainpage.class.php'); // $page = new mainpage(); //calculate the path of curriculum entities corresponding to the most recent click $currentitypath = optional_param('currentitypath', '', PARAM_TEXT); if (!empty($currentitypath)) { //parameter is set directly, so use it $USER->currentitypath = $currentitypath; } else { //determine whether to unset the parameter based on comparing the current //page type with the last entity set $effective_entity_type = $page->get_page_context(); if (isset($USER->currentitypath)) { $id = optional_param('id', 0, PARAM_INT); // TBV
* @copyright (C) 2008-2012 Remote Learner.net Inc http://www.remote-learner.net * */ require_once dirname(__FILE__) . '/lib/setup.php'; /// This is the main entry point for the program management system. It can be called from anywhere. /// By using this, we can manage all application-specific handling easier. $PAGE->set_context(context_system::instance()); $pages = array('crscat' => array('class' => 'coursecatalogpage', 'file' => 'coursecatalogpage.class.php'), 'certlist' => array('class' => 'certificatelistpage', 'file' => 'certificatelistpage.class.php'), 'tag' => array('class' => 'tagpage', 'file' => 'tagpage.class.php'), 'env' => array('class' => 'envpage', 'file' => 'envpage.class.php'), 'usr' => array('class' => 'userpage', 'file' => 'userpage.class.php'), 'stucur' => array('class' => 'studentcurriculumpage', 'file' => 'curriculumstudentpage.class.php'), 'usrclst' => array('class' => 'userclusterpage', 'file' => 'enrol/userset/manual/usersetassignmentpage.class.php'), 'usrtrk' => array('class' => 'usertrackpage', 'file' => 'usertrackpage.class.php'), 'usrrole' => array('class' => 'user_rolepage', 'file' => 'rolepage.class.php'), 'clst' => array('class' => 'usersetpage', 'file' => 'usersetpage.class.php'), 'clstsub' => array('class' => 'usersetsubusersetpage', 'file' => 'usersetpage.class.php'), 'clstcur' => array('class' => 'clustercurriculumpage', 'file' => 'clustercurriculumpage.class.php'), 'clsttrk' => array('class' => 'clustertrackpage', 'file' => 'clustertrackpage.class.php'), 'clstusr' => array('class' => 'clusteruserpage', 'file' => 'enrol/userset/manual/usersetassignmentpage.class.php'), 'clstrole' => array('class' => 'cluster_rolepage', 'file' => 'rolepage.class.php'), 'clstusrsel' => array('class' => 'clusteruserselectpage', 'file' => 'enrol/userset/manual/selectpage.class.php'), 'cur' => array('class' => 'curriculumpage', 'file' => 'curriculumpage.class.php'), 'curcrs' => array('class' => 'curriculumcoursepage', 'file' => 'curriculumcoursepage.class.php'), 'currcrs' => array('class' => 'curriculumcoursepage', 'file' => 'curriculumcoursepage.class.php'), 'curstu' => array('class' => 'curriculumstudentpage', 'file' => 'curriculumstudentpage.class.php'), 'curclst' => array('class' => 'curriculumclusterpage', 'file' => 'clustercurriculumpage.class.php'), 'curtag' => array('class' => 'curtaginstancepage', 'file' => 'taginstancepage.class.php'), 'currole' => array('class' => 'curriculum_rolepage', 'file' => 'rolepage.class.php'), 'trk' => array('class' => 'trackpage', 'file' => 'trackpage.class.php'), 'trkm' => array('class' => 'trackpage', 'file' => 'trackpage.class.php'), 'trkusr' => array('class' => 'trackuserpage', 'file' => 'usertrackpage.class.php'), 'trkclst' => array('class' => 'trackclusterpage', 'file' => 'clustertrackpage.class.php'), 'trkcls' => array('class' => 'trackassignmentpage', 'file' => 'trackassignmentpage.class.php'), 'trkrole' => array('class' => 'track_rolepage', 'file' => 'rolepage.class.php'), 'crs' => array('class' => 'coursepage', 'file' => 'coursepage.class.php'), 'cfc' => array('class' => 'curriculumforcoursepage', 'file' => 'curriculumpage.class.php'), 'crscurr' => array('class' => 'coursecurriculumpage', 'file' => 'curriculumcoursepage.class.php'), 'crstag' => array('class' => 'crstaginstancepage', 'file' => 'taginstancepage.class.php'), 'crsrole' => array('class' => 'course_rolepage', 'file' => 'rolepage.class.php'), 'crsengine' => array('class' => 'course_enginepage', 'file' => 'resultspage.class.php'), 'crsenginestatus' => array('class' => 'course_enginestatuspage', 'file' => 'resultsstatuspage.class.php'), 'crscertificate' => array('class' => 'course_certificatepage', 'file' => 'certificatepage.class.php'), 'cls' => array('class' => 'pmclasspage', 'file' => 'pmclasspage.class.php'), 'ins' => array('class' => 'instructorpage', 'file' => 'instructorpage.class.php'), 'stu' => array('class' => 'studentpage', 'file' => 'studentpage.class.php'), 'wtg' => array('class' => 'waitlistpage', 'file' => 'waitlistpage.class.php'), 'clstag' => array('class' => 'clstaginstancepage', 'file' => 'taginstancepage.class.php'), 'clsrole' => array('class' => 'class_rolepage', 'file' => 'rolepage.class.php'), 'clsengine' => array('class' => 'class_enginepage', 'file' => 'resultspage.class.php'), 'clsenginestatus' => array('class' => 'class_enginestatuspage', 'file' => 'resultsstatuspage.class.php'), 'replnk' => array('class' => 'class_reportlinkspage', 'file' => 'reportlinkspage.class.php'), 'bulkuser' => array('class' => 'bulkuserpage', 'file' => 'bulkuserpage.class.php'), 'resultsconfig' => array('class' => 'resultsconfigpage', 'file' => 'resultsconfigpage.class.php'), 'field' => array('class' => 'customfieldpage', 'file' => 'customfieldpage.class.php'), 'health' => array('class' => 'healthpage', 'file' => 'healthpage.class.php'), 'clstclass' => array('class' => 'usersetclassificationpage', 'file' => 'plugins/usetclassify/usersetclassificationpage.class.php'), 'dim' => array('class' => 'dataimportpage', 'file' => 'elis_ip/elis_ip_page.php'), 'dftcls' => array('class' => 'configclsdefaultpage', 'file' => 'configclsdefaultpage.class.php'), 'dftcrs' => array('class' => 'configcrsdefaultpage', 'file' => 'configcrsdefaultpage.class.php'), 'ntf' => array('class' => 'notifications', 'file' => 'notificationspage.class.php'), 'crp' => array('class' => 'RequestPage', 'file' => '../../blocks/courserequest/requestpage.php'), 'erp' => array('class' => 'EditRequestPage', 'file' => '../../blocks/courserequest/editrequestpage.php'), 'arp' => array('class' => 'courserequestapprovepage', 'file' => '../../blocks/courserequest/approvepage.class.php')); $section = optional_param('s', '', PARAM_ACTION); if (isset($pages[$section])) { include elispm::file($pages[$section]['file']); $classname = $pages[$section]['class']; $PAGE = new $classname(); } else { include elispm::file('dashboardpage.class.php'); $PAGE = new dashboardpage(); } $PAGE->requires->css('/local/elisprogram/icons.css'); // ELIS-3042 if (empty($PAGE->nologin) && !isloggedin()) { redirect($CFG->wwwroot); } //calculate the path of curriculum entities corresponding to the most recent click $currentitypath = optional_param('currentitypath', '', PARAM_TEXT); if (!empty($currentitypath)) { //parameter is set directly, so use it $USER->currentitypath = $currentitypath; } else { //determine whether to unset the parameter based on comparing the current //page type with the last entity set $effective_entity_type = $PAGE->get_page_context();