reference/gearman/gearmanworker/addfunction.xml
3c0b61c45a5dabe46865510311e57b77ea3dddb7
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="gearmanworker.addfunction" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>GearmanWorker::addFunction</refname>
...
...
@@ -9,12 +8,12 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<methodsynopsis role="GearmanWorker">
13
12
<modifier>public</modifier> <type>bool</type><methodname>GearmanWorker::addFunction</methodname>
14
13
<methodparam><type>string</type><parameter>function_name</parameter></methodparam>
15
14
<methodparam><type>callable</type><parameter>function</parameter></methodparam>
16
-
<methodparam choice="opt"><type>mixed</type><parameter role="reference">context</parameter></methodparam>
17
-
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter></methodparam>
15
+
<methodparam choice="opt"><type>mixed</type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
16
+
<methodparam choice="opt"><type>int</type><parameter>timeout</parameter><initializer>0</initializer></methodparam>
18
17
</methodsynopsis>
19
18
<para>
20
19
Registers a function name with the job server and specifies a callback corresponding to that
...
...
@@ -127,7 +126,6 @@ function reverse_cb($job, &$count)
127
126
</refsect1>
128
127

129
128
</refentry>
130
-

131
129
<!-- Keep this comment at the end of the file
132
130
Local variables:
133
131
mode: sgml
134
132