Revisions for framework/Notification/Notification.php

Location: [ Horde ] / framework / Notification / Notification.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.46.2.16 FRAMEWORK_3 (+13 -13 lines) 07/03/2008 05:55 PM Chuck Hagenbuch chuck

MFH 1.69

Tags: HORDE_3_3, HORDE_3_3_RC1

1.69 (+13 -13 lines) 07/03/2008 05:45 PM Chuck Hagenbuch chuck

PHPDoc fix
Submitted by: Craig Nuttall <craig@bluestatedigital.com>

1.46.2.15 FRAMEWORK_3 (+2 -2 lines) 06/07/2008 12:07 PM Chuck Hagenbuch chuck

MFH:
1.432     +2 -2      framework/Form/Form.php
1.113     +3 -3      framework/Group/Group.php
1.61      +3 -3      framework/History/History.php
1.680     +5 -5      framework/Horde/Horde.php
1.24      +14 -14    framework/Kolab/Kolab/IMAP.php
1.9       +10 -9     framework/Kolab/Kolab/LDAP.php
1.68      +2 -2      framework/Notification/Notification.php
1.103     +2 -2      framework/Perms/Perms.php
1.175     +2 -2      framework/UI/UI/VarRenderer/html.php
1.27      +3 -6      framework/VC/VC.php

Tags: HORDE_3_2_2, HORDE_3_2_1

1.68 (+2 -2 lines) 06/07/2008 12:00 PM Chuck Hagenbuch chuck

Last round of singleton/reference fixes. I'm so looking forward to cleaning this
stuff up with PHP 5+ code.
Bug: 6837
Submitted by: Thomas Jarosch <thomas (dot) jarosch (at) intra2net (dot) com>

1.46.2.14 FRAMEWORK_3 (+2 -2 lines) 01/02/2008 06:30 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_2, HORDE_3_2_RC4, HORDE_3_2_RC3, HORDE_3_2_RC2

1.67 (+2 -2 lines) 01/02/2008 06:12 AM Jan Schneider jan

Happy New Year

1.46.2.13 FRAMEWORK_3 (+34 -9 lines) 12/20/2007 08:49 AM Jan Schneider jan

Merge from HEAD.

1.66 (+2 -3 lines) 06/18/2007 12:04 PM Chuck Hagenbuch chuck

We may as well just check against $this->_alarm here instead of re-checking the conf. Might fix issues where Horde_Alarm::factory fails or other stuff happens.
Bug: 5340

Tags: BEFORE_MERGE_3_2, HORDE_3_2_RC1, HORDE_3_2_ALPHA

1.65 (+13 -7 lines) 04/08/2007 12:19 PM Chuck Hagenbuch chuck

Small cleanups

1.64 (+4 -2 lines) 02/01/2007 05:02 PM Chuck Hagenbuch chuck

Add another check to make sure the listener is there; I was getting an
undefined audio listener on most non-IMP pages (causing a fatal
error).

1.63 (+3 -3 lines) 02/01/2007 09:09 AM Jan Schneider jan

Typos

1.62 (+7 -4 lines) 02/01/2007 08:44 AM Jan Schneider jan

Add configuration for Horde_Alarm.

1.61 (+2 -5 lines) 01/30/2007 12:23 PM Jan Schneider jan

Don't show errors from the Horde_Alarm backend.

1.60 (+19 -1 lines) 01/29/2007 08:27 PM Jan Schneider jan

Add support for Horde_Alarm.

1.46.2.12 FRAMEWORK_3 (+2 -2 lines) 01/02/2007 08:54 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_1_9, HORDE_3_1_8, HORDE_3_1_7, HORDE_3_1_6, HORDE_3_1_5, HORDE_3_1_4, HORDE_3_1_4_RC1

1.59 (+2 -2 lines) 01/02/2007 07:47 AM Jan Schneider jan

Happy New Year

1.58 (+2 -2 lines) 01/01/2007 07:40 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.57 (+2 -2 lines) 04/27/2006 10:19 PM Chuck Hagenbuch chuck

Don't silence includes, don't return references where not needed.

1.46.2.11 FRAMEWORK_3 (+3 -3 lines) 01/18/2006 10:19 AM Jan Schneider jan

MFH: 1.56

Tags: HORDE_3_1_3, HORDE_3_1_2, HORDE_3_1_1, HORDE_3_1, HORDE_3_1_RC3, HORDE_3_1_RC2

1.56 (+3 -3 lines) 01/18/2006 10:13 AM Jan Schneider jan

Be more gentle when attaching not existing notification listeners.

1.46.2.10 FRAMEWORK_3 (+2 -2 lines) 01/01/2006 04:28 PM Jan Schneider jan

Happy new year

Tags: HORDE_3_1_RC1

