1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
15:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: 19: 20: 21: 22: 23:
24: class cHTMLCanvas extends cHTMLContentElement {
25:
26: public function __construct($content = '', $class = '', $id = '') {
27: parent::__construct($content, $class, $id);
28: $this->_tag = 'canvas';
29: }
30:
31: public function setHeight($height) {
32: $this->setAttribute('height', $height);
33: }
34:
35: public function setWidth($width) {
36: $this->setAttribute('width', $width);
37: }
38:
39: }
40: