Files
php-doc-ru/reference/curl/curlstringfile.xml
2023-08-31 22:42:11 +03:00

127 lines
3.9 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
<phpdoc:classref xml:id="class.curlstringfile" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Класс CURLStringFile</title>
<titleabbrev>CURLStringFile</titleabbrev>
<partintro>
<!-- {{{ CURLStringFile intro -->
<section xml:id="curlstringfile.intro">
&reftitle.intro;
<para>
Класс <classname>CURLStringFile</classname> позволяет загружать файл прямо из переменной.
Он похож на <classname>CURLFile</classname>, но работает с содержимым файла, а не с его именем.
Этот класс или <classname>CURLFile</classname> следует использовать
для загрузки содержимого файла с помощью <constant>CURLOPT_POSTFIELDS</constant>.
</para>
</section>
<!-- }}} -->
<section xml:id="curlstringfile.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<classname>CURLStringFile</classname>
</ooclass>
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
<fieldsynopsis>
<modifier>public</modifier>
<type>string</type>
<varname linkend="curlstringfile.props.data">data</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<type>string</type>
<varname linkend="curlstringfile.props.postname">postname</varname>
</fieldsynopsis>
<fieldsynopsis>
<modifier>public</modifier>
<type>string</type>
<varname linkend="curlstringfile.props.mime">mime</varname>
</fieldsynopsis>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.curlstringfile')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='CURLStringFile'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->
</section>
<!-- {{{ CURLStringFile properties -->
<section xml:id="curlstringfile.props">
&reftitle.properties;
<variablelist>
<varlistentry xml:id="curlstringfile.props.data">
<term><varname>data</varname></term>
<listitem>
<para>
Содержимое для загрузки.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="curlstringfile.props.postname">
<term><varname>postname</varname></term>
<listitem>
<para>
Имя файла, который будет использоваться в загружаемых данных.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="curlstringfile.props.mime">
<term><varname>mime</varname></term>
<listitem>
<para>
MIME-тип файла (по умолчанию <literal>application/octet-stream</literal>).
</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->
<section xml:id="curlstringfile.seealso">
&reftitle.seealso;
<para>
<simplelist>
<member>
<function>curl_setopt</function>
</member>
<member><classname>CURLFile</classname></member>
</simplelist>
</para>
</section>
</partintro>
&reference.curl.entities.curlstringfile;
</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->