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 ) |
n | |
$ok = $installer->fetchExtension() |
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.
enum EXTINST_HOTPATCH |
Definition at line 30 of file installExtension.php.
enum EXTINST_NOPATCH |
Definition at line 28 of file installExtension.php.
enum EXTINST_WRITEPATCH |
Definition at line 29 of file installExtension.php.
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.
$mode = EXTINST_WRITEPATCH |
Definition at line 645 of file installExtension.php.
Referenced by ExternalEdit::__construct(), LoadBalancer::allowLagged(), WatchlistEditor::buildTools(), WatchlistEditor::execute(), ApiQueryDeletedrevs::execute(), Parser::extractSections(), WatchlistEditor::getMode(), DatabaseIbm_db2::makeList(), Database::makeList(), DatabaseIbm_db2::makeListSmart(), DatabaseMssql::makeListWithoutNulls(), ExtensionInstaller::patchLocalSettings(), MediaWiki::performAction(), SevenZipStream::stream_open(), RawPage::view(), wfMkdirParents(), and wfSpecialWatchlist().
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 ) |
Definition at line 641 of file installExtension.php.
Referenced by BitmapHandler::doTransform(), WikiRevision::downloadSource(), WikiRevision::setSrc(), and MediaWiki_I18N::translate().
$tgt = isset ( $options['target'] ) ? $options['target'] : $IP |
Definition at line 669 of file installExtension.php.