dftk
[ class tree: dftk ] [ index: dftk ] [ all elements ]

Source for file dftk_output_stdout.php

Documentation is available at dftk_output_stdout.php


1 <?php
2 /*
3
4 Copyright (c)2003 DuckCorp(tm) and RtpNet(tm)
5
6
7
8 This file is part of DFTK.
9
10 DFTK is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
14
15 DFTK is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with DFTK; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24
25
26 /**
27 * @package dftk
28 * @author Duck <duck@DuckCorp.org>
29 * @author Rtp <rtp@rtp-net.org>
30 * @copyright Copyright (c)2003 DuckCorp(tm) and RtpNet(tm)
31 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License
32 * @version 0.4.0
33 */
34
35
36 /**
37 * DFTK Stdout Output Class
38 *
39 * @package dftk
40 * @subpackage dftk-output
41 * @author Duck <duck@DuckCorp.org>
42 *
43 * @access public
44 */
45 class DftkOutputStdout extends DftkOutput
46 {
47 /**
48 * Constructor
49 *
50 * @access public
51 * @param object DftkDaTraceManager &$tracemgr Language Manager
52 */
53 function DftkOutputStdout(&$tracemgr)
54 {
55 DftkOutput::DftkOutput(&$tracemgr);
56
57 register_shutdown_function(array(&$this, "_DftkOutputStdout"));
58 }
59
60 /**
61 * Destructor
62 *
63 * @access private
64 */
65 function _DftkOutputStdout()
66 {
67 }
68
69 /**
70 * Flush output
71 *
72 * @access public
73 * @return object DftkDaTrace $r Trace
74 */
75 function &flush_output()
76 {
77 $r =& $this->_tracemgr->create_trace();
78
79 print($this->_header.$this->_content.$this->_footer);
80
81 $r2 =& DftkOutput::flush_output();
82 $r->merge_traces($r2);
83
84 return $r;
85 }
86 }
87
88 ?>

Documentation generated on Sat, 6 Dec 2003 13:47:43 +0100 by phpDocumentor 1.2.3