Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/TemplateData/includes/TemplateDataCompressedBlob.php
Ðазад
<?php namespace MediaWiki\Extension\TemplateData; use MediaWiki\Message\Message; /** * Represents the information about a template, * coming from the JSON blob in the <templatedata> tags * on wiki pages. * This implementation stores the information as a compressed gzip blob * in the database. * @license GPL-2.0-or-later */ class TemplateDataCompressedBlob extends TemplateDataBlob { // Size of MySQL 'blob' field; page_props table where the data is stored uses one. private const MAX_LENGTH = 65535; /** * @var string In-object cache for {@see getJSONForDatabase} */ private string $jsonDB; /** * @inheritDoc */ protected function __construct( string $json, string $lang ) { parent::__construct( $json, $lang ); $this->jsonDB = gzencode( $this->json ); $length = strlen( $this->jsonDB ); if ( $length > self::MAX_LENGTH ) { $this->status->fatal( 'templatedata-invalid-length', Message::numParam( $length ), Message::numParam( self::MAX_LENGTH ) ); } } /** * @return string JSON (gzip compressed) */ public function getJSONForDatabase(): string { return $this->jsonDB; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка