cvs: peardoc /ja/package/fileformats/file-marc formatting.xml /ja/package/http/http-upload examples.xml
| From: | TAKAGI Masahiro | Date: | Wed, 21 Mar 2007 11:37:28 +0000 |
| Subject: | cvs: peardoc /ja/package/fileformats/file-marc formatting.xml /ja/package/http/http-upload examples.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9528@lists.php.net to get a copy of this message | ||
takagi Wed Mar 21 11:37:28 2007 UTC
Modified files:
/peardoc/ja/package/http/http-upload examples.xml
/peardoc/ja/package/fileformats/file-marc formatting.xml
Log:
sync with en.
http://cvs.php.net/viewvc.cgi/peardoc/ja/package/http/http-upload/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/http/http-upload/examples.xml diff -u peardoc/ja/package/http/http-upload/examples.xml:1.1 peardoc/ja/package/http/http-upload/examples.xml:1.2 --- peardoc/ja/package/http/http-upload/examples.xml:1.1 Sat Dec 31 03:56:04 2005 +++ peardoc/ja/package/http/http-upload/examples.xml Wed Mar 21 11:37:28 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <sect2 id="package.http.http-upload.examples"> <title>ä¾</title> @@ -8,10 +8,35 @@ 以ä¸ã®ä¾ã§ã¯ããã¡ã¤ã«ãã¢ãããã¼ãããããã« <acronym>HTML</acronym> ãã©ã¼ã ãã£ã¼ã«ã <literal><input type="file" name="f" /></literal> - ãç¨ãããã¨ãæ³å®ãã¦ãã¾ãã + ãç¨ãããã¨ãæ³å®ãã¦ãã¾ãããã¨ãã°ãã®ãããªãã©ã¼ã ã§ãã </para> <example> + <title>åç´ãªãã¡ã¤ã«ã¢ãããã¼ãç¨ã® HTML ãã©ã¼ã </title> + <para> + åä¸ãã¡ã¤ã«ã®ã¢ãããã¼ãã®ãµã³ãã«ã試ãã¦ã¿ãã«ã¯ããã®ãããªãã©ã¼ã ã使ç¨ãã¾ãã + </para> + <programlisting role="html"> +<![CDATA[ +<?php +// 以ä¸ã®ãµã³ãã«ã³ã¼ãããããã«æ¸ãã¾ã +?> +<html> + <head> + </head> + <body> + <form name="fileuploadexample" method="POST" enctype="multipart/form-data" + action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']) ?>"> + <input type="file" name="f" /> + <input type="submit" name="submit" value="Submit" /> + </form> + </body> +</html> +]]> + </programlisting> + </example> + + <example> <title>åç´ãªãã¡ã¤ã«ã®ã¢ãããã¼ã</title> <para> @@ -21,6 +46,7 @@ </para> <programlisting role="php"> +<![CDATA[ require_once "HTTP/Upload.php"; $upload = new HTTP_Upload("en"); @@ -30,11 +56,45 @@ $moved = $file->moveTo("uploads/"); if (!PEAR::isError($moved)) { echo "ãã¡ã¤ã«ã uploads/ ã«ç§»åããã¾ããã"; + } else { + echo $moved->getMessage(); } +} elseif ($file->isMissing()) { + echo "ãã¡ã¤ã«ãããã¾ããã"; +} elseif ($file->isError()) { + echo $file->errorMsg(); } +]]> </programlisting> </example> + + <example> + <title>è¤æ°ã®ãã¡ã¤ã«ãã¢ãããã¼ãããããã® HTML ãã©ã¼ã </title> + <para> + è¤æ°ãã¡ã¤ã«ã®ã¢ãããã¼ãã®ãµã³ãã«ã試ãã¦ã¿ãã«ã¯ããã®ãããªãã©ã¼ã ã使ç¨ãã¾ãã + </para> + <programlisting role="html"> +<![CDATA[ +<?php +// 以ä¸ã®ãµã³ãã«ã³ã¼ãããããã«æ¸ãã¾ã +?> +<html> + <head> + </head> + <body> + <form name="fileuploadexample2" method="POST" enctype="multipart/form-data" + action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']) ?>"> + <input type="file" name="f1" /> + <input type="file" name="f2" /> + <input type="submit" name="submit" value="Submit" /> + </form> + </body> +</html> +]]> + </programlisting> + </example> + <example id="package.http.http-upload.examples.multiple"> <title>è¤æ°ã®ãã¡ã¤ã«ãããé²ãã ãã§ãã¯</title> @@ -46,6 +106,7 @@ </para> <programlisting role="php"> +<![CDATA[ $upload = new HTTP_Upload("en"); $files = $upload->getFiles(); @@ -72,6 +133,7 @@ print_r($file->getProp()); } +]]> </programlisting> </example> </sect2> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/fileformats/file-marc/formatting.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/fileformats/file-marc/formatting.xml diff -u peardoc/ja/package/fileformats/file-marc/formatting.xml:1.1 peardoc/ja/package/fileformats/file-marc/formatting.xml:1.2 --- peardoc/ja/package/fileformats/file-marc/formatting.xml:1.1 Sat Feb 24 01:36:03 2007 +++ peardoc/ja/package/fileformats/file-marc/formatting.xml Wed Mar 21 11:37:28 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.fileformats.file-marc.formatting"> <refnamediv> <refname>MARC ãã¼ã¿ã®ãã©ã¼ããã</refname> @@ -25,7 +25,7 @@ <para> ã¬ã³ã¼ãã MARC 21 å½¢å¼ã§è¿ãã«ã¯ã <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã® - <function>toRaw()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>toRaw</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã </para> <example> @@ -37,7 +37,7 @@ ãã®ãã¼ã¿ã MARC 21 å½¢å¼ã§ãã¡ã¤ã«ã«æ¸ãè¾¼ãã«ã¯ã ã¾ããã¡ã¤ã«ããã¤ããªã¢ã¼ãã§ãªã¼ãã³ãã¾ãã ããã¦é åå ã®ã¬ã³ã¼ãã®å 容ããã¡ã¤ã«ã«æ¸ãè¾¼ãããã« - <function>toRaw()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>toRaw</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã ãããã¬ã³ã¼ããã¨ã«ç¹°ãè¿ãã¾ãã </para> @@ -69,17 +69,17 @@ <para> å¯èªå½¢å¼ã§ MARC 21 ããã㯠MARCXML ã¬ã³ã¼ããè¿ãã«ã¯ã <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã® - <function>__toString()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>__toString</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã® - <function>print()</function> 颿°ãã³ã¼ã«ããéã«ã¯ãæé»çã« - <function>__toString()</function> ã¡ã½ãããã³ã¼ã«ãã¦ãããã¨ã«æ³¨æãã¾ãããã + <function>print</function> 颿°ãã³ã¼ã«ããéã«ã¯ãæé»çã« + <function>__toString</function> ã¡ã½ãããã³ã¼ã«ãã¦ãããã¨ã«æ³¨æãã¾ãããã </para> <example> <title>MARC ã®å¯èªå½¢å¼ãè¿ã</title> <para> ãã®ä¾ã§ã¯ãå MARC ã¬ã³ã¼ãã®å 容ãå¯èªå½¢å¼ã§è¡¨ç¤ºãã¾ãã - ã¾ããæç¤ºçã« <function>__toString()</function> ã¡ã½ãããã³ã¼ã«ãã + ã¾ããæç¤ºçã« <function>__toString</function> ã¡ã½ãããã³ã¼ã«ãã å¯èªå½¢å¼ã§ãã¡ã¤ã«ã«æ¸ãè¾¼ã¿ã¾ããå ¥åå½¢å¼ã MARC ããã㯠MARCXML ã®ã©ã¡ãã§ãã£ã¦ããåºåç¨ã«ãã¼ã¿ãæ´å½¢ããã¡ã½ããã¯åãã§ãããã¨ã«æ³¨æãã¾ãããã </para> @@ -115,11 +115,11 @@ <para> ã¬ã³ã¼ãã MARCXML å½¢å¼ã§è¿ãã«ã¯ã <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã® - <function>toXML()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>toXML</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã </para> <warning> - <title><function>toXML()</function> ã¡ã½ããã®éè¦ãªå¶ç´</title> + <title><function>toXML</function> ã¡ã½ããã®éè¦ãªå¶ç´</title> <itemizedlist> <listitem> <para> @@ -139,11 +139,11 @@ </listitem> <listitem> <para> - <function>toXML()</function> ã¡ã½ããã¯ãç¾å¨ã¯ + <function>toXML</function> ã¡ã½ããã¯ãç¾å¨ã¯ ã²ã¨ã¤ã® <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã«å¯¾ã㦠ã²ã¨ã¤ã®å¦¥å½ãª XML MARCXML ããã¥ã¡ã³ãã使ãã¾ãã ãµãã¤ã® <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã§ - <function>toXML()</function> ãã³ã¼ã«ããçµæãåç´ã«é£çµãããã¨ã¯ã§ãã¾ããã + <function>toXML</function> ãã³ã¼ã«ããçµæãåç´ã«é£çµãããã¨ã¯ã§ãã¾ããã ããããã¨ãåºæ¥ä¸ãã£ã XML ããã¥ã¡ã³ãã妥å½ãªå½¢å¼ã§ã¯ãªããªãããã§ãã è¤æ°ã®ã¬ã³ã¼ããå«ã MARCXML ããã¥ã¡ã³ãã使ãããå ´åã ç¾ç¶ã§ã¯éçºè èªèº«ã§ãããè¡ãå¿ è¦ãããã¾ããã¤ã¾ããå MARCXML @@ -163,7 +163,7 @@ ãã®ãã¼ã¿ã MARCXML å½¢å¼ã§ãã¡ã¤ã«ã«æ¸ãè¾¼ãã«ã¯ã ã¾ããã¡ã¤ã«ããã¤ããªã¢ã¼ãã§ãªã¼ãã³ãã¾ãã ããã¦é åå ã®ã¬ã³ã¼ãã®å 容ããã¡ã¤ã«ã«æ¸ãè¾¼ãããã« - <function>toXML()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>toXML</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã </para> <programlisting role="php"><![CDATA[
http://cvs.php.net/viewvc.cgi/peardoc/ja/package/http/http-upload/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/http/http-upload/examples.xml diff -u peardoc/ja/package/http/http-upload/examples.xml:1.1 peardoc/ja/package/http/http-upload/examples.xml:1.2 --- peardoc/ja/package/http/http-upload/examples.xml:1.1 Sat Dec 31 03:56:04 2005 +++ peardoc/ja/package/http/http-upload/examples.xml Wed Mar 21 11:37:28 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <sect2 id="package.http.http-upload.examples"> <title>ä¾</title> @@ -8,10 +8,35 @@ 以ä¸ã®ä¾ã§ã¯ããã¡ã¤ã«ãã¢ãããã¼ãããããã« <acronym>HTML</acronym> ãã©ã¼ã ãã£ã¼ã«ã <literal><input type="file" name="f" /></literal> - ãç¨ãããã¨ãæ³å®ãã¦ãã¾ãã + ãç¨ãããã¨ãæ³å®ãã¦ãã¾ãããã¨ãã°ãã®ãããªãã©ã¼ã ã§ãã </para> <example> + <title>åç´ãªãã¡ã¤ã«ã¢ãããã¼ãç¨ã® HTML ãã©ã¼ã </title> + <para> + åä¸ãã¡ã¤ã«ã®ã¢ãããã¼ãã®ãµã³ãã«ã試ãã¦ã¿ãã«ã¯ããã®ãããªãã©ã¼ã ã使ç¨ãã¾ãã + </para> + <programlisting role="html"> +<![CDATA[ +<?php +// 以ä¸ã®ãµã³ãã«ã³ã¼ãããããã«æ¸ãã¾ã +?> +<html> + <head> + </head> + <body> + <form name="fileuploadexample" method="POST" enctype="multipart/form-data" + action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']) ?>"> + <input type="file" name="f" /> + <input type="submit" name="submit" value="Submit" /> + </form> + </body> +</html> +]]> + </programlisting> + </example> + + <example> <title>åç´ãªãã¡ã¤ã«ã®ã¢ãããã¼ã</title> <para> @@ -21,6 +46,7 @@ </para> <programlisting role="php"> +<![CDATA[ require_once "HTTP/Upload.php"; $upload = new HTTP_Upload("en"); @@ -30,11 +56,45 @@ $moved = $file->moveTo("uploads/"); if (!PEAR::isError($moved)) { echo "ãã¡ã¤ã«ã uploads/ ã«ç§»åããã¾ããã"; + } else { + echo $moved->getMessage(); } +} elseif ($file->isMissing()) { + echo "ãã¡ã¤ã«ãããã¾ããã"; +} elseif ($file->isError()) { + echo $file->errorMsg(); } +]]> </programlisting> </example> + + <example> + <title>è¤æ°ã®ãã¡ã¤ã«ãã¢ãããã¼ãããããã® HTML ãã©ã¼ã </title> + <para> + è¤æ°ãã¡ã¤ã«ã®ã¢ãããã¼ãã®ãµã³ãã«ã試ãã¦ã¿ãã«ã¯ããã®ãããªãã©ã¼ã ã使ç¨ãã¾ãã + </para> + <programlisting role="html"> +<![CDATA[ +<?php +// 以ä¸ã®ãµã³ãã«ã³ã¼ãããããã«æ¸ãã¾ã +?> +<html> + <head> + </head> + <body> + <form name="fileuploadexample2" method="POST" enctype="multipart/form-data" + action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']) ?>"> + <input type="file" name="f1" /> + <input type="file" name="f2" /> + <input type="submit" name="submit" value="Submit" /> + </form> + </body> +</html> +]]> + </programlisting> + </example> + <example id="package.http.http-upload.examples.multiple"> <title>è¤æ°ã®ãã¡ã¤ã«ãããé²ãã ãã§ãã¯</title> @@ -46,6 +106,7 @@ </para> <programlisting role="php"> +<![CDATA[ $upload = new HTTP_Upload("en"); $files = $upload->getFiles(); @@ -72,6 +133,7 @@ print_r($file->getProp()); } +]]> </programlisting> </example> </sect2> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/fileformats/file-marc/formatting.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/fileformats/file-marc/formatting.xml diff -u peardoc/ja/package/fileformats/file-marc/formatting.xml:1.1 peardoc/ja/package/fileformats/file-marc/formatting.xml:1.2 --- peardoc/ja/package/fileformats/file-marc/formatting.xml:1.1 Sat Feb 24 01:36:03 2007 +++ peardoc/ja/package/fileformats/file-marc/formatting.xml Wed Mar 21 11:37:28 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.fileformats.file-marc.formatting"> <refnamediv> <refname>MARC ãã¼ã¿ã®ãã©ã¼ããã</refname> @@ -25,7 +25,7 @@ <para> ã¬ã³ã¼ãã MARC 21 å½¢å¼ã§è¿ãã«ã¯ã <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã® - <function>toRaw()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>toRaw</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã </para> <example> @@ -37,7 +37,7 @@ ãã®ãã¼ã¿ã MARC 21 å½¢å¼ã§ãã¡ã¤ã«ã«æ¸ãè¾¼ãã«ã¯ã ã¾ããã¡ã¤ã«ããã¤ããªã¢ã¼ãã§ãªã¼ãã³ãã¾ãã ããã¦é åå ã®ã¬ã³ã¼ãã®å 容ããã¡ã¤ã«ã«æ¸ãè¾¼ãããã« - <function>toRaw()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>toRaw</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã ãããã¬ã³ã¼ããã¨ã«ç¹°ãè¿ãã¾ãã </para> @@ -69,17 +69,17 @@ <para> å¯èªå½¢å¼ã§ MARC 21 ããã㯠MARCXML ã¬ã³ã¼ããè¿ãã«ã¯ã <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã® - <function>__toString()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>__toString</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã® - <function>print()</function> 颿°ãã³ã¼ã«ããéã«ã¯ãæé»çã« - <function>__toString()</function> ã¡ã½ãããã³ã¼ã«ãã¦ãããã¨ã«æ³¨æãã¾ãããã + <function>print</function> 颿°ãã³ã¼ã«ããéã«ã¯ãæé»çã« + <function>__toString</function> ã¡ã½ãããã³ã¼ã«ãã¦ãããã¨ã«æ³¨æãã¾ãããã </para> <example> <title>MARC ã®å¯èªå½¢å¼ãè¿ã</title> <para> ãã®ä¾ã§ã¯ãå MARC ã¬ã³ã¼ãã®å 容ãå¯èªå½¢å¼ã§è¡¨ç¤ºãã¾ãã - ã¾ããæç¤ºçã« <function>__toString()</function> ã¡ã½ãããã³ã¼ã«ãã + ã¾ããæç¤ºçã« <function>__toString</function> ã¡ã½ãããã³ã¼ã«ãã å¯èªå½¢å¼ã§ãã¡ã¤ã«ã«æ¸ãè¾¼ã¿ã¾ããå ¥åå½¢å¼ã MARC ããã㯠MARCXML ã®ã©ã¡ãã§ãã£ã¦ããåºåç¨ã«ãã¼ã¿ãæ´å½¢ããã¡ã½ããã¯åãã§ãããã¨ã«æ³¨æãã¾ãããã </para> @@ -115,11 +115,11 @@ <para> ã¬ã³ã¼ãã MARCXML å½¢å¼ã§è¿ãã«ã¯ã <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã® - <function>toXML()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>toXML</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã </para> <warning> - <title><function>toXML()</function> ã¡ã½ããã®éè¦ãªå¶ç´</title> + <title><function>toXML</function> ã¡ã½ããã®éè¦ãªå¶ç´</title> <itemizedlist> <listitem> <para> @@ -139,11 +139,11 @@ </listitem> <listitem> <para> - <function>toXML()</function> ã¡ã½ããã¯ãç¾å¨ã¯ + <function>toXML</function> ã¡ã½ããã¯ãç¾å¨ã¯ ã²ã¨ã¤ã® <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã«å¯¾ã㦠ã²ã¨ã¤ã®å¦¥å½ãª XML MARCXML ããã¥ã¡ã³ãã使ãã¾ãã ãµãã¤ã® <classname>File_MARC_Record</classname> ãªãã¸ã§ã¯ãã§ - <function>toXML()</function> ãã³ã¼ã«ããçµæãåç´ã«é£çµãããã¨ã¯ã§ãã¾ããã + <function>toXML</function> ãã³ã¼ã«ããçµæãåç´ã«é£çµãããã¨ã¯ã§ãã¾ããã ããããã¨ãåºæ¥ä¸ãã£ã XML ããã¥ã¡ã³ãã妥å½ãªå½¢å¼ã§ã¯ãªããªãããã§ãã è¤æ°ã®ã¬ã³ã¼ããå«ã MARCXML ããã¥ã¡ã³ãã使ãããå ´åã ç¾ç¶ã§ã¯éçºè èªèº«ã§ãããè¡ãå¿ è¦ãããã¾ããã¤ã¾ããå MARCXML @@ -163,7 +163,7 @@ ãã®ãã¼ã¿ã MARCXML å½¢å¼ã§ãã¡ã¤ã«ã«æ¸ãè¾¼ãã«ã¯ã ã¾ããã¡ã¤ã«ããã¤ããªã¢ã¼ãã§ãªã¼ãã³ãã¾ãã ããã¦é åå ã®ã¬ã³ã¼ãã®å 容ããã¡ã¤ã«ã«æ¸ãè¾¼ãããã« - <function>toXML()</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã + <function>toXML</function> ã¡ã½ãããã³ã¼ã«ãã¾ãã </para> <programlisting role="php"><![CDATA[