| @@ 289-304 (lines=16) @@ | ||
| 286 | * @access public |
|
| 287 | * @throws PEAR_Error |
|
| 288 | */ |
|
| 289 | function setCellAttributes($row, $col, $attributes) |
|
| 290 | { |
|
| 291 | if ( isset($this->_structure[$row][$col]) |
|
| 292 | && $this->_structure[$row][$col] == '__SPANNED__' |
|
| 293 | ) { |
|
| 294 | return; |
|
| 295 | } |
|
| 296 | $attributes = $this->_parseAttributes($attributes); |
|
| 297 | $err = $this->_adjustEnds($row, $col, 'setCellAttributes', $attributes); |
|
| 298 | if (PEAR::isError($err)) { |
|
| 299 | return $err; |
|
| 300 | } |
|
| 301 | $this->_structure[$row][$col]['attr'] = $attributes; |
|
| 302 | // Fix use of rowspan/colspan |
|
| 303 | //$this->_updateSpanGrid($row, $col); |
|
| 304 | } |
|
| 305 | ||
| 306 | /** |
|
| 307 | * Updates the cell attributes passed but leaves other existing attributes |
|
| @@ 315-329 (lines=15) @@ | ||
| 312 | * attributes |
|
| 313 | * @access public |
|
| 314 | */ |
|
| 315 | function updateCellAttributes($row, $col, $attributes) |
|
| 316 | { |
|
| 317 | if ( isset($this->_structure[$row][$col]) |
|
| 318 | && $this->_structure[$row][$col] == '__SPANNED__' |
|
| 319 | ) { |
|
| 320 | return; |
|
| 321 | } |
|
| 322 | $attributes = $this->_parseAttributes($attributes); |
|
| 323 | $err = $this->_adjustEnds($row, $col, 'updateCellAttributes', $attributes); |
|
| 324 | if (PEAR::isError($err)) { |
|
| 325 | return $err; |
|
| 326 | } |
|
| 327 | $this->_updateAttrArray($this->_structure[$row][$col]['attr'], $attributes); |
|
| 328 | //$this->_updateSpanGrid($row, $col); |
|
| 329 | } |
|
| 330 | ||
| 331 | /** |
|
| 332 | * Returns the attributes for a given cell |
|