maintenance/installExtension.php File Reference

Copyright (C) 2006 Daniel Kinzler, brightbyte.de. More...

Go to the source code of this file.

Classes

class  InstallerRepository
class  LocalInstallerRepository
class  WebInstallerRepository
class  SVNInstallerRepository
class  InstallerResource
class  LocalInstallerResource
class  WebInstallerResource
class  SVNInstallerResource
class  ExtensionInstaller

Enumerations

enum  EXTINST_NOPATCH
enum  EXTINST_WRITEPATCH
enum  EXTINST_HOTPATCH

Variables

 $optionsWithArgs = array( 'target', 'repository', 'repos' )
 $tgt = isset ( $options['target'] ) ? $options['target'] : $IP
 $repos = @$options['repository']
if(!isset($args[0])&&!@$options['list']) $repository = InstallerRepository::makeRepository( $repos )
if(isset($options['list'])) $name = $args[0]
 $src = isset( $args[1] ) ? $args[1] : $repository->getResource( $name )
 $mode = EXTINST_WRITEPATCH
if(isset($options['nopatch'])||@$wgExtensionInstallerNoPatch)
else if(isset($options['hotpatch'])||@$wgExtensionInstallerHotPatch)
if(!file_exists("$tgt/LocalSettings.php"))
if($mode==EXTINST_HOTPATCH
&&!is_writable("$tgt/LocalSettings.php"))
if(!file_exists("$tgt/extensions"))
if(!is_writable("$tgt/extensions")) 
$installer = new ExtensionInstaller( $name, $src, $tgt )
print n
 $ok = $installer->fetchExtension()


Detailed Description

Copyright (C) 2006 Daniel Kinzler, brightbyte.de.

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.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Definition in file installExtension.php.


Enumeration Type Documentation

Definition at line 30 of file installExtension.php.

Definition at line 28 of file installExtension.php.

Definition at line 29 of file installExtension.php.


Variable Documentation

if (isset($options['nopatch'])||@$wgExtensionInstallerNoPatch) else if (isset($options['hotpatch'])||@$wgExtensionInstallerHotPatch) if (!file_exists("$tgt/LocalSettings.php")) if ($mode==EXTINST_HOTPATCH &&!is_writable("$tgt/LocalSettings.php")) if (!file_exists("$tgt/extensions")) if (!is_writable("$tgt/extensions")) $installer = new ExtensionInstaller( $name, $src, $tgt )

Definition at line 665 of file installExtension.php.

if (isset($options['list'])) $name = $args[0]

Definition at line 639 of file installExtension.php.

$ok = $installer->fetchExtension()

Definition at line 676 of file installExtension.php.

$optionsWithArgs = array( 'target', 'repository', 'repos' )

Definition at line 24 of file installExtension.php.

$repos = @$options['repository']

Definition at line 602 of file installExtension.php.

if (!isset($args[0])&&!@$options['list']) $repository = InstallerRepository::makeRepository( $repos )

Definition at line 632 of file installExtension.php.

$src = isset( $args[1] ) ? $args[1] : $repository->getResource( $name )

$tgt = isset ( $options['target'] ) ? $options['target'] : $IP

Definition at line 600 of file installExtension.php.

Referenced by ExtensionInstaller::copyDir().

Definition at line 669 of file installExtension.php.


Generated on Sat Sep 5 02:08:27 2009 for MediaWiki by  doxygen 1.5.9