Created
June 20, 2013 03:40
-
-
Save ankitagarwal/5820145 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/calendar/classes/type_base.php b/calendar/classes/type_b | |
new file mode 100644 | |
index 0000000..2ffd17c | |
--- /dev/null | |
+++ b/calendar/classes/type_base.php | |
@@ -0,0 +1,7 @@ | |
+<?php | |
+namespace core_calendar; | |
+class type_base { | |
+ function __construct() { | |
+ echo "Working"; | |
+ } | |
+} | |
\ No newline at end of file | |
diff --git a/course/view.php b/course/view.php | |
index f7f925d..29948df 100644 | |
--- a/course/view.php | |
+++ b/course/view.php | |
@@ -20,7 +20,7 @@ | |
$switchrole = optional_param('switchrole',-1, PARAM_INT); // De | |
$modchooser = optional_param('modchooser', -1, PARAM_BOOL); | |
$return = optional_param('return', 0, PARAM_LOCALURL); | |
- | |
+ $new = new \core_calendar\type_base(); | |
$params = array(); | |
if (!empty($name)) { | |
$params = array('shortname' => $name); | |
diff --git a/lib/classes/component.php b/lib/classes/component.php | |
index e623749..8642fe3 100644 | |
--- a/lib/classes/component.php | |
+++ b/lib/classes/component.php | |
@@ -58,11 +58,13 @@ class core_component { | |
*/ | |
public static function classloader($classname) { | |
self::init(); | |
- | |
+ echo $classname; | |
+ print_object(self::$classmap); | |
if (isset(self::$classmap[$classname])) { | |
// Global $CFG is expected in included scripts. | |
global $CFG; | |
// Function include would be faster, but for BC it is be | |
+ print_object($classname); | |
include_once(self::$classmap[$classname]); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment