mcal_event_init> <mcal_delete_event
Last updated: Mon, 28 Dec 2009

mcal_event_add_attribute

(PHP 4)

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".



User Contributed Notes
mcal_event_add_attribute
mikep at oeone dot com
25-Apr-2001 08: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 10: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.

mcal_event_init> <mcal_delete_event
Last updated: Mon, 28 Dec 2009