Permalink
Browse files

ELIS 2.2.0.5 release

  • Loading branch information...
1 parent 3b22aed commit 78219ca1284bb672b3775c0bdffb98a5aaf096ee brendan committed Jun 18, 2012
Showing 662 changed files with 93,999 additions and 4,175 deletions.
@@ -1,54 +0,0 @@
-<?php // $Id$
-
-/**
- * ELIS_info Block is a Moodle block to display ELIS components
- * and their release version string.
- *
- * @author Brent Boghosian <brent.boghosian@remote-learner.net>
- * @copyright Copyright (c) 2011 Remote-Learner
- * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
- * @package ELIS
- */
-
-class block_elis_info extends block_base {
-
- function init() {
- $this->title = get_string('elis_info', 'block_elis_info');
- $this->version = 2011020100;
- $this->release = '1.0';
- }
-
- function applicable_formats() {
- return array('site' => true);
- }
-
- /**
- * Simply displays a link to ELIS Information page: blocks/elis_info.php
- *
- * @uses $CFG
- */
- function get_content() {
- global $CFG;
-
- if ($this->content !== NULL) {
- return $this->content;
- }
-
- // check user capabilities to view elis_info
- $context = get_context_instance(CONTEXT_SYSTEM, SITEID);
- if (!has_capability('block/elis_info:view', $context)) {
- return '';
- }
-
- $this->content = new stdClass;
- $this->content->text = '<center>'.
- "<a href=\"{$CFG->wwwroot}/blocks/elis_info/elis_info.php\">".
- get_string('elis_info','block_elis_info'). '</a></center>';
- $this->content->footer = '';
-
- return $this->content;
- }
-
-}
-
-?>
@@ -1,45 +0,0 @@
-<?php
-//
-// Capability definitions for the elis_info block.
-//
-// The capabilities are loaded into the database table when the block is
-// installed or updated. Whenever the capability definitions are updated,
-// the module version number should be bumped up.
-//
-// The system has four possible values for a capability:
-// CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT, and inherit (not set).
-//
-//
-// CAPABILITY NAMING CONVENTION
-//
-// It is important that capability names are unique. The naming convention
-// for capabilities that are specific to modules and blocks is as follows:
-// [mod/block]/<component_name>:<capabilityname>
-//
-// component_name should be the same as the directory name of the mod or block.
-//
-// Core moodle capabilities are defined thus:
-// moodle/<capabilityclass>:<capabilityname>
-//
-// Examples: mod/forum:viewpost
-// block/recent_activity:view
-// moodle/site:deleteuser
-//
-// The variable name for the capability definitions array follows the format
-// $<componenttype>_<component_name>_capabilities
-//
-// For the core capabilities, the variable is $moodle_capabilities.
-
-$block_elis_info_capabilities = array(
-
- 'block/elis_info:view' => array(
- 'riskbitmask' => RISK_CONFIG,
- 'captype' => 'read',
- 'contextlevel' => CONTEXT_SYSTEM,
- 'legacy' => array(
- 'admin' => CAP_ALLOW
- )
- )
-);
-
-?>
@@ -1,144 +0,0 @@
-<?php // $Id$
-/**
- * elis_info.php - display elis component information
- *
- * @uses $COURSE, $CFG, $USER
- * @author Brent Boghosian <brent.boghosian@remote-learner.net>
- * @version 1.0
- * @package block elis_info
- *
- **/
-
-require_once(dirname(__FILE__)."/../../config.php" );
-require_once("{$CFG->dirroot}/blocks/moodleblock.class.php");
-
-global $COURSE, $USER;
-
-$strelisinfo = get_string('elis_info', 'block_elis_info');
-
-// Build navigation
-$navlinks = array();
-//$navlinks[] = array('name' => $strelisinfo);
-$navlinks[] = array('name' => $strelisinfo, 'link' => null, 'type' => 'misc');
-$navigation = build_navigation($navlinks);
-if (!($site = get_site())) {
- print_error('no_site', 'block_elis_info');
-}
-print_header($site->fullname, $strelisinfo, $navigation, '', '', true, '');
-
-// if ($COURSE->id != SITEID) { TBD }
-$context = get_context_instance(CONTEXT_SYSTEM, SITEID); // SYSTEM context
-if (!has_capability('block/elis_info:view', $context)) {
- print_error('no_privilege', 'block_elis_info');
-}
-
-echo "<center><br/>\n";
-echo '<table class="elis_info" cellpadding="3" cellspacing="3" border="1"><tr class="elis_info">'."\n";
-echo ' <th class="elis_info">'.get_string('elis_component', 'block_elis_info').
- "</th>\n";
-echo ' <th class="elis_info">'.get_string('elis_version', 'block_elis_info').
- "</th>\n";
-echo "</tr>\n";
-
-$plugins = array();
-$cnt = 0;
-$authplugins = get_list_of_plugins('auth');
-foreach ($authplugins as $authplugin) {
- $plugins[$cnt] = new stdClass;
- $plugins[$cnt]->dir = "auth/{$authplugin}";
- $plugins[$cnt]->obj = get_auth_plugin($authplugin);
- ++$cnt;
-}
-$blockplugins = get_list_of_plugins('blocks');
-foreach ($blockplugins as $blockplugin) {
- $plugins[$cnt] = new stdClass;
- $plugins[$cnt]->dir = "blocks/{$blockplugin}";
- $plugins[$cnt]->obj = "block_{$blockplugin}";
- ++$cnt;
-}
-$coursefmtplugins = get_list_of_plugins('course/format');
-foreach ($coursefmtplugins as $coursefmtplugin) {
- $plugins[$cnt] = new stdClass;
- $plugins[$cnt]->dir = "course/format/{$coursefmtplugin}";
- // TBD: no object for course/format?
- ++$cnt;
-}
-$enrolplugins = get_list_of_plugins('enrol');
-// require class enrolment_factory for enrolplugin
-require_once("{$CFG->dirroot}/enrol/enrol.class.php");
-foreach ($enrolplugins as $enrolplugin) {
- $plugins[$cnt] = new stdClass;
- $plugins[$cnt]->dir = "enrol/{$enrolplugin}";
- $plugins[$cnt]->obj = enrolment_factory::factory($enrolplugin);
- ++$cnt;
-}
-$filterplugins = get_list_of_plugins('filter');
-foreach ($filterplugins as $filterplugin) {
- $plugins[$cnt] = new stdClass;
- $plugins[$cnt]->dir = "filter/{$filterplugin}";
- // TBD: no object for filters?
- ++$cnt;
-}
-$modplugins = get_list_of_plugins('mod');
-foreach ($modplugins as $modplugin) {
- $plugins[$cnt] = new stdClass;
- $plugins[$cnt]->dir = "mod/{$modplugin}";
- $plugins[$cnt]->obj = "mod_{$modplugin}";
- ++$cnt;
-}
-$assigntypeplugins = get_list_of_plugins('mod/assignment/type');
-// require class assignment_base for assigntypeplugin
-require_once("{$CFG->dirroot}/mod/assignment/lib.php");
-foreach ($assigntypeplugins as $assigntypeplugin) {
- $plugins[$cnt] = new stdClass;
- $plugins[$cnt]->dir = "mod/assignment/type/{$assigntypeplugin}";
- $classname = "assignment_{$assigntypeplugin}";
- $classfile = "{$CFG->dirroot}/{$plugins[$cnt]->dir}/assignment.class.php";
- if (!class_exists($classname) && file_exists($classfile)) {
- require_once($classfile);
- }
- if (class_exists($classname)) {
- $plugins[$cnt]->obj = new $classname;
- }
- ++$cnt;
-}
-//var_dump($plugins);
-foreach ($plugins as $curplugin) {
- $versionfile = "{$CFG->dirroot}/{$curplugin->dir}/version.php";
- $plugin_obj = new stdClass;
- if (file_exists($versionfile)) {
- if (is_readable($versionfile)) {
- //error_log("blocks/elis_info.php: checking version file '{$versionfile}'");
- $plugin = new stdClass;
- $module = new stdClass;
- include($versionfile); // include_once() fails for 'mod'
- $plugin_obj = property_exists($module, 'release')
- ? $module : $plugin; // modules : filters
- } else {
- error_log("blocks/elis_info.php: version file '$versionfile' not readable!");
- }
- } else if (property_exists($curplugin, 'obj')) {
- if (is_object($curplugin->obj)) {
- $plugin_obj = $curplugin->obj; // auth, enrol?
- } else {
- $classfile = "{$CFG->dirroot}/{$curplugin->dir}/{$curplugin->obj}.php";
- if (!class_exists($curplugin->obj) &&
- file_exists($classfile)) {
- include_once($classfile);
- }
- if (class_exists($curplugin->obj)) {
- $plugin_obj = new $curplugin->obj; // blocks ...
- }
- }
- }
- if (property_exists($plugin_obj, 'release')) {
- echo "<tr><td class=\"elis_info\">{$curplugin->dir}</td>\n";
- echo " <td class=\"elis_info\">{$plugin_obj->release}</td>\n</tr>\n";
- }
-}
-
-echo "</table>\n";
-echo "</center>\n";
-print_footer($COURSE);
-
-?>
@@ -1,14 +0,0 @@
-<?php
-
-$string['blockname'] = 'ELIS Component Info';
-
-$string['elis_component'] = 'ELIS Component';
-$string['elis_info'] = 'ELIS Component Info';
-$string['elis_info:view'] = 'View ELIS component information';
-$string['elis_release'] = 'ELIS Component Version: ';
-$string['elis_version'] = 'Version';
-
-$string['no_privilege'] = 'You do not have privileges to view ELIS Component Info';
-$string['no_site'] = 'Site not defined!';
-
-?>
View
@@ -0,0 +1,5 @@
+
+.role_tables {
+ overflow-x: auto;
+ padding-bottom: 5px;
+}
@@ -0,0 +1,39 @@
+<?php
+
+///////////////////////////////////////////////////////////////////////////
+// //
+// NOTICE OF COPYRIGHT //
+// //
+// Moodle - Modular Object-Oriented Dynamic Learning Environment //
+// http://moodle.com //
+// //
+// Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
+// //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details: //
+// //
+// http://www.gnu.org/copyleft/gpl.html //
+// //
+///////////////////////////////////////////////////////////////////////////
+
+$capabilities = array(
+
+ 'tool/phpunittest:view' => array(
+ 'riskbitmask' => RISK_DATALOSS,
+ 'captype' => 'read',
+ 'contextlevel' => CONTEXT_SYSTEM,
+ 'archetypes' => array(
+ 'manager' => CAP_ALLOW
+ ),
+
+ 'clonepermissionsfrom' => 'moodle/site:config',
+ )
+);
+
Oops, something went wrong.

0 comments on commit 78219ca

Please sign in to comment.