@@ 51-53 (lines=3) @@ | ||
48 | ||
49 | public function setRowspan($rowspan) { |
|
50 | $to=min($this->_container->count(), $this->_row + $rowspan - 1); |
|
51 | for($i=$to; $i > $this->_row; $i--) { |
|
52 | $this->_container->delete($i, $this->_col); |
|
53 | } |
|
54 | $this->setProperty("rowspan", $rowspan); |
|
55 | return $this->_container; |
|
56 | } |
|
@@ 76-78 (lines=3) @@ | ||
73 | ||
74 | public function setColspan($colspan) { |
|
75 | $to=min($this->_container->getRow($this->_row)->count(), $this->_col + $colspan - 1); |
|
76 | for($i=$to; $i > $this->_col; $i--) { |
|
77 | $this->_container->delete($this->_row, $this->_col + 1); |
|
78 | } |
|
79 | $this->setProperty("colspan", $colspan); |
|
80 | return $this->_container; |
|
81 | } |