1: <?php
2: /**
3: * This file contains the cHTMLTime 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: * cHTMLTime class represents a date/time.
20: *
21: * @package Core
22: * @subpackage GUI_HTML
23: */
24: class cHTMLTime extends cHTMLContentElement {
25:
26: public function __construct($content = '', $class = '', $id = '', $datetime = '') {
27: parent::__construct($content, $class, $id);
28: $this->_tag = 'time';
29: $this->setDatetime($datetime);
30: }
31:
32: /**
33: * Sets the datetime attribute of this element.
34: *
35: * @param string $datetime
36: */
37: public function setDatetime($datetime) {
38: $this->setAttribute('datetime', $datetime);
39: }
40:
41: }
42: