cvs: phpdoc-ja /reference/classobj/functions property-exists.xml /reference/oci8/functions ocinewdescriptor.xml /reference/xsl/functions
xsl-xsltprocessor-register-php-functions.xml
| From: | TAKAGI Masahiro | Date: | Wed, 01 Mar 2006 00:17:26 +0000 |
| Subject: | cvs: phpdoc-ja /reference/classobj/functions property-exists.xml /reference/oci8/functions ocinewdescriptor.xml /reference/xsl/functions xsl-xsltprocessor-register-php-functions.xml |
||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-1486@lists.php.net to get a copy of this message | ||
takagi Wed Mar 1 00:17:26 2006 UTC
Modified files:
/phpdoc-ja/reference/classobj/functions property-exists.xml
/phpdoc-ja/reference/oci8/functions ocinewdescriptor.xml
/phpdoc-ja/reference/xsl/functions
xsl-xsltprocessor-register-php-functions.xml
Log:
sync with en.
http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/classobj/functions/property-exists.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc-ja/reference/classobj/functions/property-exists.xml
diff -u phpdoc-ja/reference/classobj/functions/property-exists.xml:1.2
phpdoc-ja/reference/classobj/functions/property-exists.xml:1.3
--- phpdoc-ja/reference/classobj/functions/property-exists.xml:1.2 Fri Nov 4 22:43:58 2005
+++ phpdoc-ja/reference/classobj/functions/property-exists.xml Wed Mar 1 00:17:26 2006
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.3 Maintainer: shimooka Status: ready -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.4 Maintainer: shimooka Status: ready -->
<!-- CREDITS: takagi -->
<refentry id="function.property-exists">
<refnamediv>
@@ -18,8 +18,8 @@
</methodsynopsis>
<para>
ãã®é¢æ°ã¯ãä¸ããããããããã£
<parameter>property</parameter> ã
-
æå®ãããã¯ã©ã¹ã«åå¨ãããã©ãã
(ã㤠public
- ã¨ãã¦å®£è¨ããã¦ãããã©ãã)
ã確èªãã¾ãã
+
æå®ãããã¯ã©ã¹ã«åå¨ãããã©ãã
+
(ãã¤ç¾å¨ã®ã¹ã³ã¼ãããã¢ã¯ã»ã¹å¯è½ãã©ãã)
ã確èªãã¾ãã
</para>
<note>
<para>
@@ -74,11 +74,16 @@
class myClass {
public $mine;
private $xpto;
+
+ static function test() {
+ var_dump(property_exists('myClass', 'xpto')); //
ããããã¢ã¯ã»ã¹å¯è½ãªã®ã§ true
+ }
}
var_dump(property_exists('myClass', 'mine')); //true
var_dump(property_exists(new myClass, 'mine')); //true
var_dump(property_exists('myClass', 'xpto')); //public
ã§ãªãã®ã§ false
+myClass::test();
?>
]]>
http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/oci8/functions/ocinewdescriptor.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc-ja/reference/oci8/functions/ocinewdescriptor.xml
diff -u phpdoc-ja/reference/oci8/functions/ocinewdescriptor.xml:1.5
phpdoc-ja/reference/oci8/functions/ocinewdescriptor.xml:1.6
--- phpdoc-ja/reference/oci8/functions/ocinewdescriptor.xml:1.5 Sun Sep 25 05:07:28 2005
+++ phpdoc-ja/reference/oci8/functions/ocinewdescriptor.xml Wed Mar 1 00:17:26 2006
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.16 Maintainer: shimooka Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.17 Maintainer: shimooka Status: ready -->
<!-- CREDITS: hirokawa -->
-<refentry id="function.ocinewscriptor">
+<refentry id="function.ocinewdescriptor">
<refnamediv>
<refname>ocinewscriptor</refname>
<refpurpose><function>oci_new_descriptor</function>
&Alias;</refpurpose>
http://cvs.php.net/viewcvs.cgi/phpdoc-ja/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml?r1=1.1&r2=1.2&diff_format=u
Index: phpdoc-ja/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml
diff -u phpdoc-ja/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.1
phpdoc-ja/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.2
--- phpdoc-ja/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml:1.1 Sat Apr 30
14:41:09 2005
+++ phpdoc-ja/reference/xsl/functions/xsl-xsltprocessor-register-php-functions.xml Wed Mar 1
00:17:26 2006
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8" ?>
-<!-- $Revision: 1.1 $ -->
-<!-- EN-Revision: 1.5 Maintainer: shimooka Status: ready -->
+<!-- $Revision: 1.2 $ -->
+<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready -->
<refentry id="function.xsl-xsltprocessor-register-php-functions">
<refnamediv>
<refname>XSLTProcessor->registerPHPFunctions()</refname>
- <refpurpose>PHP颿°ã XSLT
颿°ã¨ãã¦å©ç¨ã§ããããã«ãã</refpurpose>
+ <refpurpose>PHP 颿°ã XSLT
颿°ã¨ãã¦å©ç¨ã§ããããã«ãã</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
@@ -46,6 +46,54 @@
&return.void;
</para>
</refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>ã¹ã¿ã¤ã«ã·ã¼ãããã®åç´ãª PHP
颿°ã³ã¼ã«</title>
+ <programlisting role="php"><![CDATA[<?php
+$xml = <<<EOB
+<allusers>
+ <user>
+ <uid>bob</uid>
+ </user>
+ <user>
+ <uid>joe</uid>
+ </user>
+</allusers>
+EOB;
+$xsl = <<<EOB
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:php="http://php.net/xsl">
+<xsl:output method="html" encoding="utf-8" indent="yes"/>
+ <xsl:template match="allusers">
+ <html><body>
+ <h2>Users</h2>
+ <table>
+ <xsl:for-each select="user">
+ <tr><td>
+ <xsl:value-of
+ select="php:function('ucfirst',string(uid))"/>
+ </td></tr>
+ </xsl:for-each>
+ </table>
+ </body></html>
+ </xsl:template>
+</xsl:stylesheet>
+EOB;
+$xmldoc = DOMDocument::loadXML($xml);
+$xsldoc = DOMDocument::loadXML($xsl);
+
+$proc = new XSLTProcessor();
+$proc->registerPHPFunctions();
+$proc->importStyleSheet($xsldoc);
+echo $proc->transformToXML($xmldoc);
+?>]]></programlisting>
+ </example>
+ </para>
+ </refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>