r69041 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69040‎ | r69041 | r69042 >
Date:00:29, 5 July 2010
Author:demon
Status:resolved (Comments)
Tags:
Comment:
Make visibilities actually mean it
Modified paths:
  • /trunk/phase3/includes/installer/Installer.php (modified) (history)
  • /trunk/phase3/includes/installer/WebInstaller.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/installer/WebInstaller.php
@@ -271,9 +271,8 @@
272272
273273 /**
274274 * Clean up from execute()
275 - * @private.
276275 */
277 - function finish() {
 276+ private function finish() {
278277 $this->output->output();
279278 $this->session['happyPages'] = $this->happyPages;
280279 $this->session['skippedPages'] = $this->skippedPages;
Index: trunk/phase3/includes/installer/Installer.php
@@ -11,9 +11,8 @@
1212 * MediaWiki configuration globals that will eventually be passed through
1313 * to LocalSettings.php. The names only are given here, the defaults
1414 * typically come from DefaultSettings.php.
15 - * @protected
1615 */
17 - var $defaultVarNames = array(
 16+ protected $defaultVarNames = array(
1817 'wgSitename',
1918 'wgPasswordSender',
2019 'wgLanguageCode',
@@ -44,9 +43,8 @@
4544 * Variables that are stored alongside globals, and are used for any
4645 * configuration of the installation process aside from the MediaWiki
4746 * configuration. Map of names to defaults.
48 - * @protected
4947 */
50 - var $internalDefaults = array(
 48+ protected $internalDefaults = array(
5149 '_UserLang' => 'en',
5250 '_Environment' => false,
5351 '_CompiledDBs' => array(),
@@ -78,9 +76,8 @@
7977 *
8078 * To add a new type, create a <type>Installer class and a Database<type>
8179 * class, and add a config-type-<type> message to MessagesEn.php.
82 - * @private
8380 */
84 - var $dbTypes = array(
 81+ private $dbTypes = array(
8582 'mysql',
8683 'postgres',
8784 'sqlite',
@@ -94,17 +91,15 @@
9592
9693 /**
9794 * Cached DB installer instances, access using getDBInstaller()
98 - * @private
9995 */
100 - var $dbInstallers = array();
 96+ private $dbInstallers = array();
10197
10298 /**
10399 * A list of environment check methods called by doEnvironmentChecks().
104100 * These may output warnings using showMessage(), and/or abort the
105101 * installation process by returning false.
106 - * @protected
107102 */
108 - var $envChecks = array(
 103+ protected $envChecks = array(
109104 'envLatestVersion',
110105 'envCheckDB',
111106 'envCheckRegisterGlobals',
@@ -126,7 +121,10 @@
127122 'envCheckUploadsDirectory',
128123 );
129124
130 - var $installSteps = array(
 125+ /**
 126+ * Steps for installation.
 127+ */
 128+ protected $installSteps = array(
131129 'database',
132130 'tables',
133131 'interwiki',
@@ -137,9 +135,8 @@
138136
139137 /**
140138 * Known object cache types and the functions used to test for their existence
141 - * @protected
142139 */
143 - var $objectCaches = array(
 140+ protected $objectCaches = array(
144141 'xcache' => 'xcache_get',
145142 'apc' => 'apc_fetch',
146143 'eaccel' => 'eaccelerator_get',
@@ -207,9 +204,8 @@
208205 );
209206 /**
210207 * Cached Title and ParserOptions used by parse()
211 - * @private
212208 */
213 - var $parserTitle, $parserOptions;
 209+ private $parserTitle, $parserOptions;
214210
215211 /**
216212 * Constructor, always call this from child classes

Comments

#Comment by Hashar (talk | contribs)   22:54, 6 November 2010

Got a followup : r69096

Status & tagging log