Location: PHPKode > projects > Rthree > r3-1.9.0/r3/generate/CacheOutput.php
<?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_CacheOutput extends r3_generate_Output {
    private $cache="";
    function doOpen( r3_generate_GenerateContext $context ) {
        $this->cache="";
    }

    function doOutput( $str  ) {
        $this->cache .= $str;
    }

    function doClose( ) {
        $this->cache="";
    }

    function getBuffer() {
        $this->flush();
        return $this->cache;
    }
}

?>
Return current item: Rthree