cvs: phpdoc /en/reference/overload reference.xml

From: Date: Thu, 01 Aug 2002 23:03:48 +0000
Subject: cvs: phpdoc /en/reference/overload reference.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969347752@lists.php.net to get a copy of this message
betz Thu Aug 1 19:03:48 2002 EDT Modified files: /phpdoc/en/reference/overload reference.xml Log: new structure applied Index: phpdoc/en/reference/overload/reference.xml diff -u phpdoc/en/reference/overload/reference.xml:1.1 phpdoc/en/reference/overload/reference.xml:1.2 --- phpdoc/en/reference/overload/reference.xml:1.1 Sun Apr 14 20:08:25 2002 +++ phpdoc/en/reference/overload/reference.xml Thu Aug 1 19:03:48 2002 @@ -1,30 +1,63 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <reference id="ref.overload"> <title>Object property and method call overloading</title> <titleabbrev>Object overloading</titleabbrev> - <partintro id="overload.partintro"> - &warn.experimental; - <para> - The purpose of this extension is to allow overloading of object - property access and method calls. Only one function is defined - in this extension, <function>overload</function> which - takes the name of the class that should have this functionality - enabled. The class named has to define appropriate methods if - it wants to have this functionality: <literal>__get()</literal>, - <literal>__set()</literal> and <literal>__call()</literal> - respectively for getting/setting a property, or calling a method. - This way overloading can be selective. Inside these handler - functions the overloading is disabled so you can access object - properties normally. - </para> - <para> - Some simple examples on using the <function>overload</function> - function: - <example> - <title>Overloading a PHP class</title> - <programlisting role="php"> + <partintro> + + <section id="overload.intro"> + &reftitle.intro; + <para> + The purpose of this extension is to allow overloading of object + property access and method calls. Only one function is defined + in this extension, <function>overload</function> which + takes the name of the class that should have this functionality + enabled. The class named has to define appropriate methods if + it wants to have this functionality: <literal>__get()</literal>, + <literal>__set()</literal> and <literal>__call()</literal> + respectively for getting/setting a property, or calling a method. + This way overloading can be selective. Inside these handler + functions the overloading is disabled so you can access object + properties normally. + </para> + &warn.experimental; + </section> + + <section id="overload.requirenments"> + &reftitle.required; + &no.requirement; + </section> + + <section id="overload.installation"> + &reftitle.install; + <para> + </para> + </section> + + <section id="overload.configuration"> + &reftitle.runtime; + &no.config; + </section> + + <section id="overload.resources"> + &reftitle.resources; + &no.resource; + </section> + + <section id="overload.constants"> + &reftitle.constants; + &no.constants; + </section> + + <section id="overload.examples"> + &reftitle.examples; + <para> + Some simple examples on using the <function>overload</function> + function: + <example> + <title>Overloading a PHP class</title> + <programlisting role="php"> <![CDATA[ <?php @@ -76,20 +109,21 @@ ?> ]]> - </programlisting> - </example> - </para> - <warning> - <para> - As this is an experimental extension, not all things - work. There is no <literal>__call()</literal> support - currently, you can only overload the get and set - operations for properties. You cannot invoke the - original overloading handlers of the class, and - <literal>__set()</literal> only works to one level - of property access. + </programlisting> + </example> </para> - </warning> + <warning> + <para> + As this is an experimental extension, not all things + work. There is no <literal>__call()</literal> support + currently, you can only overload the get and set + operations for properties. You cannot invoke the + original overloading handlers of the class, and + <literal>__set()</literal> only works to one level + of property access. + </para> + </warning> + </section> </partintro> &reference.overload.functions;

« previous php.doc (#969347752) next »