$newsubmission = new Object;
That one is from (iirc) mod/assignment/lib.php. There are others in other modules. However, doing a grep for "class Object" from the install directory returns absolutely nothing. The object seems to never be defined. What feature of PHP do I need to google to learn about this? This is very confusing.
User defined function names and class names are case insensitive in PHP.
I did find that after I posted my original question, but didn't know it was case insensitive.
what's the difference between declaring objects as being of this empty class Object and declaring them as builtin class stdClass ?
If you do a print_r on an object of type Object php says it's an object of class stdObject.
Just a matter of preference (some people preferring to type "$x = new object", instead of "$x = new stdclass") ... I must admit I think "object" is nicer than "stdclass".
My $00.02 would be that an object instantiation is always of the form...
$var = new Classname;
...not new Objectname, so I think that stdClass reads better.
Pedantic? Who me?