1.55 (+2 -2 lines) 01/01/2006 04:10 PM Jan Schneider jan

Happy new year\!

1.46.2.9 FRAMEWORK_3 (+1 -3 lines) 10/26/2005 02:25 PM Michael M Slusarz slusarz

MFH: Remove obsolete @since tags.

1.54 (+1 -3 lines) 10/26/2005 02:22 PM Michael M Slusarz slusarz

Remove obsolete @since tags.

1.46.2.8 FRAMEWORK_3 (+1 -1 lines) 10/18/2005 07:01 AM Jan Schneider jan

Merged from HEAD.

1.46.2.7 FRAMEWORK_3 (+8 -3 lines) 07/23/2005 12:53 PM Jan Schneider jan

MFH: 1.53

Tags: HORDE_3_0_12, HORDE_3_0_11, HORDE_3_0_10, HORDE_3_0_9, HORDE_3_0_8, HORDE_3_0_7, HORDE_3_0_6, HORDE_3_0_6_RC1, HORDE_3_0_5

1.53 (+8 -3 lines) 07/23/2005 12:46 PM Jan Schneider jan

Fix logic when to change the message type.

Tags: BEFORE_MERGE_3_1

1.46.2.6 FRAMEWORK_3 (+2 -1 lines) 07/23/2005 06:24 AM Jan Schneider jan

MFH: 1.52

1.52 (+1 -0 lines) 07/23/2005 05:56 AM Jan Schneider jan

Make sure that PEAR_Errors pushed on the notification stack get a message level of horde.error.

1.46.2.5 FRAMEWORK_3 (+2 -2 lines) 07/11/2005 01:10 PM Jan Schneider jan

MFH: 1.51

Tags: HORDE_3_0_5_RC2, HORDE_3_0_5_RC1

1.51 (+2 -2 lines) 07/11/2005 01:04 PM Jan Schneider jan

Fix assign-by-reference and return-by-reference at several places, to comply with BC breaking PHP 4.4 and 5.1. *sigh*

1.46.2.4 FRAMEWORK_3 (+2 -10 lines) 07/03/2005 01:11 AM Matt Selsky selsky

MFH: Remove "@access public" and fix wrapping.

1.50 (+2 -10 lines) 07/03/2005 01:07 AM Matt Selsky selsky

Remove "@access public" and fix wrapping.

1.46.2.3 FRAMEWORK_3 (+4 -4 lines) 06/08/2005 12:33 AM Matt Selsky selsky

MFH: Remove object keywords from phpdoc.

1.49 (+4 -4 lines) 06/08/2005 12:22 AM Matt Selsky selsky

Remove object keywords from phpdoc.

1.46.2.2 FRAMEWORK_3 (+22 -25 lines) 05/09/2005 10:11 PM Matt Selsky selsky

MFH: "optional" not needed in phpdoc.

1.48 (+22 -25 lines) 05/09/2005 10:09 PM Matt Selsky selsky

"optional" not needed in phpdoc.

1.47 (+1 -1 lines) 01/03/2005 08:09 AM Jan Schneider jan

Happy New Year

1.46.2.1 FRAMEWORK_3 (+2 -2 lines) 01/03/2005 07:19 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_0_4, HORDE_3_0_4_RC2, HORDE_3_0_4_RC1, HORDE_3_0_3, HORDE_3_0_3_RC1, HORDE_3_0_2, HORDE_3_0_1

1.46 (+1 -2 lines) 12/18/2004 01:16 PM Chuck Hagenbuch chuck

Make sure to display userinfo from PEAR_Error objects when it's there.

(also removing @version tags as I go since they just cause extra
changes between revisions, aren't useful as standalone version
numbers, and duplicate the $Horde: $ tags anyway.)

Tags: FRAMEWORK_3, HORDE_3_0

1.45 (+30 -19 lines) 09/07/2004 10:48 AM Jan Schneider jan

Allow to specify the message stack where the messages get stored to allow more
then one notification queue.

Tags: HORDE_3_0_RC3

1.44 (+5 -8 lines) 06/30/2004 06:47 AM Jan Schneider jan

Revert, this doesn't make much sense really.

1.43 (+3 -3 lines) 06/29/2004 11:29 AM Jan Schneider jan

Fix log constant name.

1.42 (+8 -5 lines) 06/29/2004 11:27 AM Jan Schneider jan

Log more events.

1.41 (+3 -6 lines) 03/09/2004 02:38 AM jon

Remove the 'markup.*' flags and introduce a 'content.raw' flag.  If set,
this flag will prevent the message text from being filtered by the
listener.  For now, this is more of a hint than anything; we defer to the
listeners to do the right thing.

Tags: HORDE_3_0_ALPHA

1.40 (+10 -4 lines) 03/07/2004 03:18 AM jon

