svn: /phpdoc/zh/trunk/reference/spl/splfileinfo/ construct.xml

[email protected] (Bole Chen) Tue, 10 Nov 2020 12:45:37 +0000
Newsgroups php.doc.zh
Message-ID <[email protected]>
avenger                                  Tue, 10 Nov 2020 12:45:37 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=351348

Log:
sync to en.

Changed paths:
    A   phpdoc/zh/trunk/reference/spl/splfileinfo/construct.xml

Added: phpdoc/zh/trunk/reference/spl/splfileinfo/construct.xml
===================================================================
--- phpdoc/zh/trunk/reference/spl/splfileinfo/construct.xml	                        (rev 0)
+++ phpdoc/zh/trunk/reference/spl/splfileinfo/construct.xml	2020-11-10 12:45:37 UTC (rev 351348)
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 345155 Maintainer: 墨娘 Status: ready -->
+<!-- Reviewed: avenger Maintainer: avenger -->
+
+
+<refentry xml:id="splfileinfo.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+  <refname>SplFileInfo::__construct</refname>
+  <refpurpose>构建一个新的 SplFileInfo 对象</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <constructorsynopsis>
+   <modifier>public</modifier> <methodname>SplFileInfo::__construct</methodname>
+   <methodparam><type>string</type><parameter>file_name</parameter></methodparam>
+  </constructorsynopsis>
+  <para>
+   为指定的 file_name 创建一个新的 SplFileInfo 对象,该文件不需要存在或者可读。
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    <varlistentry>
+     <term><parameter>file_name</parameter></term>
+     <listitem>
+      <para>
+       文件路径
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title><function>SplFileInfo::__construct</function> 示例</title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+$info = new SplFileInfo('example.php');
+if ($info->isFile()) {
+    echo $info->getRealPath();
+}
+?>
+]]>
+    </programlisting>
+   </example>
+  </para>
+ </refsect1>
+
+</refentry>
+
+<!-- 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
+-->


Property changes on: phpdoc/zh/trunk/reference/spl/splfileinfo/construct.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
\ No newline at end of property