");
$ret .= sprintf("\n", $init_string);
return ($ret);
}
static function fini($init_string, $base, $blockerr)
{
$ret = "";
$ret .= sprintf("
");
$ret .= sprintf("\n", $init_string);
$ret .= sprintf("", 0, escpush($blockerr) );
return ($ret);
}
function chunk($step, $cont)
{
if ($cont == NULL) {
return sprintf("", $step);
}
else {
return sprintf("", $step, escpush($cont) );
}
}
}
class Transport_htmlfile extends Transport_iframe {
}
class Transport {
function Transport()
{
}
static function create($transp)
{
if ($transp == 'xhr') {
return new Transport_xhr();
}
else if ($transp == 'htmlfile') {
return new Transport_htmlfile();
}
else {
return new Transport_iframe();
}
}
static function gettype($transp)
{
if ($transp == 'xhr' || $transp == 'htmlfile') {
return "Transport_".$transp;
}
else {
return 'Transport_iframe';
}
}
}
?>