]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20232 making "object" class extend stdClass - this greatly helps with type checking
authorskodak <skodak>
Tue, 8 Sep 2009 07:09:01 +0000 (07:09 +0000)
committerskodak <skodak>
Tue, 8 Sep 2009 07:09:01 +0000 (07:09 +0000)
lib/setuplib.php

index f938876c934f4cbe7f25a950c0b4428aa632b8ab..65b1f0576aaa24c3c8a9b047548d74e60edd4b2c 100644 (file)
@@ -39,13 +39,15 @@ define ('DEBUG_ALL', 6143);
 define ('DEBUG_DEVELOPER', 38911);
 
 /**
- * Simple class
+ * Simple class. It is usually used instead of stdClass because it looks
+ * more familiar to Java develpers ;-) Do not use for type checking of
+ * function parameters.
  *
  * @package   moodlecore
  * @copyright 1999 onwards Martin Dougiamas  {@link http://moodle.com}
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
-class object {};
+class object extends stdClass {};
 
 /**
  * Base Moodle Exception class