From 538546eb9b09e4c231c067c234788589a41ca32f Mon Sep 17 00:00:00 2001 From: Jeroen De Dauw Date: Mon, 19 Jul 2010 04:15:38 +0000 Subject: [PATCH] Clarified field and method visibility --- includes/installer/WebInstallerPage.php | 89 ++++++++++++++++--------- 1 file changed, 57 insertions(+), 32 deletions(-) diff --git a/includes/installer/WebInstallerPage.php b/includes/installer/WebInstallerPage.php index 08a12ab5bb..6fa6fd63b6 100644 --- a/includes/installer/WebInstallerPage.php +++ b/includes/installer/WebInstallerPage.php @@ -78,7 +78,8 @@ abstract class WebInstallerPage { } class WebInstaller_Language extends WebInstallerPage { - function execute() { + + public function execute() { global $wgLang; $r = $this->parent->request; $userLang = $r->getVal( 'UserLang' ); @@ -141,9 +142,9 @@ class WebInstaller_Language extends WebInstallerPage { } /** - * Get a for selecting languages. */ - function getLanguageSelector( $name, $label, $selectedCode ) { + public function getLanguageSelector( $name, $label, $selectedCode ) { global $wgDummyLanguageCodes; $s = Xml::openElement( 'select', array( 'id' => $name, 'name' => $name ) ) . "\n"; @@ -157,10 +158,12 @@ class WebInstaller_Language extends WebInstallerPage { $s .= "\n\n"; return $this->parent->label( $label, $name, $s ); } + } class WebInstaller_Welcome extends WebInstallerPage { - function execute() { + + public function execute() { if ( $this->parent->request->wasPosted() ) { if ( $this->getVar( '_Environment' ) ) { return 'continue'; @@ -174,10 +177,12 @@ class WebInstaller_Welcome extends WebInstallerPage { $this->endForm(); } } + } class WebInstaller_DBConnect extends WebInstallerPage { - function execute() { + + public function execute() { $r = $this->parent->request; if ( $r->wasPosted() ) { $status = $this->submit(); @@ -189,7 +194,6 @@ class WebInstaller_DBConnect extends WebInstallerPage { } } - $this->startForm(); $types = "