svn: /phpdoc/ru/trunk/reference/filesystem/functions/ is-link.xml

From: Date: Sat, 05 Mar 2011 08:10:58 +0000
Subject: svn: /phpdoc/ru/trunk/reference/filesystem/functions/ is-link.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-1493@lists.php.net to get a copy of this message
shein Sat, 05 Mar 2011 08:10:58 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=308940 Log: Updated translation. Changed paths: U phpdoc/ru/trunk/reference/filesystem/functions/is-link.xml Modified: phpdoc/ru/trunk/reference/filesystem/functions/is-link.xml =================================================================== --- phpdoc/ru/trunk/reference/filesystem/functions/is-link.xml 2011-03-05 08:07:58 UTC (rev 308939) +++ phpdoc/ru/trunk/reference/filesystem/functions/is-link.xml 2011-03-05 08:10:58 UTC (rev 308940) @@ -1,33 +1,94 @@ <?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.is-link" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>is_link</refname> - <refpurpose>Определяет, является ли файл символической ссылкой</refpurpose> - </refnamediv> - <refsect1> - <title>Описание</title> - <methodsynopsis> - <type>bool</type><methodname>is_link</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - Возвращает &true;, если файл существует и является символической ссылкой. - </para> - - &note.clearstatcache; +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.is-link"> + <refnamediv> + <refname>is_link</refname> + <refpurpose>Определяет, является ли файл символической ссылкой</refpurpose> + </refnamediv> - &tip.fopen-wrapper.stat; - - <para> - См. также описание функций <function>is_dir</function>, - <function>is_file</function> и <function>readlink</function>. - </para> - </refsect1> - </refentry> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>is_link</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> + Возвращает &true;, если файл существует и является символической ссылкой, + иначе возвращается &false;. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Создаем файл и подтверждаем, что он является символической ссылкой</title> + <programlisting role="php"> +<![CDATA[ +<?php +$link = 'uploads'; + +if (is_link($link)) { + echo(readlink($link)); +} else { + symlink('uploads.php', $link); +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="errors"> + &reftitle.errors; + &fs.emits.warning.on.failure; + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + &note.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>readlink</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -39,7 +100,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

« previous php.doc.ru (#1493) next »