Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/vendor/wikimedia/shellbox/src/Command/OutputFileToString.php
Ðазад
<?php namespace Shellbox\Command; use Shellbox\FileUtils; use Shellbox\Multipart\MultipartReader; use Shellbox\ShellboxError; /** * Encapsulation of an output file that is read into a string */ class OutputFileToString extends OutputFileWithContents { /** @var string */ private $contents; public function copyFromFile( $sourcePath ) { $this->contents = FileUtils::getContents( $sourcePath ); $this->setReceived(); } public function getContents() { if ( $this->contents === null ) { throw new ShellboxError( __METHOD__ . ' was called too early or ' . 'on a non-existent file' ); } return $this->contents; } public function readFromMultipart( MultipartReader $multipartReader ) { $this->contents = $multipartReader->readPartAsString(); $this->setReceived(); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка