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

4
3
<refentry xml:id="gearmanclient.setcreatedcallback" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>GearmanClient::setCreatedCallback</refname>
...
...
@@ -9,13 +8,13 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<methodsynopsis role="GearmanClient">
13
12
<modifier>public</modifier> <type>bool</type><methodname>GearmanClient::setCreatedCallback</methodname>
14
-
<methodparam><type>string</type><parameter>callback</parameter></methodparam>
13
+
<methodparam><type>callable</type><parameter>function</parameter></methodparam>
15
14
</methodsynopsis>
16
15
<para>
17
16
Sets a function to be called when a task is received and queued by the Gearman job server.
18
-
The callback should accept a single argument, a <classname>GearmanClient</classname> oject.
17
+
The callback should accept a single argument, a <classname>GearmanTask</classname> object.
19
18
</para>
20
19
</refsect1>
21
20

...
...
@@ -24,7 +23,7 @@
24
23
<para>
25
24
<variablelist>
26
25
<varlistentry>
27
-
<term><parameter>callback</parameter></term>
26
+
<term><parameter>function</parameter></term>
28
27
<listitem>
29
28
<para>
30
29
A function to call
...
...
@@ -58,7 +57,6 @@
58
57
</refsect1>
59
58

60
59
</refentry>
61
-

62
60
<!-- Keep this comment at the end of the file
63
61
Local variables:
64
62
mode: sgml
65
63