Introducing an (optional) array of flags that can be pushed onto the
message stack alongside the event.

The flags are represented by strings that follow a simple namespace
convention.  At the moment, only the 'markup.' namespace is used.  If no
flags are specified, the 'markup.plain' flag is set.

The listeners have been updated to behave according to these flags.  The
'mobile' and 'javascript' listeners now always strip tags and encode
entities found in the message text.  The 'status' listener will only
encode entities if 'markup.plain' is specified.

While the basic plumbing is stable, I would consider the flags and their
behaviors to be subject to change.  For example, instead of using flags to
describe the content of the event text, it might make sense to have them
control the types of conversions that should be performed.  More
discussion on this topic will be needed before this part of the API
stabilizes.

1.39 (+6 -5 lines) 03/07/2004 12:49 AM jon

Friendlier 80 column formatting.

1.38 (+9 -4 lines) 01/18/2004 06:51 PM Jan Schneider jan

Add a 'listeners' option to the notify() method to only get message from the specified message stacks.

1.37 (+3 -3 lines) 01/17/2004 06:27 AM Jan Schneider jan

Typo

1.36 (+3 -3 lines) 01/01/2004 10:15 AM Jan Schneider jan

Happy new year everyone.

1.35 (+25 -5 lines) 12/28/2003 09:31 PM Chuck Hagenbuch chuck

detach() method

Submitted by: steve <mailling@gmx.co.uk>

1.34 (+5 -5 lines) 12/27/2003 08:37 AM Chuck Hagenbuch chuck

avoid array_key_exists

1.33 (+5 -6 lines) 11/08/2003 04:36 PM mdjukic

nits

1.32 (+3 -3 lines) 11/06/2003 02:44 PM Chuck Hagenbuch chuck

More attempts to fix @package tags and at least organize everything
correctly.

1.31 (+5 -3 lines) 10/03/2003 10:53 AM John Morrissey jwm

Silence a warning when calling count() outside of an established session,
such as in a login page.

1.30 (+3 -3 lines) 09/22/2003 09:59 AM Jan Schneider jan

Remove unnecessary String:: calls.

1.29 (+3 -3 lines) 06/19/2003 02:47 PM Chuck Hagenbuch chuck

LOG_* constants -> PEAR_LOG_*

1.28 (+7 -3 lines) 06/06/2003 11:22 AM Jan Schneider jan

If the notification object is a PEAR_Error, send it to the log with priority
LOG_DEBUG.

1.27 (+4 -3 lines) 05/15/2003 10:46 AM Chuck Hagenbuch chuck

Return a reference to the newly created/attached listener.

1.26 (+6 -2 lines) 04/12/2003 06:55 AM bjn

Clarification (thanks Chuck).

1.25 (+4 -3 lines) 02/04/2003 03:29 PM Chuck Hagenbuch chuck

allow pushing PEAR_Error objects directly onto a notification stack.

1.8.2.8 RELENG_2 (+9 -1 lines) 01/17/2003 05:22 AM Jan Schneider jan

phpdoc

Tags: HORDE_2_2_4_RC2, HORDE_2_2_4_RC1, HORDE_2_2_4, HORDE_2_2_3, HORDE_2_2_2, HORDE_2_2_1, HORDE_2_2_1_RC1, HORDE_2_2

1.24 (+16 -7 lines) 01/16/2003 01:36 PM Chuck Hagenbuch chuck

Revision of the Notification system to pass Notification_Event objects
instead of just text messages. This allows for much more sophisticated
Notification_Listener subclasses in the future. The changes are all
backwards compatible; Notification_Event objects are created
transparently if needed.

Submitted by: Hans Lellelid <hans@appliedsec.com>

1.23 (+3 -3 lines) 01/06/2003 04:36 AM Jan Schneider jan

Rename String::strtolower() to String::lower() and strtoupper() to upper().

1.22 (+3 -3 lines) 01/04/2003 09:09 PM Jan Schneider jan

Add String:: class and move all string manipulation methods from NLS:: to
String::

1.21 (+4 -2 lines) 01/03/2003 10:20 AM Jan Schneider jan

Add and fix @since tags.

1.8.2.7 RELENG_2 (+1 -1 lines) 01/03/2003 07:48 AM Jan Schneider jan

Bump year.

Tags: HORDE_2_2_RC2, HORDE_2_2_RC1

1.20 (+3 -3 lines) 01/02/2003 09:32 PM Jan Schneider jan

Bump year.

1.19 (+3 -3 lines) 12/29/2002 07:55 AM Jan Schneider jan

More strtolower() replacements.

1.18 (+3 -3 lines) 12/27/2002 03:51 PM Michael M Slusarz slusarz

static variables "forget" references.

1.17 (+60 -43 lines) 12/26/2002 08:38 PM Michael M Slusarz slusarz

