]>
src.bluestatic.org Git - isso.git/blob - PrinterRootElement.php
2 /*=====================================================================*
3 || ###################################################################
4 || # Blue Static ISSO Framework
5 || # Copyright ©2002-[#]year[#] Blue Static
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
23 * Printer Root Element (PrinterRootElement.php)
28 require_once('ISSO/PrinterElement.php');
31 * Printer Root Element
33 * This is a root element class. That means that elements can be printed
34 * directly into this and this can stand alone as a page. However, that
35 * does not mean that all root elements produce valid XHTML.
38 * @copyright Copyright (c)2002 - [#]year[#], Blue Static
43 abstract class BSPrinterRootElement
extends BSPrinterElement
49 protected $children = array();
52 * Returns all of the children painted in the right order
54 protected abstract function _paintChildren();
56 // ###################################################################
58 * Adds a child node to the element
60 * @param BSPrinterElement A child element
62 public function addChild(BSPrinterElement
$child)
64 $this->children
[] = $child;
68 /*=====================================================================*
69 || ###################################################################
72 || ###################################################################
73 \*=====================================================================*/