MDL-20232 making "object" class extend stdClass - this greatly helps with type checking

This commit is contained in:
skodak 2009-09-08 07:09:01 +00:00
parent 0a941490ec
commit b08b356960

View 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