reference/funchand/functions/register-tick-function.xml
e72a6312b92af40004161b6a8843f18e08fcc5d5
...
...
@@ -10,12 +10,11 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>register_tick_function</methodname>
13
-
<methodparam><type>callable</type><parameter>function</parameter></methodparam>
14
-
<methodparam choice="opt"><type>mixed</type><parameter>arg</parameter></methodparam>
15
-
<methodparam choice="opt"><type>mixed</type><parameter>...</parameter></methodparam>
13
+
<methodparam><type>callable</type><parameter>callback</parameter></methodparam>
14
+
<methodparam rep="repeat"><type>mixed</type><parameter>args</parameter></methodparam>
16
15
</methodsynopsis>
17
16
<simpara>
18
-
Registers the given <parameter>function</parameter> to be executed when a
17
+
Registers the given <parameter>callback</parameter> to be executed when a
19
18
<link linkend="control-structures.declare.ticks">tick</link> is called.
20
19
</simpara>
21
20
</refsect1>
...
...
@@ -25,23 +24,15 @@
25
24
<para>
26
25
<variablelist>
27
26
<varlistentry>
28
-
<term><parameter>function</parameter></term>
27
+
<term><parameter>callback</parameter></term>
29
28
<listitem>
30
29
<para>
31
-
The function name as a string, or an array consisting of an object and
32
-
a method.
30
+
The function to register.
33
31
</para>
34
32
</listitem>
35
33
</varlistentry>
36
34
<varlistentry>
37
-
<term><parameter>arg</parameter></term>
38
-
<listitem>
39
-
<para>
40
-
</para>
41
-
</listitem>
42
-
</varlistentry>
43
-
<varlistentry>
44
-
<term><parameter>...</parameter></term>
35
+
<term><parameter>args</parameter></term>
45
36
<listitem>
46
37
<para>
47
38
</para>
...
...
@@ -73,7 +64,7 @@ register_tick_function('my_function', true);
73
64

74
65
// using an object->method
75
66
$object = new my_class();
76
-
register_tick_function(array(&$object, 'my_method'), true);
67
+
register_tick_function(array($object, 'my_method'), true);
77
68
?>
78
69
]]>
79
70
</programlisting>
...
...
@@ -81,40 +72,6 @@ register_tick_function(array(&$object, 'my_method'), true);
81
72
</para>
82
73
</refsect1>
83
74

84
-
<refsect1 role="changelog">
85
-
&reftitle.changelog;
86
-
<para>
87
-
<informaltable>
88
-
<tgroup cols="2">
89
-
<thead>
90
-
<row>
91
-
<entry>&Version;</entry>
92
-
<entry>&Description;</entry>
93
-
</row>
94
-
</thead>
95
-
<tbody>
96
-
<row>
97
-
<entry>5.3.0</entry>
98
-
<entry>
99
-
Ticks are now supported on threaded web server modules.
100
-
</entry>
101
-
</row>
102
-
</tbody>
103
-
</tgroup>
104
-
</informaltable>
105
-
</para>
106
-
</refsect1>
107
-

108
-
<refsect1 role="notes">
109
-
&reftitle.notes;
110
-
<warning>
111
-
<para>
112
-
<function>register_tick_function</function> should not be used with
113
-
threaded web server modules with PHP 5.2 or lower.
114
-
</para>
115
-
</warning>
116
-
</refsect1>
117
-

118
75
<refsect1 role="seealso">
119
76
&reftitle.seealso;
120
77
<para>
...
...
@@ -126,7 +83,6 @@ register_tick_function(array(&$object, 'my_method'), true);
126
83
</refsect1>
127
84

128
85
</refentry>
129
-

130
86
<!-- Keep this comment at the end of the file
131
87
Local variables:
132
88
mode: sgml
133
89