cvs: phpdoc-zh /language/oop5 basic.xml

From: Date: Thu, 10 Aug 2006 17:27:20 +0000
Subject: cvs: phpdoc-zh /language/oop5 basic.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2873@lists.php.net to get a copy of this message
lm92 Thu Aug 10 17:27:20 2006 UTC Modified files: /phpdoc-zh/language/oop5 basic.xml Log: updated http://cvs.php.net/viewvc.cgi/phpdoc-zh/language/oop5/basic.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-zh/language/oop5/basic.xml diff -u phpdoc-zh/language/oop5/basic.xml:1.2 phpdoc-zh/language/oop5/basic.xml:1.3 --- phpdoc-zh/language/oop5/basic.xml:1.2 Sat Nov 19 03:34:16 2005 +++ phpdoc-zh/language/oop5/basic.xml Thu Aug 10 17:27:20 2006 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: dallas $ --> -<!-- EN-Revision: 1.15 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: lm92 $ --> +<!-- EN-Revision: 1.17 Maintainer: dallas Status: ready --> <sect1 id="language.oop5.basic"> <title>»ù±¾¸ÅÄî</title> @@ -79,6 +79,41 @@ ]]> </programlisting> </example> + <para> + <example> + <title>Àà³ÉÔ±µÄĬÈÏÖµ</title> + <programlisting role="php"> +<![CDATA[ +<?php +class SimpleClass +{ + // ÎÞЧµÄÀà³ÉÔ±¶¨Ò壺 + public $var1 = 'hello '.'world'; + public $var2 = <<<EOD +hello world +EOD; + public $var3 = 1+2; + public $var4 = self::myStaticMethod(); + public $var5 = $myVar; + + // ÕýÈ·µÄÀà³ÉÔ±¶¨Ò壺 + public $var6 = myConstant; + public $var7 = self::classConstant; + public $var8 = array(true, false); + + +} +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + ³ý´ËÖ®Í⻹Óв»ÉÙÓÃÓÚ´¦ÀíÀàÓë¶ÔÏóµÄº¯Êý£¬ÏêÇé²Î¼û + <link linkend="ref.classobj">Àà / ¶ÔÏóº¯Êý </link> + </para> + </note> </sect2> <sect2 id="language.oop5.basic.new">

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