1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52:
<?php
class HTMLTableRowCell extends AbstractHTMLElement
{
private $value;
private $colspan = 1;
public function __construct($value, $css_class = '', $id = '')
{
if ($value instanceof HTMLElement)
{
$value = $value->display();
}
$this->value = $value;
$this->css_class = $css_class;
$this->id = $id;
}
public function get_value()
{
return $this->value;
}
public function is_multi_column()
{
return $this->colspan > 1;
}
public function get_colspan()
{
return $this->colspan;
}
public function set_colspan($colspan)
{
$this->colspan = $colspan;
}
}
?>