cvs: peardoc / manual.xml.in /en/package event.xml /en/package/event event-dispatcher.xml /en/package/event/event-dispatcher event-notification.xml
example.xml intro.xml /en/package/event/event-dispatcher/event-dispatcher addnesteddispatcher.xml addobserver.xml getinstance.xml getname.xml
post.xml removenesteddispatcher.xml removeobserver.xml setnotificationclass.xml /en/package/event/event-dispatcher/event-notification
cancelnotification.xml event-notification.xml getnotificationcount.xml getnotificationinfo.xml getnotificationname.xml getnotificationobject.xml
isnotificationcancelled.xml

From: Date: Sat, 02 Apr 2005 22:41:16 +0000
Subject: cvs: peardoc / manual.xml.in /en/package event.xml /en/package/event event-dispatcher.xml /en/package/event/event-dispatcher event-notification.xml
example.xml intro.xml /en/package/event/event-dispatcher/event-dispatcher addnesteddispatcher.xml addobserver.xml getinstance.xml getname.xml
post.xml removenesteddispatcher.xml removeobserver.xml setnotificationclass.xml /en/package/event/event-dispatcher/event-notification
cancelnotification.xml event-notification.xml getnotificationcount.xml getnotificationinfo.xml getnotificationname.xml getnotificationobject.xml
isnotificationcancelled.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5864@lists.php.net to get a copy of this message
schst Sat Apr 2 17:41:16 2005 EDT Added files: /peardoc/en/package event.xml /peardoc/en/package/event event-dispatcher.xml /peardoc/en/package/event/event-dispatcher/event-dispatcher addnesteddispatcher.xml addobserver.xml getinstance.xml getname.xml post.xml removenesteddispatcher.xml removeobserver.xml setnotificationclass.xml /peardoc/en/package/event/event-dispatcher event-notification.xml example.xml intro.xml /peardoc/en/package/event/event-dispatcher/event-notification cancelnotification.xml event-notification.xml getnotificationcount.xml getnotificationinfo.xml getnotificationname.xml getnotificationobject.xml isnotificationcancelled.xml Modified files: /peardoc manual.xml.in Log: initial documentation for Event_Dispatcher

