/** This sets the db and userinfo. It will normally be call in the boot process * * @param object the db object * @param array userinfo array ***/ public static function init(&$db, &$userinfo) { self::$db = $db; self::$userinfo = $userinfo; $class = 'vB_dB_' . self::$site_db_type . '_Assertor'; if (class_exists($class)) { self::$instance = new $class(); } }