mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Remove traling whitespace to avoid unexpected changes later.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@254009 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
98a1c2bfa1
commit
776d390d42
1 changed files with 11 additions and 11 deletions
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.21 $ -->
|
||||
<!-- $Revision: 1.22 $ -->
|
||||
<sect1 xml:id="language.oop5.overloading" xmlns="http://docbook.org/ns/docbook">
|
||||
<title>Overloading</title>
|
||||
|
||||
<para>
|
||||
Both method calls and member accesses can be overloaded via the
|
||||
__call, __get and __set methods. These methods will only be
|
||||
triggered when your object or inherited object doesn't contain the
|
||||
triggered when your object or inherited object doesn't contain the
|
||||
<modifier>public</modifier> member or method you're trying to access.
|
||||
All overloading methods must not be defined as
|
||||
<link linkend="language.oop5.static">static</link>.
|
||||
|
@ -43,9 +43,9 @@
|
|||
|
||||
<para>
|
||||
Class members can be overloaded to run custom code defined in your class
|
||||
by defining these specially named methods. The <varname>$name</varname>
|
||||
by defining these specially named methods. The <varname>$name</varname>
|
||||
parameter used is the name of the variable that should be set or retrieved.
|
||||
The __set() method's <varname>$value</varname> parameter specifies the
|
||||
The __set() method's <varname>$value</varname> parameter specifies the
|
||||
value that the object should set the <varname>$name</varname>.
|
||||
</para>
|
||||
|
||||
|
@ -171,12 +171,12 @@ object(Setter)#1 (2) {
|
|||
</methodsynopsis>
|
||||
|
||||
<para>
|
||||
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
|
||||
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>
|
||||
|
||||
|
@ -233,7 +233,7 @@ array(3) {
|
|||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
|
Loading…
Reference in a new issue