colder Thu Jan 18 22:34:53 2007 UTC
Modified files: /phpdoc/en/language/oop5 overloading.xml Log: Implement Marcus' suggestion to improve the paragraph on method overloading http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/overloading.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/language/oop5/overloading.xml diff -u phpdoc/en/language/oop5/overloading.xml:1.14 phpdoc/en/language/oop5/overloading.xml:1.15 --- phpdoc/en/language/oop5/overloading.xml:1.14 Thu Jan 11 23:05:52 2007 +++ phpdoc/en/language/oop5/overloading.xml Thu Jan 18 22:34:53 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> +<!-- $Revision: 1.15 $ --> <sect1 id="language.oop5.overloading"> <title>Overloading</title> @@ -164,13 +164,13 @@ </methodsynopsis> <para> - Class methods can be overloaded to run custom code defined in your class - by defining this specially named method. The <varname>$name</varname> - parameter used is the name as the function name that was requested - to be used. The arguments that were passed in the function will be - defined as an array in the <varname>$arguments</varname> parameter. - The value returned from the __call() method will be returned to the - caller of the method. + The magic method __call() allows to capture invocation of non existing + methods. That way __call() can be used to implement user defined method + handling that depends on the name of the actual method being called. This + is for instance useful for proxy implementations. The arguments that were + passed in the function will be defined as an array in the + <varname>$arguments</varname> parameter. The value returned from the + __call() method will be returned to the caller of the method. </para> <example>