For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > April 2006 > cvs: phpdoc /en/language oop.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/language oop.xml
Jakub Vrana

2006-04-27, 3:58 am

vrana Thu Apr 27 07:29:20 2006 UTC

Modified files:
/phpdoc/en/language oop.xml
Log:
Grammar (bug #37215)

http://cvs.php.net/viewcvs.cgi/phpd...6&diff_format=u
Index: phpdoc/en/language/oop.xml
diff -u phpdoc/en/language/oop.xml:1.65 phpdoc/en/language/oop.xml:1.66
--- phpdoc/en/language/oop.xml:1.65 Thu Apr 27 07:25:56 2006
+++ phpdoc/en/language/oop.xml Thu Apr 27 07:29:20 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.65 $ -->
+<!-- $Revision: 1.66 $ -->
<chapter id="language.oop">
<title>Classes and Objects (PHP 4)</title>

@@ -231,10 +231,11 @@
<para>
Within a class definition, you do not know under which name the object
will be accessible in your program: at the time the Cart class was
- written, it was unknown that the object will be named
- <varname>$cart</varname> or <varname>$another_cart</varname> later. Thus,
+ written, it was unknown whether the object would be named
+ <varname>$cart</varname>, <varname>$another_cart</varname>, or something
+ else later. Thus,
you cannot write <varname>$cart-&gt;items</varname> within the Cart class
- itself. Instead, in order to be able to access it's own functions and
+ itself. Instead, in order to be able to access its own functions and
variables from within a class, one can use the pseudo-variable
<varname>$this</varname> which can be read as 'my own' or 'current
object'. Thus, '<varname>$this-&gt;items[$artnr]</varname> +=
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com