Re: cvs: peardoc /en/chapters standards.xml
| From: | Arnaud Limbourg | Date: | Fri, 02 Sep 2005 13:21:10 +0000 |
| Subject: | Re: cvs: peardoc /en/chapters standards.xml | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-6721@lists.php.net to get a copy of this message | ||
If somebody could test the build I would appreciate, I do not have a
working install (it fails on my mac)
Arnaud.
Arnaud Limbourg wrote:
> arnaud Fri Sep 2 09:05:50 2005 EDT
>
> Modified files:
> /peardoc/en/chapters standards.xml
> Log:
> adding note about protected members (http://pear.php.net/pepr/pepr-proposal-show.php?id=99)
>
>
>
> http://cvs.php.net/diff.php/peardoc/en/chapters/standards.xml?r1=1.36&r2=1.37&ty=u
> Index: peardoc/en/chapters/standards.xml
> diff -u peardoc/en/chapters/standards.xml:1.36 peardoc/en/chapters/standards.xml:1.37
> --- peardoc/en/chapters/standards.xml:1.36 Sat Jul 2 11:08:46 2005
> +++ peardoc/en/chapters/standards.xml Fri Sep 2 09:05:47 2005
> @@ -1,5 +1,5 @@
> <?xml version="1.0" encoding="iso-8859-1" ?>
> -<!-- $Revision: 1.36 $ -->
> +<!-- $Revision: 1.37 $ -->
>
> <chapter id="standards">
> <title>Coding Standards</title>
> @@ -734,6 +734,25 @@
> </tgroup>
> </informaltable>
> </para>
> + <para>
> + <note>
> + <simpara>The following applies to PHP5.</simpara>
> + </note>
> + Protected class members (meaning class members that are intended
> + to be used only from within the same class in which they are
> + declared or from subclasses that extend it) are not preceded by a single
> + underscore. For example:
> + <informaltable>
> + <tgroup cols="2">
> + <tbody>
> + <row>
> + <entry><simpara>protected $somevar</simpara></entry>
> + <entry><simpara>protected function
> initTree()</simpara></entry>
> + </row>
> + </tbody>
> + </tgroup>
> + </informaltable>
> + </para>
> </sect2>
> <sect2>
> <title>Constants</title>
>