cvs: phpdoc-zh /reference/com/functions com-addref.xml com-get.xml com-release.xml com-set.xml

From: Date: Wed, 13 Jul 2005 17:10:14 +0000
Subject: cvs: phpdoc-zh /reference/com/functions com-addref.xml com-get.xml com-release.xml com-set.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2044@lists.php.net to get a copy of this message
yincheng Wed Jul 13 13:10:14 2005 EDT Modified files: /phpdoc-zh/reference/com/functions com-addref.xml com-get.xml com-release.xml com-set.xml Log: up to en http://cvs.php.net/diff.php/phpdoc-zh/reference/com/functions/com-addref.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/com/functions/com-addref.xml diff -u phpdoc-zh/reference/com/functions/com-addref.xml:1.1 phpdoc-zh/reference/com/functions/com-addref.xml:1.2 --- phpdoc-zh/reference/com/functions/com-addref.xml:1.1 Tue Apr 8 08:33:13 2003 +++ phpdoc-zh/reference/com/functions/com-addref.xml Wed Jul 13 13:10:13 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: yincheng $ --> +<!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> <refentry id="function.com-addref"> <refnamediv> <refname>com_addref</refname> <refpurpose> - Ôö¼Ó×é¼þÒýÓüÆÊý¡£ + Ôö¼Ó×é¼þÒýÓüÆÊý¡£[±»·ÏÆú] </refpurpose> </refnamediv> <refsect1> @@ -19,6 +19,16 @@ <para> Ôö¼Ó×é¼þÒýÓüÆÊý¡£ </para> + + <warning> + <simpara> + ÄãÓ¦µ±²»ÔÙÐèҪʹÓøú¯Êý¡£ + </simpara> + </warning> + + <note> + <simpara>¸Ãº¯ÊýÒѾ­ÔÚ PHP 5 È¡Ïû¡£</simpara> + </note> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-zh/reference/com/functions/com-get.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/com/functions/com-get.xml diff -u phpdoc-zh/reference/com/functions/com-get.xml:1.1 phpdoc-zh/reference/com/functions/com-get.xml:1.2 --- phpdoc-zh/reference/com/functions/com-get.xml:1.1 Tue Apr 8 08:38:18 2003 +++ phpdoc-zh/reference/com/functions/com-get.xml Wed Jul 13 13:10:13 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: yincheng $ --> <!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> <refentry id="function.com-get"> <refnamediv> <refname>com_get</refname> <refpurpose> - »ñÈ¡ COM ×é¼þµÄÊôÐÔÖµ + »ñÈ¡ COM ×é¼þµÄÊôÐÔÖµ [±»·ÏÆú] </refpurpose> </refnamediv> <refsect1> @@ -22,6 +22,24 @@ ËùÒýÓÃµÄ COM ¶ÔÏóµÄ <parameter>property</parameter> ÊôÐÔÖµ£¬³ö´íÔò·µ»Ø &false;¡£ </para> + <para> + <example> + <title>²»ÒªÊ¹Óà com_get() £¬Ê¹Óà OO Óï·¨´úÌæ</title> + <programlisting role="php"> +<![CDATA[ +<?php +// do this +$var = $obj->property; +// instead of this: +$var = com_get($obj, 'property'); +?> +]]> + </programlisting> + </example> + </para> + + &reference.com.use-oo-instead; + </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-zh/reference/com/functions/com-release.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/com/functions/com-release.xml diff -u phpdoc-zh/reference/com/functions/com-release.xml:1.1 phpdoc-zh/reference/com/functions/com-release.xml:1.2 --- phpdoc-zh/reference/com/functions/com-release.xml:1.1 Tue Apr 8 09:16:33 2003 +++ phpdoc-zh/reference/com/functions/com-release.xml Wed Jul 13 13:10:13 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: yincheng $ --> +<!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> <refentry id="function.com-release"> <refnamediv> <refname>com_release</refname> <refpurpose> - ¼õÉÙ×é¼þÒýÓüÆÊý¡£ + ¼õÉÙ×é¼þÒýÓüÆÊý¡£[±»·ÏÆú] </refpurpose> </refnamediv> <refsect1> @@ -19,6 +19,17 @@ <para> ¼õÉÙ×é¼þÒýÓüÆÊý¡£ </para> + + <warning> + <simpara> + ÄãÓ¦µ±²»ÔÙÐèҪʹÓøú¯Êý¡£ + </simpara> + </warning> + + <note> + <simpara>¸Ãº¯ÊýÒѾ­ÔÚ PHP 5 È¡Ïû¡£</simpara> + </note> + </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-zh/reference/com/functions/com-set.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-zh/reference/com/functions/com-set.xml diff -u phpdoc-zh/reference/com/functions/com-set.xml:1.1 phpdoc-zh/reference/com/functions/com-set.xml:1.2 --- phpdoc-zh/reference/com/functions/com-set.xml:1.1 Tue Apr 8 09:19:13 2003 +++ phpdoc-zh/reference/com/functions/com-set.xml Wed Jul 13 13:10:13 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> -<!-- $Author: nio $ --> -<!-- EN-Revision: 1.2 Maintainer: nio Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- $Author: yincheng $ --> +<!-- EN-Revision: 1.3 Maintainer: nio Status: ready --> <!-- splitted from ./en/functions/com.xml, last change in rev 1.7 --> <refentry id="function.com-set"> <refnamediv> @@ -23,6 +23,24 @@ ËùÒýÓõĶÔÏóµÄ <parameter>property</parameter> ÊôÐÔÖµ¡£³É¹¦Ôò·µ»ØÐÂÉèÖõÄÖµ£¬³ö´íÔò·µ»Ø &false;¡£ </para> + <para> + <example> + <title>²»ÒªÊ¹Óà com_set() £¬Ê¹Óà OO Óï·¨´úÌæ</title> + <programlisting role="php"> + <![CDATA[ + <?php + // do this + $obj->property = $value; + // instead of this: + com_set($obj, 'property', $value); + ?> + ]]> + </programlisting> + </example> + </para> + + + &reference.com.use-oo-instead; </refsect1> </refentry>

« previous php.doc.zh (#2044) next »