| @@ 347-367 (lines=21) @@ | ||
| 344 | * |
|
| 345 | * @return bool false if not numbered befor | object if already numbered |
|
| 346 | */ |
|
| 347 | public function checkFootnote($footnote) { |
|
| 348 | $ct = count($this->printedfootnotes); |
|
| 349 | $val = $footnote->getValue(); |
|
| 350 | $i = 0; |
|
| 351 | while ($i < $ct) { |
|
| 352 | if ($this->printedfootnotes[$i]->getValue() == $val) { |
|
| 353 | // If this footnote already exist then set up the numbers for this object |
|
| 354 | $footnote->setNum($i + 1); |
|
| 355 | $footnote->setAddlink($i + 1); |
|
| 356 | ||
| 357 | return $this->printedfootnotes[$i]; |
|
| 358 | } |
|
| 359 | $i++; |
|
| 360 | } |
|
| 361 | // If this Footnote has not been set up yet |
|
| 362 | $footnote->setNum($ct + 1); |
|
| 363 | $footnote->setAddlink($this->AddLink()); |
|
| 364 | $this->printedfootnotes[] = $footnote; |
|
| 365 | ||
| 366 | return false; |
|
| 367 | } |
|
| 368 | ||
| 369 | /** |
|
| 370 | * Used this function instead of AddPage() |
|
| @@ 487-507 (lines=21) @@ | ||
| 484 | * |
|
| 485 | * @return bool false if not numbered before | object if already numbered |
|
| 486 | */ |
|
| 487 | public function checkFootnote($footnote) { |
|
| 488 | $ct = count($this->printedfootnotes); |
|
| 489 | $i = 0; |
|
| 490 | $val = $footnote->getValue(); |
|
| 491 | while ($i < $ct) { |
|
| 492 | if ($this->printedfootnotes[$i]->getValue() == $val) { |
|
| 493 | // If this footnote already exist then set up the numbers for this object |
|
| 494 | $footnote->setNum($i + 1); |
|
| 495 | $footnote->setAddlink($i + 1); |
|
| 496 | ||
| 497 | return $this->printedfootnotes[$i]; |
|
| 498 | } |
|
| 499 | $i++; |
|
| 500 | } |
|
| 501 | // If this Footnote has not been set up yet |
|
| 502 | $footnote->setNum($ct + 1); |
|
| 503 | $footnote->setAddlink($ct + 1); |
|
| 504 | $this->printedfootnotes[] = $footnote; |
|
| 505 | ||
| 506 | return false; |
|
| 507 | } |
|
| 508 | ||
| 509 | /** |
|
| 510 | * Clear the Page Header - ReportHtml |
|