6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
1/8/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#9324] Horde_Session vs Horde_Notification
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__.. .. .. . | \| |\ /|\/||__| |__/|__\ \/ | || |
Comment
>> <code> >> $events = $session['horde:notify/' . $listener . ';array']; >> $events[] = $event; >> $session['horde:notify/' . $listener . ';object'] = $events; >> </code> >> >> The entity being serialized is the array returned from the first >> assignment (and appended to on the second line). > > That's what is expected. $events is an array of Event objects. Thus > it needs to be serialized to maintain the object. > > Here's what my notification session entry looks like: > a:2:{i:0;O:30:"Horde_Core_Notification_Status":5:{s:12:"?*?_coreDict";O:25:"Horde_Translation_Gettext":2:{s:10:"?*?_domain";s:10:"Horde_Core";s:11:"?*?_gettext";b:1;}s:7:"charset";s:5:"UTF-8";s:7:"message";s:3:"foo";s:5:"flags";a:0:{}s:4:"type";s:12:"horde.notice";}i:1;O:30:"Horde_Core_Notification_Status":5:{s:12:"?*?_coreDict";O:25:"Horde_Translation_Gettext":2:{s:10:"?*?_domain";s:10:"Horde_Core";s:11:"?*?_gettext";b:1;}s:7:"charset";s:5:"UTF-8";s:7:"message";s:3:"foo";s:5:"flags";a:0:{}s:4:"type";s:12:"horde.notice";}}
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers