Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/FileImporter/src/Html/ImportIdentityFormSnippet.php
Ðазад
<?php namespace FileImporter\Html; use MediaWiki\Html\Html; /** * Collection of input elements that are used to persist the request from page load to page load. * * @license GPL-2.0-or-later * @author Addshore */ class ImportIdentityFormSnippet { private array $identityParts; private const IDENTITY_KEYS = [ 'clientUrl', 'intendedFileName', 'intendedRevisionSummary', 'intendedWikitext', 'actionStats', 'validationWarnings', 'importDetailsHash', 'automateSourceWikiCleanup', 'automateSourceWikiDelete' ]; /** * @param array $identityParts Keys: * - clientUrl, as initial input by the user * - intendedFileName, either generated from the client URL or passed by the user * - importDetailsHash, generated from the first import request, to ensure we know what * we are importing */ public function __construct( array $identityParts ) { $this->identityParts = $identityParts; } public function getHtml(): string { $html = ''; foreach ( self::IDENTITY_KEYS as $identityKey ) { if ( array_key_exists( $identityKey, $this->identityParts ) ) { $html .= Html::element( 'input', [ 'type' => 'hidden', 'name' => $identityKey, 'value' => $this->identityParts[$identityKey], ] ); } } return $html; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка