public static function clear_init_code()
    {
        self::$init_code = array();
        self::$vars = array();
        self::$silverstripe_db_included = false;
        if (self::$base_init_code) {
            array_unshift(self::$init_code, self::$base_init_code);
        }
    }