X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Ftransports.phh;h=a77fad7a1cfb28c87665e219ba4c142281ee3bf0;hb=9a17da4020740578e3a744630fd6be96c8237cab;hp=e0b11eedf2398e30bc6184a26755690e1427ff35;hpb=296f0c5bf7e59c46e43c55f968c1e8af603f0073;p=brisk.git diff --git a/web/Obj/transports.phh b/web/Obj/transports.phh index e0b11ee..a77fad7 100644 --- a/web/Obj/transports.phh +++ b/web/Obj/transports.phh @@ -69,6 +69,10 @@ class Transport_template { function chunk($step, $cont) { } + + function is_chunked() + { + } } class Transport_xhr { @@ -90,6 +94,7 @@ class Transport_xhr { static function fini($init_string, $base, $blockerr) { + return (sprintf('@BEGIN@ %s window.onbeforeunload = null; window.onunload = null; document.location.assign("%sindex.php"); @END@', ($blockerr ? 'xstm.stop(); ' : ''), $base)); return (""); } @@ -97,6 +102,11 @@ class Transport_xhr { { return ("@BEGIN@".$cont."@END@"); } + + function is_chunked() + { + return TRUE; + } } class Transport_iframe { @@ -165,6 +175,11 @@ push(null);\n// -->\n", $step); push(\"%s\");\n// -->\n", $step, escpush($cont) ); } } + + function is_chunked() + { + return TRUE; + } } class Transport_htmlfile extends Transport_iframe { @@ -187,5 +202,14 @@ class Transport { return new Transport_iframe(); } } + static function gettype($transp) + { + if ($transp == 'xhr' || $transp == 'htmlfile') { + return "Transport_".$transp; + } + else { + return 'Transport_iframe'; + } + } } ?> \ No newline at end of file