$classname = page_map_class($type);
- $object = &new $classname;
+ $object = new $classname;
// TODO: subclassing check here
if ($object->get_type() !== $type) {
// A whole battery of functions to allow standardized-name constructors in all versions of PHP.
// The constructor is actually called construct()
- function page_base() {
- $this->construct();
- }
-
function __construct() {
$this->construct();
}
// HTML OUTPUT SECTION
// We have absolutely no idea what derived pages are all about
- function print_header($title, $morenavlinks) {
+ function print_header($title, $morenavlinks=NULL) {
trigger_error('Page class does not implement method <strong>print_header()</strong>', E_USER_WARNING);
return;
}