Index: trunk/phase3/includes/installer/WebInstaller.php |
— | — | @@ -2,14 +2,14 @@ |
3 | 3 | |
4 | 4 | class WebInstaller extends Installer { |
5 | 5 | /** WebRequest object */ |
6 | | - var $request; |
| 6 | + public $request; |
7 | 7 | |
8 | 8 | /** Cached session array */ |
9 | | - var $session; |
| 9 | + public $session; |
10 | 10 | |
11 | 11 | /** Captured PHP error text. Temporary. |
12 | 12 | */ |
13 | | - var $phpErrors; |
| 13 | + public $phpErrors; |
14 | 14 | |
15 | 15 | /** |
16 | 16 | * The main sequence of page names. These will be displayed in turn. |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | * * Add a config-page-<name> message |
20 | 20 | * * Add a WebInstaller_<name> class |
21 | 21 | */ |
22 | | - var $pageSequence = array( |
| 22 | + public $pageSequence = array( |
23 | 23 | 'Language', |
24 | 24 | 'Welcome', |
25 | 25 | 'DBConnect', |
— | — | @@ -31,9 +31,9 @@ |
32 | 32 | ); |
33 | 33 | |
34 | 34 | /** |
35 | | - * Out of sequence pages, selectable by the user at any time |
| 35 | + * Out of sequence pages, selectable by the user at any time. |
36 | 36 | */ |
37 | | - var $otherPages = array( |
| 37 | + public $otherPages = array( |
38 | 38 | 'Restart', |
39 | 39 | 'Readme', |
40 | 40 | 'ReleaseNotes', |
— | — | @@ -43,29 +43,29 @@ |
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Array of pages which have declared that they have been submitted, have validated |
47 | | - * their input, and need no further processing |
| 47 | + * their input, and need no further processing. |
48 | 48 | */ |
49 | | - var $happyPages; |
| 49 | + public $happyPages; |
50 | 50 | |
51 | 51 | /** |
52 | 52 | * List of "skipped" pages. These are pages that will automatically continue |
53 | 53 | * to the next page on any GET request. To avoid breaking the "back" button, |
54 | 54 | * they need to be skipped during a back operation. |
55 | 55 | */ |
56 | | - var $skippedPages; |
| 56 | + public $skippedPages; |
57 | 57 | |
58 | 58 | /** |
59 | | - * Flag indicating that session data may have been lost |
| 59 | + * Flag indicating that session data may have been lost. |
60 | 60 | */ |
61 | | - var $showSessionWarning = false; |
| 61 | + public $showSessionWarning = false; |
62 | 62 | |
63 | | - var $helpId = 0; |
64 | | - var $tabIndex = 1; |
| 63 | + public $helpId = 0; |
| 64 | + public $tabIndex = 1; |
65 | 65 | |
66 | | - var $currentPageName; |
| 66 | + public $currentPageName; |
67 | 67 | |
68 | 68 | /** Constructor */ |
69 | | - function __construct( $request ) { |
| 69 | + public function __construct( $request ) { |
70 | 70 | parent::__construct(); |
71 | 71 | $this->output = new WebInstallerOutput( $this ); |
72 | 72 | $this->request = $request; |
— | — | @@ -73,10 +73,12 @@ |
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Main entry point. |
| 77 | + * |
77 | 78 | * @param $session Array: initial session array |
| 79 | + * |
78 | 80 | * @return Array: new session array |
79 | 81 | */ |
80 | | - function execute( $session ) { |
| 82 | + public function execute( $session ) { |
81 | 83 | $this->session = $session; |
82 | 84 | if ( isset( $session['settings'] ) ) { |
83 | 85 | $this->settings = $session['settings'] + $this->settings; |
— | — | @@ -210,7 +212,7 @@ |
211 | 213 | return $this->finish(); |
212 | 214 | } |
213 | 215 | |
214 | | - function getLowestUnhappy() { |
| 216 | + public function getLowestUnhappy() { |
215 | 217 | if ( count( $this->happyPages ) == 0 ) { |
216 | 218 | return 0; |
217 | 219 | } else { |
— | — | @@ -221,7 +223,7 @@ |
222 | 224 | /** |
223 | 225 | * Start the PHP session. This may be called before execute() to start the PHP session. |
224 | 226 | */ |
225 | | - function startSession() { |
| 227 | + public function startSession() { |
226 | 228 | $sessPath = $this->getSessionSavePath(); |
227 | 229 | if( $sessPath != '' ) { |
228 | 230 | if( strval( ini_get( 'open_basedir' ) ) != '' ) { |
— | — | @@ -271,7 +273,7 @@ |
272 | 274 | /** |
273 | 275 | * Show an error message in a box. Parameters are like wfMsg(). |
274 | 276 | */ |
275 | | - function showError( $msg /*...*/ ) { |
| 277 | + public function showError( $msg /*...*/ ) { |
276 | 278 | $args = func_get_args(); |
277 | 279 | array_shift( $args ); |
278 | 280 | $args = array_map( 'htmlspecialchars', $args ); |
— | — | @@ -280,9 +282,9 @@ |
281 | 283 | } |
282 | 284 | |
283 | 285 | /** |
284 | | - * Temporary error handler for session start debugging |
| 286 | + * Temporary error handler for session start debugging. |
285 | 287 | */ |
286 | | - function errorHandler( $errno, $errstr ) { |
| 288 | + public function errorHandler( $errno, $errstr ) { |
287 | 289 | $this->phpErrors[] = $errstr; |
288 | 290 | } |
289 | 291 | |
— | — | @@ -298,9 +300,9 @@ |
299 | 301 | } |
300 | 302 | |
301 | 303 | /** |
302 | | - * Get a URL for submission back to the same script |
| 304 | + * Get a URL for submission back to the same script. |
303 | 305 | */ |
304 | | - function getUrl( $query = array() ) { |
| 306 | + public function getUrl( $query = array() ) { |
305 | 307 | $url = $this->request->getRequestURL(); |
306 | 308 | # Remove existing query |
307 | 309 | $url = preg_replace( '/\?.*$/', '', $url ); |
— | — | @@ -311,26 +313,26 @@ |
312 | 314 | } |
313 | 315 | |
314 | 316 | /** |
315 | | - * Get a WebInstallerPage from the main sequence, by ID |
| 317 | + * Get a WebInstallerPage from the main sequence, by ID. |
316 | 318 | */ |
317 | | - function getPageById( $id ) { |
| 319 | + public function getPageById( $id ) { |
318 | 320 | $pageName = $this->pageSequence[$id]; |
319 | 321 | $pageClass = 'WebInstaller_' . $pageName; |
320 | 322 | return new $pageClass( $this ); |
321 | 323 | } |
322 | 324 | |
323 | 325 | /** |
324 | | - * Get a WebInstallerPage by name |
| 326 | + * Get a WebInstallerPage by name. |
325 | 327 | */ |
326 | | - function getPageByName( $pageName ) { |
| 328 | + public function getPageByName( $pageName ) { |
327 | 329 | $pageClass = 'WebInstaller_' . $pageName; |
328 | 330 | return new $pageClass( $this ); |
329 | 331 | } |
330 | 332 | |
331 | 333 | /** |
332 | | - * Get a session variable |
| 334 | + * Get a session variable. |
333 | 335 | */ |
334 | | - function getSession( $name, $default = null ) { |
| 336 | + public function getSession( $name, $default = null ) { |
335 | 337 | if ( !isset( $this->session[$name] ) ) { |
336 | 338 | return $default; |
337 | 339 | } else { |
— | — | @@ -339,23 +341,23 @@ |
340 | 342 | } |
341 | 343 | |
342 | 344 | /** |
343 | | - * Set a session variable |
| 345 | + * Set a session variable. |
344 | 346 | */ |
345 | | - function setSession( $name, $value ) { |
| 347 | + public function setSession( $name, $value ) { |
346 | 348 | $this->session[$name] = $value; |
347 | 349 | } |
348 | 350 | |
349 | 351 | /** |
350 | | - * Get the next tabindex attribute value |
| 352 | + * Get the next tabindex attribute value. |
351 | 353 | */ |
352 | | - function nextTabIndex() { |
| 354 | + public function nextTabIndex() { |
353 | 355 | return $this->tabIndex++; |
354 | 356 | } |
355 | 357 | |
356 | 358 | /** |
357 | | - * Initializes language-related variables |
| 359 | + * Initializes language-related variables. |
358 | 360 | */ |
359 | | - function setupLanguage() { |
| 361 | + public function setupLanguage() { |
360 | 362 | global $wgLang, $wgContLang, $wgLanguageCode; |
361 | 363 | if ( $this->getSession( 'test' ) === null && !$this->request->wasPosted() ) { |
362 | 364 | $wgLanguageCode = $this->getAcceptLanguage(); |
— | — | @@ -370,9 +372,9 @@ |
371 | 373 | } |
372 | 374 | |
373 | 375 | /** |
374 | | - * Retrieves MediaWiki language from Accept-Language HTTP header |
| 376 | + * Retrieves MediaWiki language from Accept-Language HTTP header. |
375 | 377 | */ |
376 | | - function getAcceptLanguage() { |
| 378 | + public function getAcceptLanguage() { |
377 | 379 | global $wgLanguageCode; |
378 | 380 | |
379 | 381 | $mwLanguages = Language::getLanguageNames(); |
— | — | @@ -396,9 +398,9 @@ |
397 | 399 | } |
398 | 400 | |
399 | 401 | /** |
400 | | - * Called by execute() before page output starts, to show a page list |
| 402 | + * Called by execute() before page output starts, to show a page list. |
401 | 403 | */ |
402 | | - function startPageWrapper( $currentPageName ) { |
| 404 | + public function startPageWrapper( $currentPageName ) { |
403 | 405 | $s = "<div class=\"config-page-wrapper\">\n" . |
404 | 406 | "<div class=\"config-page-list\"><ul>\n"; |
405 | 407 | $lastHappy = -1; |
— | — | @@ -423,9 +425,9 @@ |
424 | 426 | } |
425 | 427 | |
426 | 428 | /** |
427 | | - * Get a list item for the page list |
| 429 | + * Get a list item for the page list. |
428 | 430 | */ |
429 | | - function getPageListItem( $pageName, $enabled, $currentPageName ) { |
| 431 | + public function getPageListItem( $pageName, $enabled, $currentPageName ) { |
430 | 432 | $s = "<li class=\"config-page-list-item\">"; |
431 | 433 | $name = wfMsg( 'config-page-' . strtolower( $pageName ) ); |
432 | 434 | if ( $enabled ) { |
— | — | @@ -461,9 +463,9 @@ |
462 | 464 | } |
463 | 465 | |
464 | 466 | /** |
465 | | - * Output some stuff after a page is finished |
| 467 | + * Output some stuff after a page is finished. |
466 | 468 | */ |
467 | | - function endPageWrapper() { |
| 469 | + public function endPageWrapper() { |
468 | 470 | $this->output->addHTMLNoFlush( |
469 | 471 | "</div>\n" . |
470 | 472 | "<br style=\"clear:both\"/>\n" . |
— | — | @@ -471,31 +473,31 @@ |
472 | 474 | } |
473 | 475 | |
474 | 476 | /** |
475 | | - * Get HTML for an error box with an icon |
| 477 | + * Get HTML for an error box with an icon. |
476 | 478 | * |
477 | 479 | * @param $text String: wikitext, get this with wfMsgNoTrans() |
478 | 480 | */ |
479 | | - function getErrorBox( $text ) { |
| 481 | + public function getErrorBox( $text ) { |
480 | 482 | return $this->getInfoBox( $text, 'critical-32.png', 'config-error-box' ); |
481 | 483 | } |
482 | 484 | |
483 | 485 | /** |
484 | | - * Get HTML for a warning box with an icon |
| 486 | + * Get HTML for a warning box with an icon. |
485 | 487 | * |
486 | 488 | * @param $text String: wikitext, get this with wfMsgNoTrans() |
487 | 489 | */ |
488 | | - function getWarningBox( $text ) { |
| 490 | + public function getWarningBox( $text ) { |
489 | 491 | return $this->getInfoBox( $text, 'warning-32.png', 'config-warning-box' ); |
490 | 492 | } |
491 | 493 | |
492 | 494 | /** |
493 | | - * Get HTML for an info box with an icon |
| 495 | + * Get HTML for an info box with an icon. |
494 | 496 | * |
495 | 497 | * @param $text String: wikitext, get this with wfMsgNoTrans() |
496 | 498 | * @param $icon String: icon name, file in skins/common/images |
497 | 499 | * @param $class String: additional class name to add to the wrapper div |
498 | 500 | */ |
499 | | - function getInfoBox( $text, $icon = 'info-32.png', $class = false ) { |
| 501 | + public function getInfoBox( $text, $icon = 'info-32.png', $class = false ) { |
500 | 502 | $s = |
501 | 503 | "<div class=\"config-info $class\">\n" . |
502 | 504 | "<div class=\"config-info-left\">\n" . |
— | — | @@ -518,7 +520,7 @@ |
519 | 521 | * Get small text indented help for a preceding form field. |
520 | 522 | * Parameters like wfMsg(). |
521 | 523 | */ |
522 | | - function getHelpBox( $msg /*, ... */ ) { |
| 524 | + public function getHelpBox( $msg /*, ... */ ) { |
523 | 525 | $args = func_get_args(); |
524 | 526 | array_shift( $args ); |
525 | 527 | $args = array_map( 'htmlspecialchars', $args ); |
— | — | @@ -543,19 +545,19 @@ |
544 | 546 | } |
545 | 547 | |
546 | 548 | /** |
547 | | - * Output a help box |
| 549 | + * Output a help box. |
548 | 550 | */ |
549 | | - function showHelpBox( $msg /*, ... */ ) { |
| 551 | + public function showHelpBox( $msg /*, ... */ ) { |
550 | 552 | $args = func_get_args(); |
551 | 553 | $html = call_user_func_array( array( $this, 'getHelpBox' ), $args ); |
552 | 554 | $this->output->addHTML( $html ); |
553 | 555 | } |
554 | 556 | |
555 | 557 | /** |
556 | | - * Show a short informational message |
| 558 | + * Show a short informational message. |
557 | 559 | * Output looks like a list. |
558 | 560 | */ |
559 | | - function showMessage( $msg /*, ... */ ) { |
| 561 | + public function showMessage( $msg /*, ... */ ) { |
560 | 562 | $args = func_get_args(); |
561 | 563 | array_shift( $args ); |
562 | 564 | $html = '<div class="config-message">' . |
— | — | @@ -566,9 +568,9 @@ |
567 | 569 | |
568 | 570 | /** |
569 | 571 | * Label a control by wrapping a config-input div around it and putting a |
570 | | - * label before it |
| 572 | + * label before it. |
571 | 573 | */ |
572 | | - function label( $msg, $forId, $contents ) { |
| 574 | + public function label( $msg, $forId, $contents ) { |
573 | 575 | if ( strval( $msg ) == '' ) { |
574 | 576 | $labelText = ' '; |
575 | 577 | } else { |
— | — | @@ -588,7 +590,7 @@ |
589 | 591 | } |
590 | 592 | |
591 | 593 | /** |
592 | | - * Get a labelled text box to configure a variable |
| 594 | + * Get a labelled text box to configure a variable. |
593 | 595 | * |
594 | 596 | * @param $params Array |
595 | 597 | * Parameters are: |
— | — | @@ -598,7 +600,7 @@ |
599 | 601 | * controlName: The name for the input element (optional) |
600 | 602 | * value: The current value of the variable (optional) |
601 | 603 | */ |
602 | | - function getTextBox( $params ) { |
| 604 | + public function getTextBox( $params ) { |
603 | 605 | if ( !isset( $params['controlName'] ) ) { |
604 | 606 | $params['controlName'] = 'config_' . $params['var']; |
605 | 607 | } |
— | — | @@ -626,7 +628,7 @@ |
627 | 629 | } |
628 | 630 | |
629 | 631 | /** |
630 | | - * Get a labelled password box to configure a variable |
| 632 | + * Get a labelled password box to configure a variable. |
631 | 633 | * |
632 | 634 | * Implements password hiding |
633 | 635 | * @param $params Array |
— | — | @@ -637,7 +639,7 @@ |
638 | 640 | * controlName: The name for the input element (optional) |
639 | 641 | * value: The current value of the variable (optional) |
640 | 642 | */ |
641 | | - function getPasswordBox( $params ) { |
| 643 | + public function getPasswordBox( $params ) { |
642 | 644 | if ( !isset( $params['value'] ) ) { |
643 | 645 | $params['value'] = $this->getVar( $params['var'] ); |
644 | 646 | } |
— | — | @@ -650,7 +652,7 @@ |
651 | 653 | } |
652 | 654 | |
653 | 655 | /** |
654 | | - * Get a labelled checkbox to configure a boolean variable |
| 656 | + * Get a labelled checkbox to configure a boolean variable. |
655 | 657 | * |
656 | 658 | * @param $params Array |
657 | 659 | * Parameters are: |
— | — | @@ -660,7 +662,7 @@ |
661 | 663 | * controlName: The name for the input element (optional) |
662 | 664 | * value: The current value of the variable (optional) |
663 | 665 | */ |
664 | | - function getCheckBox( $params ) { |
| 666 | + public function getCheckBox( $params ) { |
665 | 667 | if ( !isset( $params['controlName'] ) ) { |
666 | 668 | $params['controlName'] = 'config_' . $params['var']; |
667 | 669 | } |
— | — | @@ -693,7 +695,7 @@ |
694 | 696 | } |
695 | 697 | |
696 | 698 | /** |
697 | | - * Get a set of labelled radio buttons |
| 699 | + * Get a set of labelled radio buttons. |
698 | 700 | * |
699 | 701 | * @param $params Array |
700 | 702 | * Parameters are: |
— | — | @@ -706,7 +708,7 @@ |
707 | 709 | * controlName: The name for the input element (optional) |
708 | 710 | * value: The current value of the variable (optional) |
709 | 711 | */ |
710 | | - function getRadioSet( $params ) { |
| 712 | + public function getRadioSet( $params ) { |
711 | 713 | if ( !isset( $params['controlName'] ) ) { |
712 | 714 | $params['controlName'] = 'config_' . $params['var']; |
713 | 715 | } |
— | — | @@ -748,9 +750,9 @@ |
749 | 751 | } |
750 | 752 | |
751 | 753 | /** |
752 | | - * Output an error or warning box using a Status object |
| 754 | + * Output an error or warning box using a Status object. |
753 | 755 | */ |
754 | | - function showStatusBox( $status ) { |
| 756 | + public function showStatusBox( $status ) { |
755 | 757 | if( !$status->isGood() ) { |
756 | 758 | $text = $status->getWikiText(); |
757 | 759 | if( $status->isOk() ) { |
— | — | @@ -762,7 +764,7 @@ |
763 | 765 | } |
764 | 766 | } |
765 | 767 | |
766 | | - function showStatusMessage( $status ) { |
| 768 | + public function showStatusMessage( $status ) { |
767 | 769 | $text = $status->getWikiText(); |
768 | 770 | $this->output->addWikiText( |
769 | 771 | "<div class=\"config-message\">\n" . |
— | — | @@ -779,7 +781,7 @@ |
780 | 782 | * @param $varNames Array |
781 | 783 | * @param $prefix String: the prefix added to variables to obtain form names |
782 | 784 | */ |
783 | | - function setVarsFromRequest( $varNames, $prefix = 'config_' ) { |
| 785 | + public function setVarsFromRequest( $varNames, $prefix = 'config_' ) { |
784 | 786 | $newValues = array(); |
785 | 787 | foreach ( $varNames as $name ) { |
786 | 788 | $value = trim( $this->request->getVal( $prefix . $name ) ); |
— | — | @@ -799,25 +801,25 @@ |
800 | 802 | } |
801 | 803 | |
802 | 804 | /** |
803 | | - * Get the starting tags of a fieldset |
| 805 | + * Get the starting tags of a fieldset. |
804 | 806 | * |
805 | 807 | * @param $legend String: message name |
806 | 808 | */ |
807 | | - function getFieldsetStart( $legend ) { |
| 809 | + public function getFieldsetStart( $legend ) { |
808 | 810 | return "\n<fieldset><legend>" . wfMsgHtml( $legend ) . "</legend>\n"; |
809 | 811 | } |
810 | 812 | |
811 | 813 | /** |
812 | | - * Get the end tag of a fieldset |
| 814 | + * Get the end tag of a fieldset. |
813 | 815 | */ |
814 | | - function getFieldsetEnd() { |
| 816 | + public function getFieldsetEnd() { |
815 | 817 | return "</fieldset>\n"; |
816 | 818 | } |
817 | 819 | |
818 | 820 | /** |
819 | 821 | * Helper for Installer::docLink() |
820 | 822 | */ |
821 | | - function getDocUrl( $page ) { |
| 823 | + public function getDocUrl( $page ) { |
822 | 824 | $url = "{$_SERVER['PHP_SELF']}?page=" . urlencode( $page ); |
823 | 825 | if ( in_array( $this->currentPageName, $this->pageSequence ) ) { |
824 | 826 | $url .= '&lastPage=' . urlencode( $this->currentPageName ); |
— | — | @@ -827,15 +829,15 @@ |
828 | 830 | } |
829 | 831 | |
830 | 832 | abstract class WebInstallerPage { |
831 | | - function __construct( $parent ) { |
| 833 | + public function __construct( $parent ) { |
832 | 834 | $this->parent = $parent; |
833 | 835 | } |
834 | 836 | |
835 | | - function addHTML( $html ) { |
| 837 | + public function addHTML( $html ) { |
836 | 838 | $this->parent->output->addHTML( $html ); |
837 | 839 | } |
838 | 840 | |
839 | | - function startForm() { |
| 841 | + public function startForm() { |
840 | 842 | $this->addHTML( |
841 | 843 | "<div class=\"config-section\">\n" . |
842 | 844 | Xml::openElement( |
— | — | @@ -848,7 +850,7 @@ |
849 | 851 | ); |
850 | 852 | } |
851 | 853 | |
852 | | - function endForm( $continue = 'continue' ) { |
| 854 | + public function endForm( $continue = 'continue' ) { |
853 | 855 | $this->parent->output->outputWarnings(); |
854 | 856 | $s = "<div class=\"config-submit\">\n"; |
855 | 857 | $id = $this->getId(); |
— | — | @@ -878,21 +880,21 @@ |
879 | 881 | $this->addHTML( $s ); |
880 | 882 | } |
881 | 883 | |
882 | | - function getName() { |
| 884 | + public function getName() { |
883 | 885 | return str_replace( 'WebInstaller_', '', get_class( $this ) ); |
884 | 886 | } |
885 | 887 | |
886 | | - function getId() { |
| 888 | + public function getId() { |
887 | 889 | return array_search( $this->getName(), $this->parent->pageSequence ); |
888 | 890 | } |
889 | 891 | |
890 | | - abstract function execute(); |
| 892 | + public abstract function execute(); |
891 | 893 | |
892 | | - function getVar( $var ) { |
| 894 | + public function getVar( $var ) { |
893 | 895 | return $this->parent->getVar( $var ); |
894 | 896 | } |
895 | 897 | |
896 | | - function setVar( $name, $value ) { |
| 898 | + public function setVar( $name, $value ) { |
897 | 899 | $this->parent->setVar( $name, $value ); |
898 | 900 | } |
899 | 901 | } |
— | — | @@ -1755,4 +1757,4 @@ |
1756 | 1758 | private static function replaceLeadingSpaces( $matches ) { |
1757 | 1759 | return "\n" . str_repeat( ' ', strlen( $matches[0] ) ); |
1758 | 1760 | } |
1759 | | -} |
| 1761 | +} |
\ No newline at end of file |
Index: trunk/phase3/includes/installer/CliInstaller.php |
— | — | @@ -24,9 +24,8 @@ |
25 | 25 | 'dbpath' => 'wgSQLiteDataDir', |
26 | 26 | ); |
27 | 27 | |
28 | | - |
29 | 28 | /** Constructor */ |
30 | | - function __construct( $siteName, $admin = null, $option = array()) { |
| 29 | + function __construct( $siteName, $admin = null, $option = array() ) { |
31 | 30 | parent::__construct(); |
32 | 31 | |
33 | 32 | foreach ( $this->optionMap as $opt => $global ) { |
— | — | @@ -64,7 +63,7 @@ |
65 | 64 | /** |
66 | 65 | * Main entry point. |
67 | 66 | */ |
68 | | - public function execute( ) { |
| 67 | + public function execute() { |
69 | 68 | $this->performInstallation( |
70 | 69 | array( $this, 'startStage'), |
71 | 70 | array( $this, 'endStage' ) |
— | — | @@ -91,13 +90,13 @@ |
92 | 91 | $this->showMessage( wfMsg( 'config-install-step-done' ) ."\n"); |
93 | 92 | } |
94 | 93 | |
95 | | - function showMessage( $msg /*, ... */ ) { |
| 94 | + public function showMessage( $msg /*, ... */ ) { |
96 | 95 | echo html_entity_decode( strip_tags( $msg ), ENT_QUOTES ); |
97 | 96 | flush(); |
98 | 97 | } |
99 | 98 | |
100 | | - function showStatusMessage( $status ) { |
| 99 | + public function showStatusMessage( $status ) { |
101 | 100 | $this->showMessage( $status->getWikiText() ); |
102 | 101 | } |
103 | 102 | |
104 | | -} |
| 103 | +} |
\ No newline at end of file |