���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/vendor/wikimedia/shellbox/src/Command/OutputFileToFile.php
���ѧ٧ѧ�
<?php namespace Shellbox\Command; use Shellbox\FileUtils; use Shellbox\Multipart\MultipartReader; /** * Encapsulation of an output file that is copied to a local file */ class OutputFileToFile extends OutputFile { /** @var string */ private $path; /** * @param string $path */ public function __construct( $path ) { $this->path = $path; } public function copyFromFile( $sourcePath ) { FileUtils::copy( $sourcePath, $this->path ); $this->received = true; } public function getContents() { return FileUtils::getContents( $this->path ); } public function readFromMultipart( MultipartReader $multipartReader ) { $multipartReader->copyPartToStream( FileUtils::openOutputFileStream( $this->path ) ); $this->received = true; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.4 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