phpdoc, private variable naming, some code cleanups.

1.16 (+6 -4 lines) 11/11/2002 12:35 PM Jan Schneider jan

Add optional parameter to Notification::notify() that gets passed to the
listeners' notify() method.
Add 'nospace' option to status listener.

1.8.2.6 RELENG_2 (+3 -3 lines) 09/13/2002 05:42 PM Jan Schneider jan

Bump version numbers. We very likely will never have x.x.1 releases.

1.8.2.5 RELENG_2 (+19 -2 lines) 08/28/2002 03:21 PM Jan Schneider jan

MFH: Add Notification::count()

1.15 (+7 -9 lines) 08/12/2002 08:07 PM Chuck Hagenbuch chuck

unify comment

1.8.2.4 RELENG_2 (+9 -2 lines) 07/26/2002 07:08 PM Jan Schneider jan

MFH: Added LGPL license information to the top of all Horde library files.

1.14 (+9 -2 lines) 07/26/2002 03:58 PM Michael M Slusarz slusarz

Added LGPL license information (per CODING_STANDARDS) to the top of all
Horde library files.  My fingers hurt.

1.13 (+18 -2 lines) 07/03/2002 12:44 AM Chuck Hagenbuch chuck

add count method.

1.8.2.3 RELENG_2 (+4 -4 lines) 06/19/2002 10:58 AM Jan Schneider jan

Use superglobal arrays.

Submitted by: Nuno Loureiro <nuno@co.eth.pt>

1.12 (+3 -3 lines) 06/14/2002 01:57 PM Chuck Hagenbuch chuck

Remove most instances of @ before include_once or require_once. We'll
probably want to trap some of these potential errors and handle them
more gracefully, but hiding them this way can make things like a
syntax error in a config file _very_ opaque and hard to debug.

1.11 (+16 -28 lines) 06/06/2002 04:51 PM Chuck Hagenbuch chuck

some updates to the notification system:

- there is now a Notification_Listener class that all listeners must extend.
- Listeners are only passed messages with types that they can handle.
- simplify session code by using $_SESSION
- some minor cleanups.

This doesn't affect the code using the API, just classes that extended it. It's
mostly internal reorganization intended to make it easier to use the Notification
system for other things.

1.10 (+4 -4 lines) 04/23/2002 05:28 AM Jan Schneider jan

The last bunch of superglobals patches.

Submitted by: Nuno Loureiro <nuno@eth.pt>

1.8.2.2 RELENG_2 (+9 -9 lines) 04/04/2002 08:24 PM jon

Kill trailing whitespace (to reduce diffs with HEAD).

Tags: HORDE_2_1, HORDE_2_1_RC3, HORDE_2_1_RC2

1.9 (+9 -9 lines) 03/21/2002 11:41 AM jon

Kill trailing whitespace.

1.8.2.1 RELENG_2 (+2 -2 lines) 03/08/2002 01:06 PM Chuck Hagenbuch chuck

MFH: add libraries from HEAD. These won't necessarily be used by any of the
release apps, but should be there to make Horde 2.1 a more complete
development platform.

Tags: HORDE_2_1_RC1

1.8 (+3 -3 lines) 03/08/2002 12:12 AM jon

Horde::fatal() expects a PEAR_Error object as its first parameter.

Tags: RELENG_2

1.7 (+14 -10 lines) 01/29/2002 10:23 AM Chuck Hagenbuch chuck

The message stack wasn't correctly persistent when register_globals was Off,
but it didn't shift things correctly when it was On. It works for both cases
now.

1.6 (+4 -2 lines) 01/29/2002 08:48 AM Jan Schneider jan

The message stack must be in the global scope.

1.5 (+6 -12 lines) 01/27/2002 09:36 PM Chuck Hagenbuch chuck

Listeners shouldn't have to know how the message stack is stored - pass it
to them.

We also now pass the message stacks to all listeners.

1.4 (+7 -7 lines) 01/26/2002 10:20 PM Chuck Hagenbuch chuck

Replace the HORDE_* constants with 'horde.*'.

1.3 (+74 -55 lines) 01/24/2002 12:19 AM Chuck Hagenbuch chuck

cleanup, naming changes, etc. (this is really a subject/observer pattern;
I've named things accordingly)

1.2 (+4 -4 lines) 01/10/2002 05:48 AM Jan Schneider jan

Fix the "Notification target status not found" bug.

1.1 01/09/2002 08:43 AM Jan Schneider jan

Beginning of a notification framework that supports multiple notification
targets. Currently there's only the 'status' target that actually does
what the status.php files do.
You can push messages on any target's message stack and these targets can
do whatever they are intended to do with these messages. I think of email
or pager notification for example.
I chose Kronolith as the first application to test this on because it has
some special message types and shows how this framework can be extended by
an application.