function initializeCommonObjects(&$object) { global $configurations, $page, $debugger, $database; if (CommonTools::property_exists($object, "configurations")) { $object->configurations =& $configurations; } if (CommonTools::property_exists($object, "page")) { $object->page =& $page; } if (CommonTools::property_exists($object, "debugger")) { $object->debugger =& $debugger; } if (CommonTools::property_exists($object, "database")) { $object->database =& $database; } }