[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/installer/ -> LocalSettingsGenerator.php (summary)

Generator for LocalSettings.php file. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 390 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

LocalSettingsGenerator:: (7 methods):
  __construct()
  setGroupRights()
  escapePhpString()
  getText()
  writeFile()
  buildMemcachedServerList()
  getDefaultText()


Class: LocalSettingsGenerator  - X-Ref

Class for generating LocalSettings.php file.

__construct( Installer $installer )   X-Ref
Constructor.

param: Installer $installer

setGroupRights( $group, $rightsArr )   X-Ref
For $wgGroupPermissions, set a given ['group']['permission'] value.

param: string $group Group name
param: array $rightsArr An array of permissions, in the form of:

escapePhpString( $string )   X-Ref
Returns the escaped version of a string of php code.

param: string $string
return: string

getText()   X-Ref
Return the full text of the generated LocalSettings.php file,
including the extensions and skins.

return: string

writeFile( $fileName )   X-Ref
Write the generated LocalSettings to a file

param: string $fileName Full path to filename to write to

buildMemcachedServerList()   X-Ref

return: string

getDefaultText()   X-Ref

return: string



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1