���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/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 OutputFile { /** @var string */ private $contents; public function copyFromFile( $sourcePath ) { $this->contents = FileUtils::getContents( $sourcePath ); $this->received = true; } 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->received = true; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.1 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