davey Tue Jun 17 19:45:59 2003 EDT
Modified files:
/phpdoc/en/reference/funchand/functions register-tick-function.xml
Log:
fixed various errors and changed the wording slightly (thanks philip)
Index: phpdoc/en/reference/funchand/functions/register-tick-function.xml
diff -u phpdoc/en/reference/funchand/functions/register-tick-function.xml:1.4
phpdoc/en/reference/funchand/functions/register-tick-function.xml:1.5
--- phpdoc/en/reference/funchand/functions/register-tick-function.xml:1.4 Tue
Jun 17 19:02:06 2003
+++ phpdoc/en/reference/funchand/functions/register-tick-function.xml Tue Jun 17
19:45:58 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/funchand.xml, last change in rev 1.12 -->
<refentry id="function.register-tick-function">
<refnamediv>
@@ -19,26 +19,26 @@
Registers the function named by <parameter>func</parameter> to be
executed when a <link
linkend="control-structures.declare">tick</link> is
- called.
+ called. Also, you may pass an array consisting of an object and a
+ method as the <parameter>func</parameter>.
</simpara>
- <simpara>
- You may also pass an array consisting of an object and a method as the
<parameter>func</parameter>
- </simpara>
- <example>
- <title><function>register_tick_function</function> Example</title>
- <programlisting role="php">
+ <para>
+ <example>
+ <title><function>register_tick_function</function> example</title>
+ <programlisting role="php">
<![CDATA[
<?php
// using a function as the callback
-register_tick_function('myFunction',TRUE);
+register_tick_function('my_function', TRUE);
-// using an object->method
-$object = new myClass();
-register_tick_function(array(&$object,'myMethod'),TRUE);
+// using an object->method
+$object = new my_class();
+register_tick_function(array(&$object, 'my_method'), TRUE);
?>
]]>
- </programlisting>
- </example>
+ </programlisting>
+ </example>
+ </para>
</refsect1>
</refentry>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php