From ef5be14c8d0ef1d60f1463c14cefffdf0db2c788 Mon Sep 17 00:00:00 2001 From: Curt Zirzow Date: Sat, 17 Jul 2004 04:51:27 +0000 Subject: [PATCH] paamayim nekudotayim documentation. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@163487 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/paamayim-nekudotayim.xml | 92 +++++++++++++++++++++++++- 1 file changed, 90 insertions(+), 2 deletions(-) diff --git a/language/oop5/paamayim-nekudotayim.xml b/language/oop5/paamayim-nekudotayim.xml index b498d72462..6af8d734a3 100644 --- a/language/oop5/paamayim-nekudotayim.xml +++ b/language/oop5/paamayim-nekudotayim.xml @@ -1,11 +1,98 @@ - + :: + - . + The Paamayim Nekudotayim, or in simpler terms, the double colon. + This token provides a way to access static, constant or overridden members + or methods of a class. + + When referencing these items from outside the class definition, you use + name of the class. + + + + :: from outside class definition + + +]]> + + + + + Two special keywords self and parent + are used to access members or methods from inside the class definition. + + + + :: from inside the class definition + + +]]> + + + + + 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 Constructors and Destructors, Overloading and Magic method defintions as well. + + + + Calling a parent's method + +myFunc(); +?> +]]> + + @@ -29,3 +116,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> +