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