| @@ 716-727 (lines=12) @@ | ||
| 713 | * |
|
| 714 | * @return HTMLForm $this for chaining calls (since 1.20) |
|
| 715 | */ |
|
| 716 | function addHeaderText( $msg, $section = null ) { |
|
| 717 | if ( is_null( $section ) ) { |
|
| 718 | $this->mHeader .= $msg; |
|
| 719 | } else { |
|
| 720 | if ( !isset( $this->mSectionHeaders[$section] ) ) { |
|
| 721 | $this->mSectionHeaders[$section] = ''; |
|
| 722 | } |
|
| 723 | $this->mSectionHeaders[$section] .= $msg; |
|
| 724 | } |
|
| 725 | ||
| 726 | return $this; |
|
| 727 | } |
|
| 728 | ||
| 729 | /** |
|
| 730 | * Set header text, inside the form. |
|
| @@ 771-782 (lines=12) @@ | ||
| 768 | * |
|
| 769 | * @return HTMLForm $this for chaining calls (since 1.20) |
|
| 770 | */ |
|
| 771 | function addFooterText( $msg, $section = null ) { |
|
| 772 | if ( is_null( $section ) ) { |
|
| 773 | $this->mFooter .= $msg; |
|
| 774 | } else { |
|
| 775 | if ( !isset( $this->mSectionFooters[$section] ) ) { |
|
| 776 | $this->mSectionFooters[$section] = ''; |
|
| 777 | } |
|
| 778 | $this->mSectionFooters[$section] .= $msg; |
|
| 779 | } |
|
| 780 | ||
| 781 | return $this; |
|
| 782 | } |
|
| 783 | ||
| 784 | /** |
|
| 785 | * Set footer text, inside the form. |
|