| @@ 376-385 (lines=10) @@ | ||
| 373 | return $this; |
|
| 374 | } |
|
| 375 | ||
| 376 | public function hideColumn($colIndex){ |
|
| 377 | if($this->hasPart("thead")){ |
|
| 378 | $this->getHeader()->hideColumn($colIndex); |
|
| 379 | } |
|
| 380 | $this->getBody()->hideColumn($colIndex); |
|
| 381 | if($this->hasPart("tfoot")){ |
|
| 382 | $this->getFooter()->hideColumn($colIndex); |
|
| 383 | } |
|
| 384 | return $this; |
|
| 385 | } |
|
| 386 | ||
| 387 | public function setColWidth($colIndex,$width){ |
|
| 388 | if($this->hasPart("thead")){ |
|
| @@ 387-395 (lines=9) @@ | ||
| 384 | return $this; |
|
| 385 | } |
|
| 386 | ||
| 387 | public function setColWidth($colIndex,$width){ |
|
| 388 | if($this->hasPart("thead")){ |
|
| 389 | $this->getHeader()->getCell(0, $colIndex)->setWidth($width); |
|
| 390 | }else{ |
|
| 391 | if($this->getBody()->count()>0) |
|
| 392 | $this->getBody()->getCell(0, $colIndex)->setWidth($width); |
|
| 393 | } |
|
| 394 | return $this; |
|
| 395 | } |
|
| 396 | } |
|