* @copyright (c) 2015, conlite.org * @license http://www.gnu.de/documents/gpl.en.html GPL v3 (english version) * @license http://www.gnu.de/documents/gpl.de.html GPL v3 (deutsche Version) * @link http://www.conlite.org ConLite.org */ // security check defined('CON_FRAMEWORK') or die('Illegal call'); /** * Creates a listelement to use with cHTMLList * * @author Ortwin Pinke * @see cHTMLList */ class cHTML5ListElement extends cHTML { /** * Constructor * * @param boolean $bUnorderd use ul or ol default: TRUE = ul */ public function __construct($mContent = "") { parent::__construct(); if (is_object($mContent) && method_exists($mContent, "render")) { $mContent = $mContent->render(); } $this->setContent($mContent); $this->setContentlessTag(false); $this->_tag = "li"; } public function setContent($content) { $this->_setContent($content); } public function toHTML() { return parent::toHTML(); } }