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 add a note User Contributed Notes
mikep at oeone dot com
26-Apr-2001 07: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
19-Jan-2001 08: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.