<?php
/**
* provides {@link r3_generate_StdOutput} class
*
*
* Copyright (c) 2007 Yahoo! Inc. All rights reserved.
* The copyrights embodied in the content of this file are licensed under the BSD
* open source license
*
* @package r3
* @subpackage generate
*/
/**
* require
*/
require_once("r3/generate/Output.php");
/**
* provides {@link r3_generate_StdOutput} class
*
* @package r3
* @subpackage generate
*/
class r3_generate_StdoutOutput extends r3_generate_Output {
private $buf = "";
function doOpen( r3_generate_GenerateContext $context ) {
}
function doOutput( $str ) {
print $str;
}
function doClose( ) {
$this->doOutput($this->buf);
$this->buf = '';
}
// overwrite this function for bug 1710599
function flush() {
$this->buf .= $this->getBuffer();
$this->cleanBuffer();
}
}
?>