svn: /phpdoc/en/trunk/reference/funchand/functions/ call-user-func-array.xml call-user-func.xml
| From: | Nikita Popov | Date: | Fri, 16 Dec 2011 16:22:40 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/funchand/functions/ call-user-func-array.xml call-user-func.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9221@lists.php.net to get a copy of this message | ||
nikic Fri, 16 Dec 2011 16:22:40 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=321062
Log:
Fix Doc Bug #60532: incomplete documentation
Bug: https://bugs.php.net/60532 (Open) incomplete
documentation
Changed paths:
U phpdoc/en/trunk/reference/funchand/functions/call-user-func-array.xml
U phpdoc/en/trunk/reference/funchand/functions/call-user-func.xml
Modified: phpdoc/en/trunk/reference/funchand/functions/call-user-func-array.xml
===================================================================
--- phpdoc/en/trunk/reference/funchand/functions/call-user-func-array.xml 2011-12-16 15:04:11 UTC
(rev 321061)
+++ phpdoc/en/trunk/reference/funchand/functions/call-user-func-array.xml 2011-12-16 16:22:40 UTC
(rev 321062)
@@ -3,19 +3,19 @@
<refentry xml:id="function.call-user-func-array" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>call_user_func_array</refname>
- <refpurpose>Call a user function given with an array of parameters</refpurpose>
+ <refpurpose>Call a callback with an array of parameters</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>call_user_func_array</methodname>
-
<methodparam><type>callback</type><parameter>function</parameter></methodparam>
+
<methodparam><type>callback</type><parameter>callback</parameter></methodparam>
<methodparam><type>array</type><parameter>param_arr</parameter></methodparam>
</methodsynopsis>
<para>
- Call a user defined <parameter>function</parameter> with the parameters in
- <parameter>param_arr</parameter>.
+ Calls the <parameter>callback</parameter> given by the first parameter with
+ the parameters in <parameter>param_arr</parameter>.
</para>
</refsect1>
@@ -24,10 +24,10 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>function</parameter></term>
+ <term><parameter>callback</parameter></term>
<listitem>
<para>
- The function to be called.
+ The <type>callback</type> to be called.
</para>
</listitem>
</varlistentry>
@@ -35,7 +35,7 @@
<term><parameter>param_arr</parameter></term>
<listitem>
<para>
- The parameters to be passed to the function, as an indexed array.
+ The parameters to be passed to the callback, as an indexed array.
</para>
</listitem>
</varlistentry>
@@ -46,7 +46,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns the function result, or &false; on error.
+ Returns the return value of the callback, or &false; on error.
</para>
</refsect1>
Modified: phpdoc/en/trunk/reference/funchand/functions/call-user-func.xml
===================================================================
--- phpdoc/en/trunk/reference/funchand/functions/call-user-func.xml 2011-12-16 15:04:11 UTC (rev
321061)
+++ phpdoc/en/trunk/reference/funchand/functions/call-user-func.xml 2011-12-16 16:22:40 UTC (rev
321062)
@@ -3,20 +3,20 @@
<refentry xml:id="function.call-user-func" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>call_user_func</refname>
- <refpurpose>Call a user function given by the first parameter</refpurpose>
+ <refpurpose>Call the callback given by the first parameter</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>call_user_func</methodname>
-
<methodparam><type>callback</type><parameter>function</parameter></methodparam>
+
<methodparam><type>callback</type><parameter>callback</parameter></methodparam>
<methodparam
choice="opt"><type>mixed</type><parameter>parameter</parameter></methodparam>
<methodparam
choice="opt"><type>mixed</type><parameter>...</parameter></methodparam>
</methodsynopsis>
<para>
- Call a user defined function given by the <parameter>function</parameter>
- parameter.
+ Calls the <parameter>callback</parameter> given by the first parameter and passes
+ the remaining parameters as arguments.
</para>
</refsect1>
@@ -25,14 +25,10 @@
<para>
<variablelist>
<varlistentry>
- <term><parameter>function</parameter></term>
+ <term><parameter>callback</parameter></term>
<listitem>
<para>
- The function to be called. Class methods may also be invoked
- statically using this function by passing
- <literal>array($classname, $methodname)</literal> to this parameter.
- Additionally class methods of an object instance may be called by passing
- <literal>array($objectinstance, $methodname)</literal> to this parameter.
+ The <type>callback</type> to be called.
</para>
</listitem>
</varlistentry>
@@ -40,7 +36,7 @@
<term><parameter>parameter</parameter></term>
<listitem>
<para>
- Zero or more parameters to be passed to the function.
+ Zero or more parameters to be passed to the callback.
</para>
<note>
<para>
@@ -85,7 +81,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns the function result, or &false; on error.
+ Returns the return value of the callback, or &false; on error.
</para>
</refsect1>