http://cvs.php.net/diff.php/peardoc/manual.xml.in?r1=1.39&r2=1.40&ty=u Index: peardoc/manual.xml.in diff -u peardoc/manual.xml.in:1.39 peardoc/manual.xml.in:1.40 --- peardoc/manual.xml.in:1.39 Tue Mar 29 06:53:07 2005 +++ peardoc/manual.xml.in Sat Apr 2 17:41:14 2005 @@ -88,6 +88,7 @@ &package.database; &package.datetime; &package.encryption; + &package.event; &package.fileformats; &package.filesystem; &package.gtk; http://cvs.php.net/co.php/peardoc/en/package/event.xml?r=1.1&p=1 Index: peardoc/en/package/event.xml +++ peardoc/en/package/event.xml <!-- $Revision: 1.1 $ --> <chapter id="package.event"> <title>Event</title> <para> Provides packages for event based development. </para> <sect1> <title /> <simpara /> </sect1> &package.event.event-dispatcher; </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher.xml +++ peardoc/en/package/event/event-dispatcher.xml <!-- $Revision: 1.1 $ --> <sect1 id="package.event.event-dispatcher"> <title>Event_Dispatcher</title> <para> Dispatch notifications using PHP callbacks </para> &package.event.event-dispatcher.intro; &package.event.event-dispatcher.example; &package.event.event-dispatcher.event-dispatcher.getinstance; &package.event.event-dispatcher.event-dispatcher.getname; &package.event.event-dispatcher.event-dispatcher.addobserver; &package.event.event-dispatcher.event-dispatcher.removeobserver; &package.event.event-dispatcher.event-dispatcher.setnotificationclass; &package.event.event-dispatcher.event-dispatcher.post; &package.event.event-dispatcher.event-dispatcher.addnesteddispatcher; &package.event.event-dispatcher.event-dispatcher.removenesteddispatcher; &package.event.event-dispatcher.event-notification; &package.event.event-dispatcher.event-notification.event-notification; &package.event.event-dispatcher.event-notification.getnotificationname; &package.event.event-dispatcher.event-notification.getnotificationobject; &package.event.event-dispatcher.event-notification.getnotificationinfo; &package.event.event-dispatcher.event-notification.getnotificationcount; &package.event.event-dispatcher.event-notification.cancelnotification; &package.event.event-dispatcher.event-notification.isnotificationcancelled; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-dispatcher/addnesteddispatcher.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-dispatcher/addnesteddispatcher.xml +++ peardoc/en/package/event/event-dispatcher/event-dispatcher/addnesteddispatcher.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-dispatcher.addnesteddispatcher"> <refnamediv> <refname><function>Event_Dispatcher::addNestedDispatcher</function></refname> <refpurpose>Add a nested dispatcher.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Dispatcher.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Event_Dispatcher::addNestedDispatcher</function></funcdef> <paramdef>object Event_Dispatcher <parameter>&amp;$dispatcher</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-dispatcher.addnesteddispatcher.desc"> &title.desc; <para> Adds a nested dispatcher to the dispatcher. </para> <para> Nested dispatchers allow you to create event bubbling like it is implemented in Javascript. After an event has been posted to all observers of the dispatcher, it will be broadcasted to all nested dispatchers. </para> <para> If you have one dispatcher that dispatches events of a component in your framework and one dispatcher that dispatches global events that are triggered by the framework itself it could make sense that you nest these dispatchers, so that events posted by the component dispatcher will also be broadcasted to the global dispatcher. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.addnesteddispatcher.param"> &title.param; <para> <itemizedlist> <listitem> <para> object Event_Dispatcher <parameter>&amp;$dispatcher</parameter> </para> <para> Dispatcher that should be added as a nested dispatcher to the current dispatcher. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.addnesteddispatcher.return"> &title.returns; <para> <emphasis>void</emphasis> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.addnesteddispatcher.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-dispatcher/addobserver.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-dispatcher/addobserver.xml +++ peardoc/en/package/event/event-dispatcher/event-dispatcher/addobserver.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-dispatcher.addobserver"> <refnamediv> <refname><function>Event_Dispatcher::addObserver</function></refname> <refpurpose>Add a new observer.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Dispatcher.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Event_Dispatcher::addObserver</function></funcdef> <paramdef>mixed <parameter>$callback</parameter></paramdef> <paramdef>string <parameter><optional>$nName = EVENT_DISPATCHER_GLOBAL</optional></parameter></paramdef> <paramdef>string <parameter><optional>$class = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-dispatcher.addobserver.desc"> &title.desc; <para> Adds a new observer to the dispatcher. </para> <para> Observers are PHP callbacks. That means you may either pass a function name as a string or an array containing an object or class and a method to call. </para> <para> The callback is used as a signature for the observer, which allows you to remove it by passing the exact same parameters to <function>removeObserver</function>. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.addobserver.param"> &title.param; <para> <itemizedlist> <listitem> <para> mixed <parameter>$callback</parameter> </para> <para> Callback to notity, may either be a string containing the name of a global function or an array containing class or object and the name of the method to call. </para> </listitem> <listitem> <para> string <parameter><optional>$nName = EVENT_DISPATCHER_GLOBAL</optional></parameter> </para> <para> Acts as a filter: notify the observer only if the notification name matches the name passed in this parameter. Use <constant>EVENT_DISPATCHER_GLOBAL</constant> if the observer should be notified regardles of the notification name. </para> </listitem> <listitem> <para> string <parameter><optional>$class = ''</optional></parameter> </para> <para> Acts as a filter: notify the observer only if the sender of the notification matches the class passed in this parameter. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.addobserver.return"> &title.returns; <para> <emphasis>void</emphasis> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.addobserver.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-dispatcher/getinstance.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-dispatcher/getinstance.xml +++ peardoc/en/package/event/event-dispatcher/event-dispatcher/getinstance.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-dispatcher.getinstance"> <refnamediv> <refname><function>Event_Dispatcher::getInstance</function></refname> <refpurpose>Create a new Event_Dispatcher object</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Dispatcher.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object Event_Dispatcher<function>Event_Dispatcher::getInstance</function></funcdef> <paramdef>string <parameter><optional>$name = '__default'</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-dispatcher.getinstance.desc"> &title.desc; <para> Create a new Event_Dispatcher object. </para> <para> As Event_Dispatcher uses the singleton pattern, you must not use the new operator to create a new instance of Event_Dispatcher, but use <function>getInstance</function> instead. </para> <para> If you need more than one instance of Event_Dispatcher, pass different names to the method. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.getinstance.param"> &title.param; <para> <itemizedlist> <listitem> <para> string <parameter><optional>$name = '__default'</optional></parameter> </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.getinstance.return"> &title.returns; <para> <emphasis>object Event_Dispatcher</emphasis> Event_Dispatcher instance </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.getinstance.note"> &title.note; &note.shouldstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-dispatcher/getname.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-dispatcher/getname.xml +++ peardoc/en/package/event/event-dispatcher/event-dispatcher/getname.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-dispatcher.getname"> <refnamediv> <refname><function>Event_Dispatcher::getName</function></refname> <refpurpose>Get the name of the dispatcher.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Dispatcher.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>Event_Dispatcher::getName</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-dispatcher.getname.desc"> &title.desc; <para> Get the name of the dispatcher. </para> <para> The name of the dispatcher is used as a unique identifier. This is important for the methods <function>getInstance</function> and <function>removeNestedDispatcher</function>. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.getname.return"> &title.returns; <para> <emphasis>string</emphasis> name of the dispatcher </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.getname.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-dispatcher/post.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-dispatcher/post.xml +++ peardoc/en/package/event/event-dispatcher/event-dispatcher/post.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-dispatcher.post"> <refnamediv> <refname><function>Event_Dispatcher::post</function></refname> <refpurpose>Post a notification.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Dispatcher.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object Event_Notification <function>Event_Dispatcher::post</function></funcdef> <paramdef>object <parameter>&amp;$object</parameter></paramdef> <paramdef>string <parameter>$nName</parameter></paramdef> <paramdef>mixed <parameter><optional>$info = array()</optional></parameter></paramdef> <paramdef>bool <parameter><optional>$pending = &true;</optional></parameter></paramdef> <paramdef>bool <parameter><optional>$bubble = &true;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-dispatcher.post.desc"> &title.desc; <para> Post a new notification to all observers. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.post.param"> &title.param; <para> <itemizedlist> <listitem> <para> object <parameter>&amp;$object</parameter> </para> <para> Reference to the object that posts the notification (the sender). May be used to filter notifications in the callbacks. </para> </listitem> <listitem> <para> string <parameter>$nName</parameter> </para> <para> Name of the notification. </para> </listitem> <listitem> <para> mixed <parameter><optional>$info = array()</optional></parameter> </para> <para> Additional information about the notification. </para> </listitem> <listitem> <para> bool <parameter><optional>$pending = &true;</optional></parameter> </para> <para> Notifications are by default added to a pending notification list. This way, if an observer is not registered by the time they are posted, it will still be notified when it is added as an observer. </para> <para> This behaviour can be turned off in order to make sure that only the registered observers will be notified. </para> </listitem> <listitem> <para> bool <parameter><optional>$bubble = &true;</optional></parameter> </para> <para> Notifications are by default added broadcasted to any nested dispatchers that have been added using <function>addNestedDispatcher</function>. </para> <para> This behaviour can be turned off in order to make sure that only the observers added the the posting dispatcher will be notified. This allows you to differentiate between global and local notifications. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.post.return"> &title.returns; <para> <emphasis>object Event_Notification</emphasis> The notification object. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.post.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-dispatcher/removenesteddispatcher.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-dispatcher/removenesteddispatcher.xml +++ peardoc/en/package/event/event-dispatcher/event-dispatcher/removenesteddispatcher.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-dispatcher.removenesteddispatcher"> <refnamediv> <refname><function>Event_Dispatcher::removeNestedDispatcher</function></refname> <refpurpose>Remove a nested dispatcher.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Dispatcher.php'; </funcsynopsisinfo> <funcprototype> <funcdef>boolean <function>Event_Dispatcher::removeNestedDispatcher</function></funcdef> <paramdef>object Event_Dispatcher <parameter>&amp;$dispatcher</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-dispatcher.removenesteddispatcher.desc"> &title.desc; <para> Removes a nested dispatcher from the dispatcher. </para> <para> To remove a dispatcher from the list of nested dispatcher, just pass the same object to <function>removeNestedDispatcher</function>. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.removenesteddispatcher.param"> &title.param; <para> <itemizedlist> <listitem> <para> object Event_Dispatcher <parameter>&amp;$dispatcher</parameter> </para> <para> Dispatcher that should be removed from the list of nested dispatchers. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.removenesteddispatcher.return"> &title.returns; <para> <emphasis>boolean</emphasis> &true; if the dispatcher could be removed, &false; otherwise. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.removenesteddispatcher.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-dispatcher/removeobserver.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-dispatcher/removeobserver.xml +++ peardoc/en/package/event/event-dispatcher/event-dispatcher/removeobserver.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-dispatcher.removeobserver"> <refnamediv> <refname><function>Event_Dispatcher::removeObserver</function></refname> <refpurpose>Remove an observer.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Dispatcher.php'; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Event_Dispatcher::removeObserver</function></funcdef> <paramdef>mixed <parameter>$callback</parameter></paramdef> <paramdef>string <parameter><optional>$nName = EVENT_DISPATCHER_GLOBAL</optional></parameter></paramdef> <paramdef>string <parameter><optional>$class = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-dispatcher.removeobserver.desc"> &title.desc; <para> Remove an observer from dispatcher. </para> <para> To remove an observer, specify the same parameters as used in the call to <function>addObserver</function>. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.removeobserver.param"> &title.param; <para> <itemizedlist> <listitem> <para> mixed <parameter>$callback</parameter> </para> <para> Callback to notity, may either be a string containing the name of a global function or an array containing class or object and the name of the method to call. </para> </listitem> <listitem> <para> string <parameter><optional>$nName = EVENT_DISPATCHER_GLOBAL</optional></parameter> </para> <para> Acts as a filter: notify the observer only if the notification name matches the name passed in this parameter. Use <constant>EVENT_DISPATCHER_GLOBAL</constant> if the observer should be notified regardles of the notification name. </para> </listitem> <listitem> <para> string <parameter><optional>$class = ''</optional></parameter> </para> <para> Acts as a filter: notify the observer only if the sender of the notification matches the class passed in this parameter. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.removeobserver.return"> &title.returns; <para> <emphasis>bool</emphasis> &true; if the observer could be removed, &false; otherwise </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.removeobserver.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-dispatcher/setnotificationclass.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-dispatcher/setnotificationclass.xml +++ peardoc/en/package/event/event-dispatcher/event-dispatcher/setnotificationclass.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-dispatcher.setnotificationclass"> <refnamediv> <refname><function>Event_Dispatcher::setNotificationClass</function></refname> <refpurpose>Set the class that is used as notification.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Dispatcher.php'; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Event_Dispatcher::setNotificationClass</function></funcdef> <paramdef>string <parameter>$class</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-dispatcher.setnotificationclass.desc"> &title.desc; <para> Set the name of the class that will be used as a notification object when <function>post</function> is called. </para> <para> You may call this method on an object to change it for a single dispatcher or statically, to set the default for all dispatchers that will be created. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.setnotificationclass.param"> &title.param; <para> <itemizedlist> <listitem> <para> string <parameter>$class</parameter> </para> <para> Name of the class that is used as a notification container when the <function>post</function> method is called. Make sure the class is loaded before using it as notification class. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.setnotificationclass.return"> &title.returns; <para> This method always returns true. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-dispatcher.setnotificationclass.note"> &title.note; &note.canstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-notification.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-notification.xml +++ peardoc/en/package/event/event-dispatcher/event-notification.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-notification"> <refnamediv> <refname><classname>Event_Notification</classname></refname> <refpurpose>Container class for notifications.</refpurpose> </refnamediv> <refsect1 id="package.event.event-dispatcher.event-notification.desc"> &title.desc; <para> The <classname>Event_Notification</classname> class acts as a container for event information. It provides some setters and getters to access the contained information. </para> <para> If you need to store additional information about the events or provide additional features, you may change the class that is used by <classname>Event_Dispatcher</classname>, but it is recommended to extend <classname>Event_Notification</classname>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-executeMultiple-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/example.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/example.xml +++ peardoc/en/package/event/event-dispatcher/example.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.example"> <refnamediv> <refname>Examples</refname> <refpurpose>Examples for the usage of Event_Dispatcher</refpurpose> </refnamediv> <refsect1 id="package.event.event-dispatcher.example.example1"> <title>Examples usage of Event_Dispatcher</title> <simpara> The following examples show you how to use Event_Dispatcher to create more flexible applications. </simpara> <example> <title>Basic example</title> <programlisting role="php"> <![CDATA[require_once 'Event/Dispatcher.php'; /** * Dummy class that simulated authentication */ class Auth { var $_dispatcher = null; var $_user; function Auth(&$dispatcher) { $this->_dispatcher = &$dispatcher; } function login($username, $password) { // Your code that authenticates goes here // .... // imagine $this->_user contains a User object $this->_dispatcher->post($this->_user, 'onLogin'); } } function logAuth(&$notification) { $user = &$notification->getNotificationObject(); $username = $user->getUsername(); // write logfile error_log("$username logged in.", 3, '/tmp/auth.log'); } $dispatcher = &Event_Dispatcher::getInstance(); // catch all onLogin events to write a logfile $dispatcher->addObserver('logAuth', 'onLogin'); $auth = &new Auth($dispatcher); // simulate login $auth->login($_GET['user'], $_GET['pass']); ]]> </programlisting> <para> In this example, <classname>Event_Dispatcher</classname> is used to allow observers to hook into the authentication process. Whenever a user authenticates, a notification <emphasis>onLogin</emphasis> is sent. </para> <para> This can be used to write logfiles or block the application for other users. </para> </example> <example> <title>Cancelling notifications</title> <programlisting role="php"> <![CDATA[require_once 'Event/Dispatcher.php'; /** * Dummy class that simulated authentication */ class Auth { var $_dispatcher = null; var $_user; function Auth(&$dispatcher) { $this->_dispatcher = &$dispatcher; } function login($username, $password) { // Your code that authenticates goes here // .... // imagine $this->_user contains a User object $notification = $this->_dispatcher->post($this->_user, 'onLogin'); if ($notification->isNotificationCancelled()) { echo "You are not allowed to login"; $this->_user->logout(); } } } function logAuth(&$notification) { $user = &$notification->getNotificationObject(); $username = $user->getUsername(); // If a special user authenticated, cancel // the notification if ($username === 'foo') { $notification->cancelNotification(); } else { // write logfile error_log("$username logged in.", 3, '/tmp/auth.log'); } } $dispatcher = &Event_Dispatcher::getInstance(); // catch all onLogin events to write a logfile $dispatcher->addObserver('logAuth', 'onLogin'); $auth = &new Auth($dispatcher); // simulate login $auth->login($_GET['user'], $_GET['pass']); ]]> </programlisting> <para> In this case, the <function>cancelNotification</function> method is used to cancel the notification if a certain user tries to authenticate. </para> <para> The login method has been changed as well to check whether the notification has been cancelled and to take the necessary steps. </para> <para> This allows you to add some flexible rules to your authentication system. </para> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/intro.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/intro.xml +++ peardoc/en/package/event/event-dispatcher/intro.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>Introduction to Event_Dispatcher</refpurpose> </refnamediv> <refsect1 id="package.event.event-dispatcher.intro.refsect1"> <title>Introduction to Event_Dispatcher</title> <para> Event_Dispatcher acts as a notification dispatch table. It is used to notify other objects of interesting things. This information is encapsulated in Event_Notification objects. </para> <para> Client objects register themselves with the Event_Dispatcher as observers of specific notifications posted by other objects. When an event occurs, an object posts an appropriate notification to the Event_Dispatcher. The Event_Dispatcher dispatches a message to each registered observer, passing the notification as the sole argument. </para> <para> Event_Dispatchers allows you to use event bubbling similar to JavaScript's event management. If an event is not handled by the dispatcher that triggered the event, it may bubble up to the next dispatcher. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-notification/cancelnotification.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-notification/cancelnotification.xml +++ peardoc/en/package/event/event-dispatcher/event-notification/cancelnotification.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-notification.cancelnotification"> <refnamediv> <refname><function>Event_Notification::cancelNotification</function></refname> <refpurpose>Cancel the notification.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Notification.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Event_Notification::cancelNotification</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-notification.cancelnotification.desc"> &title.desc; <para> Cancels the notification. </para> <para> If a notification is cancelled, no more observers will be notified by this notification. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.cancelnotification.return"> &title.returns; <para> <emphasis>void</emphasis> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.cancelnotification.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-notification/event-notification.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-notification/event-notification.xml +++ peardoc/en/package/event/event-dispatcher/event-notification/event-notification.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-notification.event-notification"> <refnamediv> <refname><function>Event_Notification::Event_Notification</function></refname> <refpurpose>Create a new notification object.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Notification.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object Event_Notification <function>Event_Notification::Event_Notifcation</function></funcdef> <paramdef>object <parameter>&amp;$object</parameter></paramdef> <paramdef>string <parameter>$nName</parameter></paramdef> <paramdef>mixed <parameter><optional>$info = array()</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-notification.event-notification.desc"> &title.desc; <para> Constructor of the Event_Notification class. </para> <para> In most cases, you will not need to create the notification objects yourself, as this is done automatically by the <function>Event_Dispatcher::post</function> method.. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.event-notification.param"> &title.param; <para> <itemizedlist> <listitem> <para> object <parameter>&amp;$object</parameter> </para> <para> Reference to the object that posts the notification (the sender). May be used to filter notifications in the callbacks. </para> </listitem> <listitem> <para> string <parameter>$nName</parameter> </para> <para> Name of the notification. </para> </listitem> <listitem> <para> mixed <parameter><optional>$info = array()</optional></parameter> </para> <para> Additional information about the notification. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.event-notification.return"> &title.returns; <para> <emphasis>string</emphasis> name of the notification </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.event-notification.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-notification/getnotificationcount.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-notification/getnotificationcount.xml +++ peardoc/en/package/event/event-dispatcher/event-notification/getnotificationcount.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-notification.getnotificationcount"> <refnamediv> <refname><function>Event_Notification::getNotificationCount</function></refname> <refpurpose>Get number of observers notified.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Notification.php'; </funcsynopsisinfo> <funcprototype> <funcdef>int <function>Event_Notification::getNotificationCount</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationcount.desc"> &title.desc; <para> Retrieves the amount of observers that have been notified by the notification. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationcount.return"> &title.returns; <para> <emphasis>int</emphasis> number of observers notified. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationcount.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-notification/getnotificationinfo.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-notification/getnotificationinfo.xml +++ peardoc/en/package/event/event-dispatcher/event-notification/getnotificationinfo.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-notification.getnotificationinfo"> <refnamediv> <refname><function>Event_Notification::getNotificationInfo</function></refname> <refpurpose>Get additional information from the notification.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Notification.php'; </funcsynopsisinfo> <funcprototype> <funcdef>mixed <function>Event_Notification::getNotificationInfo</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationinfo.desc"> &title.desc; <para> Get additional information that has been stored in the notification. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationinfo.return"> &title.returns; <para> <emphasis>mixed</emphasis> additional information. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationinfo.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-notification/getnotificationname.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-notification/getnotificationname.xml +++ peardoc/en/package/event/event-dispatcher/event-notification/getnotificationname.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-notification.getnotificationname"> <refnamediv> <refname><function>Event_Notification::getNotificationName</function></refname> <refpurpose>Get the name of the notification.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Notification.php'; </funcsynopsisinfo> <funcprototype> <funcdef>string <function>Event_Notification::getNotificationName</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationname.desc"> &title.desc; <para> Get the name of the notification. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationname.return"> &title.returns; <para> <emphasis>string</emphasis> name of the notification </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationname.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-notification/getnotificationobject.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-notification/getnotificationobject.xml +++ peardoc/en/package/event/event-dispatcher/event-notification/getnotificationobject.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-notification.getnotificationobject"> <refnamediv> <refname><function>Event_Notification::getNotificationObject</function></refname> <refpurpose>Get the object that sent the notification.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Notification.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object <function>&amp;Event_Notification::getNotificationObject</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationobject.desc"> &title.desc; <para> Get a reference to the object that sent the notification. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationobject.return"> &title.returns; <para> <emphasis>object</emphasis> sender of the notification </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.getnotificationobject.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/co.php/peardoc/en/package/event/event-dispatcher/event-notification/isnotificationcancelled.xml?r=1.1&p=1 Index: peardoc/en/package/event/event-dispatcher/event-notification/isnotificationcancelled.xml +++ peardoc/en/package/event/event-dispatcher/event-notification/isnotificationcancelled.xml <!-- $Revision: 1.1 $ --> <refentry id="package.event.event-dispatcher.event-notification.isnotificationcancelled"> <refnamediv> <refname><function>Event_Notification::isNotificationCancelled</function></refname> <refpurpose>Check, whether notification has been cancelled.</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Event/Notification.php'; </funcsynopsisinfo> <funcprototype> <funcdef>bool <function>Event_Notification::isNotificationCancelled</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.event.event-dispatcher.event-notification.isnotificationcancelled.desc"> &title.desc; <para> Checks, whether the notification has been cancelled. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.isnotificationcancelled.return"> &title.returns; <para> <emphasis>bool</emphasis> &true; if the notification has been cancelled, &false; otherwise. </para> </refsect1> <refsect1 id="package.event.event-dispatcher.event-notification.isnotificationcancelled.note"> &title.note; &note.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=event fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.doc (#5864) next »