PHP: mcal_event_add_attribute - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

mcal_event_init mcal_delete_event

Last updated: Fri, 26 Jan 2007

view this page in

# mcal_event_add_attribute

(PHP 3 >= 3.0.15, PHP 4, PECL)

mcal_event_add_attribute -- Adds an attribute and a value to the streams global event structure

## Description

bool mcal_event_add_attribute ( int stream, string attribute, string value )

mcal_event_add_attribute() adds an attribute to the stream's global event structure with the value given by "value".

add a note User Contributed Notes
mcal_event_add_attribute
mikep at oeone dot com
25-Apr-2001 04:01
`Actually, they are returned as part of the "attrlist" attribute of the object which gets returned from fetch_event.
This code might help people:
$event=mcal_fetch_event($this->Stream,$EventID);
$AttributeArray = $event->attrlist;
if (is_array($AttributeArray))
{
foreach ($AttributeArray as $key=>$value)
{
echo " Event['".$key."'] = '" . $value ."';\n";
}
}`
wokzilla at wokzilla dot com
18-Jan-2001 04:14
`This might useful if there was a mcal_event_get_attribute function. There doesn't seem to be any way to get at the attribute the next time you access the calendar.`
add a note
mcal_event_init mcal_delete_event

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST