1: <?php
2: /**
3: * This file contains the cHTMLAlignmentTable class.
4: *
5: * @package Core
6: * @subpackage GUI_HTML
7: * @version SVN Revision $Rev:$
8: *
9: * @author Simon Sprankel
10: * @copyright four for business AG <www.4fb.de>
11: * @license http://www.contenido.org/license/LIZENZ.txt
12: * @link http://www.4fb.de
13: * @link http://www.contenido.org
14: */
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: /**
19: * cHTMLAlignmentTable class represents an alignment table.
20: *
21: * @package Core
22: * @subpackage GUI_HTML
23: */
24: class cHTMLAlignmentTable extends cHTMLTable {
25:
26: public function __construct() {
27: parent::__construct();
28:
29: $this->_data = func_get_args();
30: $this->_contentlessTag = false;
31: }
32:
33: public function render() {
34: $tr = new cHTMLTableRow();
35: $td = new cHTMLTableData();
36:
37: $out = '';
38:
39: foreach ($this->_data as $data) {
40: $td->setContent($data);
41: $out .= $td->render();
42: }
43:
44: $tr->setContent($out);
45:
46: $this->setContent($tr);
47:
48: return $this->toHTML();
49: }
50:
51: }
52: