svn: /phpdoc/ru/trunk/reference/filesystem/functions/ filetype.xml
| From: | Shein Alexey | Date: | Fri, 04 Mar 2011 10:52:49 +0000 |
| Subject: | svn: /phpdoc/ru/trunk/reference/filesystem/functions/ filetype.xml | ||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-1487@lists.php.net to get a copy of this message | ||
shein Fri, 04 Mar 2011 10:52:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=308920
Log:
Updated translation.
Changed paths:
U phpdoc/ru/trunk/reference/filesystem/functions/filetype.xml
Modified: phpdoc/ru/trunk/reference/filesystem/functions/filetype.xml
===================================================================
--- phpdoc/ru/trunk/reference/filesystem/functions/filetype.xml 2011-03-04 10:34:08 UTC (rev 308919)
+++ phpdoc/ru/trunk/reference/filesystem/functions/filetype.xml 2011-03-04 10:52:49 UTC (rev 308920)
@@ -1,37 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: n/a Maintainer: freespace Status: ready -->
+<!-- EN-Revision: 306338 Maintainer: shein Status: ready -->
+<!-- Reviewed: no -->
<!-- $Revision$ -->
-<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
- <refentry xml:id="function.filetype" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>filetype</refname>
- <refpurpose>Получить тип файла</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Описание</title>
- <methodsynopsis>
- <type>string</type><methodname>filetype</methodname>
-
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
- </methodsynopsis>
- <para>
- Возвращает тип файла. Возможными значениями
являются fifo, char,
- dir, block, link, file и unknown.
- </para>
- <para>
- Возвращает &false; в случае возникновения ошибки.
- <function>filetype</function> также вызовет сообщение
- <constant>E_NOTICE</constant> при неудачной попытке
получения
- информации о файле или если тип файла неизвестен.
- </para>
-
- ¬e.clearstatcache;
-
- &tip.fopen-wrapper.stat;
+<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.filetype">
+ <refnamediv>
+ <refname>filetype</refname>
+ <refpurpose>Возвращает тип файла</refpurpose>
+ </refnamediv>
- <para>
- <example>
- <title>Пример использования функции
<function>filetype</function></title>
- <programlisting role="php">
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>string</type><methodname>filetype</methodname>
+
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Возвращает тип указанного файла.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>filename</parameter></term>
+ <listitem>
+ <para>
+ Путь к файлу.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Возвращает тип файла. Возможными значениями
являются fifo, char,
+ dir, block, link, file, socket и unknown.
+ </para>
+ <para>
+ Возвращает &false; в случае ошибки.
<function>filetype</function>
+ также вызовет ошибку уровня <constant>E_NOTICE</constant>,
если
+ системный вызов stat завершится ошибкой или тип файла
неизвестен.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Пример использования функции
<function>filetype</function></title>
+ <programlisting role="php">
<![CDATA[
<?php
@@ -40,18 +62,38 @@
?>
]]>
- </programlisting>
- </example>
- </para>
- <simpara>
- См. также описание функций <function>is_dir</function>,
- <function>is_file</function>, <function>is_link</function>,
- <function>file_exists</function>, <function>stat</function> и
- <function>mime_content_type</function>.
- </simpara>
- </refsect1>
- </refentry>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+ <refsect1 role="errors">
+ &reftitle.errors;
+ &fs.emits.warning.on.failure;
+ </refsect1>
+
+ <refsect1 role="notes">
+ &reftitle.notes;
+ ¬e.clearstatcache;
+ &tip.fopen-wrapper.stat;
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>is_dir</function></member>
+ <member><function>is_file</function></member>
+ <member><function>is_link</function></member>
+ <member><function>file_exists</function></member>
+ <member><function>stat</function></member>
+ <member><function>mime_content_type</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
@@ -63,7 +105,7 @@
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
-sgml-default-dtd-file:"../~/.phpdoc/manual.ced"
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil