Index: trunk/phase3/includes/installer/WebInstaller.php |
— | — | @@ -653,6 +653,8 @@ |
654 | 654 | /** |
655 | 655 | * Show a short informational message. |
656 | 656 | * Output looks like a list. |
| 657 | + * |
| 658 | + * @param srting $msg |
657 | 659 | */ |
658 | 660 | public function showMessage( $msg /*, ... */ ) { |
659 | 661 | $args = func_get_args(); |
— | — | @@ -662,6 +664,18 @@ |
663 | 665 | "</div>\n"; |
664 | 666 | $this->output->addHTML( $html ); |
665 | 667 | } |
| 668 | + |
| 669 | + /** |
| 670 | + * @param Status $status |
| 671 | + */ |
| 672 | + public function showStatusMessage( Status $status ) { |
| 673 | + $text = $status->getWikiText(); |
| 674 | + $this->output->addWikiText( |
| 675 | + "<div class=\"config-message\">\n" . |
| 676 | + $text . |
| 677 | + "</div>" |
| 678 | + ); |
| 679 | + } |
666 | 680 | |
667 | 681 | /** |
668 | 682 | * Label a control by wrapping a config-input div around it and putting a |
Index: trunk/phase3/includes/installer/CoreInstaller.php |
— | — | @@ -168,6 +168,14 @@ |
169 | 169 | ); |
170 | 170 | |
171 | 171 | /** |
| 172 | + * TODO: doucment |
| 173 | + * |
| 174 | + * @param Status $status |
| 175 | + */ |
| 176 | + public abstract function showStatusMessage( Status $status ); |
| 177 | + |
| 178 | + |
| 179 | + /** |
172 | 180 | * Constructor, always call this from child classes. |
173 | 181 | */ |
174 | 182 | public function __construct() { |