Fix doc bug #62334 (New valid uses of static keyword not included in static

keyword doc page) by adding a tip to the oop5.static page linking to the other
uses of static.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326724 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Adam Harvey 2012-07-20 08:15:14 +00:00
parent ef51bbad95
commit 4d6ac2f940

View file

@ -3,6 +3,19 @@
<sect1 xml:id="language.oop5.static" xmlns="http://docbook.org/ns/docbook">
<title>Static Keyword</title>
<tip>
<simpara>
This page describes the use of the <literal>static</literal> keyword to
define static methods and properties. <literal>static</literal> can also
be used to
<link linkend="language.variables.scope.static">define static variables</link>
and for
<link linkend="language.oop5.late-static-bindings">late static bindings</link>.
Please refer to those pages for information on those meanings of
<literal>static</literal>.
</simpara>
</tip>
<para>
Declaring class properties or methods as static makes them accessible
without needing an instantiation of the class. A property declared as