public function fetch($return = false)
    {
        switch ($this->library) {
            case 'phptal':
                // execute the template
                try {
                    $buffer = $this->execute();
                    if ($return === true) {
                        return $buffer;
                    } else {
                        echo $buffer;
                    }
                } catch (Exception $e) {
                    // repack
                    throw new Doozr_Exception($e);
                }
                break;
        }

        return null;
    }
public function fetch($return = false)
    {
        switch ($this->library) {
            case 'phptal':
                // execute the template
                try {
                    $buffer = $this->execute();
                    if ($return === true) {
                        return $buffer;
                    } else {
                        echo $buffer;
                    }
                } catch (Exception $e) {
                    // repack
                    throw new Doozr_Exception($e);
                }
                break;
        }

        return null;
    }
public function fetch ( $ return = false ) { switch ( $ this -> library ) { case 'phptal' : // execute the template try { $ buffer = $ this -> execute ( ) ; if ( $ return === true ) { return $ buffer ; } else { echo $ buffer ; } } catch ( Exception $ e ) { // repack throw new Doozr_Exception ( $ e ) ; } break ; } return null ; }
Fetches and optional returns the processed template
for further processing

This method is intend to fetch the processed (parsed)
template code from current instance and returns it -
if parameter return is set to TRUE.

@param bool $return TRUE to return result, FALSE (default) to echo

@author Benjamin Carl <opensource@clickalicious.de>
@return mixed Data from template if $return was set to TRUE, otherwise NULL
@access public
@throws Doozr_Exception
Fetches and optional returns the processed template for further processing