cvs: phpdoc /en/reference/ibase/functions ibase-set-event-handler.xml

From: Date: Thu, 15 Jan 2004 12:42:34 +0000
Subject: cvs: phpdoc /en/reference/ibase/functions ibase-set-event-handler.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358203@lists.php.net to get a copy of this message
didou Thu Jan 15 07:42:34 2004 EDT Modified files: /phpdoc/en/reference/ibase/functions ibase-set-event-handler.xml Log: CS : Function declarations follow the 'one true brace' convention Index: phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml diff -u phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.5 phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.6 --- phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml:1.5 Mon Dec 15 11:50:37 2003 +++ phpdoc/en/reference/ibase/functions/ibase-set-event-handler.xml Thu Jan 15 07:42:34 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <refentry id="function.ibase-set-event-handler"> <refnamediv> <refname>ibase_set_event_handler</refname> @@ -29,17 +29,18 @@ <![CDATA[ <?php - function event_handler($event_name, $link) { - if ($event_name=="NEW ORDER") { - // process new order - ibase_query($link, "UPDATE orders SET status='handled'"); - } else if ($event_name=="DB_SHUTDOWN") { - // free event handler - return false; - } +function event_handler($event_name, $link) +{ + if ($event_name=="NEW ORDER") { + // process new order + ibase_query($link, "UPDATE orders SET status='handled'"); + } else if ($event_name=="DB_SHUTDOWN") { + // free event handler + return false; } +} - ibase_set_event_handler($link, "event_handler", "NEW_ORDER", "DB_SHUTDOWN"); +ibase_set_event_handler($link, "event_handler", "NEW_ORDER", "DB_SHUTDOWN"); ?> ]]> </programlisting>

« previous php.doc (#969358203) next »