diff --git a/appendices/migration53.xml b/appendices/migration53.xml
index ff016c8b84..e705d4e128 100644
--- a/appendices/migration53.xml
+++ b/appendices/migration53.xml
@@ -207,7 +207,7 @@
It is now possible to use
Heredocs to
- initialize static variables and class members/constants.
+ initialize static variables and class properties/constants.
@@ -2338,7 +2338,7 @@
- var_dump output now includes private object members.
+ var_dump output now includes private object properties.
diff --git a/language/oop5/cloning.xml b/language/oop5/cloning.xml
index 8f6bf5e6c5..8de2a62474 100644
--- a/language/oop5/cloning.xml
+++ b/language/oop5/cloning.xml
@@ -1,7 +1,7 @@
- Object cloning
+ Object Cloning
Creating a copy of an object with fully replicated properties is not
diff --git a/language/oop5/constants.xml b/language/oop5/constants.xml
index 7e17a26b57..c34d85c25b 100644
--- a/language/oop5/constants.xml
+++ b/language/oop5/constants.xml
@@ -9,7 +9,7 @@
The value must be a constant expression, not (for example) a variable, a
- class member, result of a mathematical operation or a function call.
+ property, a result of a mathematical operation, or a function call.
Its also possible for interfaces to have constants. Look at
diff --git a/language/oop5/object-comparison.xml b/language/oop5/object-comparison.xml
index fa2b7ebbe7..56a7751133 100644
--- a/language/oop5/object-comparison.xml
+++ b/language/oop5/object-comparison.xml
@@ -1,7 +1,7 @@
- Comparing objects
+ Comparing Objects
In PHP 5, object comparison is more complicated than in PHP 4 and more
in accordance to what one will expect from an Object Oriented Language
diff --git a/language/oop5/overloading.xml b/language/oop5/overloading.xml
index 523fd38066..b6d5a1c955 100644
--- a/language/oop5/overloading.xml
+++ b/language/oop5/overloading.xml
@@ -5,17 +5,17 @@
Overloading in PHP provides means to dynamically
- create members and methods.
+ create properties and methods.
These dynamic entities are processed via magic methods
one can establish in a class for various action types.
The overloading methods are invoked when interacting with
- members or methods that have not been declared or are not
+ properties or methods that have not been declared or are not
visible in
the current scope. The rest of this section will use the terms
- inaccessible members and inaccessible
+ inaccessible properties and inaccessible
methods to refer to this combination of declaration
and visibility.
@@ -76,7 +76,7 @@
- Member overloading
+ Property overloadingvoid__set
@@ -98,35 +98,35 @@
__set is run when writing data to
- inaccessible members.
+ inaccessible properties.
__get is utilized for reading data from
- inaccessible members.
+ inaccessible properties.
__isset is triggered by calling
isset or empty
- on inaccessible members.
+ on inaccessible properties.
__unset is invoked when
- unset is used on inaccessible members.
+ unset is used on inaccessible properties.
The $name argument is the name of the
- member being interacted with. The __set
+ property being interacted with. The __set
method's $value argument specifies the
- value the $name'ed member should be set
+ value the $name'ed property should be set
to.
- Member overloading only works in object context. These magic
+ Property overloading only works in object context. These magic
methods will not be triggered in static context. Therefore
these methods can not be declared
static.
@@ -144,18 +144,18 @@
- Overloading members via the __get,
+ Overloading properties via the __get,
__set, __isset
and __unset methods
\n";
-$obj = new MemberTest;
+$obj = new PropertyTest;
$obj->a = 1;
echo $obj->a . "\n\n";
diff --git a/language/oop5/paamayim-nekudotayim.xml b/language/oop5/paamayim-nekudotayim.xml
index 8c668a8f9a..74eb9cbbed 100644
--- a/language/oop5/paamayim-nekudotayim.xml
+++ b/language/oop5/paamayim-nekudotayim.xml
@@ -8,7 +8,7 @@
simpler terms, the double colon, is a token that allows access to
static,
constant, and overridden
- members or methods of a class.
+ properties or methods of a class.
@@ -49,7 +49,7 @@ echo MyClass::CONST_VALUE;
Two special keywords self and parent
- are used to access members or methods from inside the class definition.
+ are used to access properties or methods from inside the class definition.
diff --git a/language/oop5/static.xml b/language/oop5/static.xml
index de79a03a53..a9d58dfa28 100644
--- a/language/oop5/static.xml
+++ b/language/oop5/static.xml
@@ -4,8 +4,8 @@
Static Keyword
- Declaring class members or methods as static makes them accessible
- without needing an instantiation of the class. A member declared as
+ Declaring class properties or methods as static makes them accessible
+ without needing an instantiation of the class. A property declared as
static can not be accessed with an instantiated class object (though
a static method can).
@@ -13,13 +13,13 @@
For compatibility with PHP 4, if no visibility
- declaration is used, then the member or method will be treated
+ declaration is used, then the property or method will be treated
as if it was declared as public.
Because static methods are callable without an instance of
- the object created, the pseudo variable $this is
+ the object created, the pseudo-variable $this is
not available inside the method declared as static.
@@ -47,7 +47,7 @@
- Static member example
+ Static property exampleVisibility
- The visibility of a property or method can be defined by prefixing the
- declaration with the keywords: public, protected or private. Public
- declared items can be accessed everywhere. Protected limits access to
- inherited and parent classes (and to the class that defines the item).
- Private limits visibility only to the class that defines the item.
+ The visibility of a property or method can be defined by prefixing
+ the declaration with the keywords: public, protected or
+ private. Class members declared public can be accessed
+ everywhere. Members declared protected can be accessed only within
+ the class itself and by inherited and parent classes. Members
+ declared as private may only be accessed by the class that defines
+ the member.
-
- Members Visibility
+
+ Property Visibility
- Class members must be defined with public, private, or protected.
+ Class properties must be defined with public, private, or protected.
- Member declaration
+ Property declaration
- Heredocs can not be used for initializing class members. Since PHP 5.3,
+ Heredocs can not be used for initializing class properties. Since PHP 5.3,
this limitation is valid only for heredocs containing variables.
@@ -321,7 +321,7 @@ EOD
As of PHP 5.3.0, its possible to initialize static variables and class
- members/constants using the Heredoc syntax:
+ properties/constants using the Heredoc syntax:
@@ -337,7 +337,7 @@ Nothing in here...
LABEL;
}
-// Class members/constants
+// Class properties/constants
class foo
{
const BAR = <<
Unlike heredocs, nowdocs can be used in any static data context. The
- typical example is initializing class members or constants:
+ typical example is initializing class properties or constants:
@@ -834,7 +834,7 @@ $str[strlen($str)-1] = 'e';
Objects in PHP 4 are always converted to the string
- "Object". To print the values of object members for
+ "Object". To print the values of object properties for
debugging reasons, read the paragraphs below. To get an object's class name,
use the get_class function. As of PHP 5, the
__toString method is used when