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