Rewording/grammar, added :: to the title, and a typo fix.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167398 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2004-08-27 15:38:23 +00:00
parent 8d1d2a1429
commit c62173b909

View file

@ -1,31 +1,30 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<sect1 id="language.oop5.paamayim-nekudotayim">
<title>Scope Resolution Operator</title>
<title>Scope Resolution Operator (::)</title>
<para>
The Scope Resolution Operator (also called Paamayim Nekudotayim) or in
simpler terms, the double colon. This token provides a way to access
simpler terms, the double colon, is a token that allows access to
<link linkend="language.oop5.static">static</link>,
<link linkend="language.oop5.constants">constant</link> or overridden members
or methods of a class.
<link linkend="language.oop5.constants">constant</link>, and overridden
members or methods of a class.
</para>
<para>
When referencing these items from outside the class definition, you use
name of the class.
When referencing these items from outside the class definition, use
the name of the class.
</para>
<para>
Paamayim Nekudotayim would, at first, seem a strange choice for a
double-colon. However, at the time of writing of Zend Engine 0.5
(which powered PHP3), that is what Andi and Zeev decided to call it.
It actually does mean double-colon - in Hebrew! As PHP has progressed
with its development it has just never changed.
Paamayim Nekudotayim would, at first, seem like a strange choice for
naming a double-colon. However, while writing the Zend Engine 0.5
(which powers PHP 3), that's what the Zend team decided to call it.
It actually does mean double-colon - in Hebrew!
</para>
<example>
<title>:: from outside class definition</title>
<title>:: from outside the class definition</title>
<programlisting role="php">
<![CDATA[
<?php
@ -65,11 +64,11 @@ OtherClass::doubleColon();
<para>
When an extending class overrides the parents definition of a method,
php will not call the parent's method. It is up to the extending class
to call the parent method or not, this also applies to <link
PHP will not call the parent's method. It's up to the extended class
on whether or not the parent's method is called. This also applies to <link
linkend="language.oop5.decon">Constructors and Destructors</link>, <link
linkend="language.oop5.overloading">Overloading</link> and <link
linkend="language.oop5.magic">Magic</link> method defintions as well.
linkend="language.oop5.overloading">Overloading</link>, and <link
linkend="language.oop5.magic">Magic</link> method definitions.
</para>
<example>