Date: 08/31/00
- Next message: James Moore: "[PHP-DOC] cvs: phpdoc /en/functions math.xml"
- Previous message: Luca Perugini: "[PHP-DOC] cvs: phpdoc /it/functions var.xml"
- Next in thread: Luca Perugini: "Re: [PHP-DOC] cvs: phpdoc /it/functions classobj.xml"
- Reply: Luca Perugini: "Re: [PHP-DOC] cvs: phpdoc /it/functions classobj.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
eschmid Thu Aug 31 15:00:59 2000 EDT
Modified files:
/phpdoc/it/functions classobj.xml
Log:
Removed it from classobj, in var it looks italian to me.
Index: phpdoc/it/functions/classobj.xml
diff -u phpdoc/it/functions/classobj.xml:1.3 phpdoc/it/functions/classobj.xml:1.4
--- phpdoc/it/functions/classobj.xml:1.3 Thu Aug 31 09:18:45 2000
+++ phpdoc/it/functions/classobj.xml Thu Aug 31 15:00:59 2000
@@ -388,75 +388,6 @@
</refsect1>
</refentry>
- <refentry id="function.call-user-method">
- <refnamediv>
- <refname>call_user_method</refname>
- <refpurpose>
- Call a user method on an specific object
- </refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcprototype>
- <funcdef>mixed
- <function>call_user_method</function>
- </funcdef>
- <paramdef>string
- <parameter>method_name</parameter>
- </paramdef>
- <paramdef>object
- <parameter>obj</parameter>
- </paramdef>
- <paramdef>mixed
- <parameter><optional>parameter</optional></parameter>
- </paramdef>
- <paramdef>mixed
- <parameter><optional>...</optional></parameter>
- </paramdef>
- </funcprototype>
- </funcsynopsis>
- <para>
- Calls a the method referred by <parameter>method_name</parameter> from
- the user defined <parameter>obj</parameter> object. An example of usage
- is below, where we define a class, instantiate an object and use
- <function>call_user_method</function> to call indirectly its
- <varname>print_info</varname> method.
- <informalexample>
- <programlisting role="php">
-<?php
-class Country {
- var $NAME;
- var $TLD;
-
- function Country($name, $tld) {
- $this->NAME = $name;
- $this->TLD = $tld;
- }
-
- function print_info($prestr="") {
- echo $prestr."Country: ".$this->NAME."\n";
- echo $prestr."Top Level Domain: ".$this->TLD."\n";
- }
-}
-
-$cntry = new Country("Peru","pe");
-
-echo "* Calling the object method directly\n";
-$cntry->print_info();
-
-echo "\n* Calling the same method indirectly\n";
-call_user_method ("print_info", $cntry, "\t");
-?>
- </programlisting>
- </informalexample>
- </para>
- <simpara>
- See also <function>call_user_func</function>.
- </simpara>
- </refsect1>
- </refentry>
-
</reference>
<!-- Keep this comment at the end of the file
- Next message: James Moore: "[PHP-DOC] cvs: phpdoc /en/functions math.xml"
- Previous message: Luca Perugini: "[PHP-DOC] cvs: phpdoc /it/functions var.xml"
- Next in thread: Luca Perugini: "Re: [PHP-DOC] cvs: phpdoc /it/functions classobj.xml"
- Reply: Luca Perugini: "Re: [PHP-DOC] cvs: phpdoc /it/functions classobj.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

