1: <?php
2: /**
3: * This file contains the cHTMLList 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: * cHTMLList class represents a list.
20: *
21: * @package Core
22: * @subpackage GUI_HTML
23: */
24: class cHTMLList extends cHTMLContentElement {
25:
26: /**
27: * Creates an HTML list element.
28: *
29: * @param string $type type of the list - ul or ol
30: * @param string $id the ID of the list element
31: * @param string $class the class of the list element
32: * @param array|string|object $elements the elements of this list
33: * @return void
34: */
35: public function __construct($type = 'ul', $id = '', $class = '', $elements = array()) {
36: parent::__construct($elements, $class, $id);
37: if ($type !== 'ul' && $type !== 'ol') {
38: $type = 'ul';
39: }
40: $this->_tag = $type;
41: }
42:
43: }
44: