eicnvutils Class Reference

List of all members.

Detailed Description

Common utility routines to manipulate iCalendar components and fields in an EGroupware context.

Synopsis

To illustrate just a few of the many conversion routines in this library, lets take as example a piece from a task to VTODO conversion routine. In this piece of code the 'info_responsible' field from an Egw task element is used to set the ATTENDEE field of a newly constructed VTODO element.

First setup the basic objects we need: we create an egw resource, read a task from it, create a vtodo object and create a conversion library object (because not all the conversion routines can yet be called as class methods):

  $binf =& CreateObject('infolog.boinfolog');        
  $task = $binf->read(1233);
  ....
  $vtodo = Horde_iCalendar::newComponent('VTODO',....);
  ...
  $eicnv =& CreateObject('egwical.eicnvutils');

Now we use three routines from our class to fill the ATTENDEE attribute of $vtodo with info for the first responsible person we found in the task in $task.

 $actor1_id  = $task['info_responsible'][0];

 $propval    = $eicnv->mki_v_CAL_ADDRESS($actor1_id);
 $propparams = $eicnv->mki_p_CN($actor1_id);

 $eicnv->updi_c_addAttribute($vtodo,'ATTENDEE',$propval,$propparams);
It is done by reading the first person identifier from the info_responsible field of the task and then using this id to get an email address as vtodo property value (by use of the method mki_v_CAL_ADDRESS()) and a full Calendar Name as vtodo parameter (by use of the method mki_p_CN()). Finally the property value and the property parameters are added to the new vtodo element by use of the updi_c_addAttribute() routine.

As a result of this code you might find in the printed variant of $vtodo a line added like:

BEGIN:VTODO
...
ATTENDEE;CN=Paul Demoman:MAILTO:paul@demoland.org
...
END:VTODO

Conversion Routines API method names

Developers of Concrete subclasses of egwical_resourcehandler: that is classes that will handle the transport of a specific type of Vcal Element (like VEVENTs) to specific Egw Elements (like e.g. calendar events), can profitably use the set auxiliary conversion methods that the eicnvutils provides. This class should be used as a kind of (read only) library: no state is needed. The members of this class are only used as constants. So one instance should do for multiple worker objects that used it. No need to duplicate it.

Most of the utility methods that are provideda follow a generic naming scheme based on their functionality. The generic prefixes are:

Note:
many of the conversion methods can be called as class methods, i.e. without the need for an instance of this class. Some though use data in the instance variables (like conversion tables) that need to be initializes by the constructor. In the the functions callable as class method (i.e. as eicnvutils::method_x(...)) are labeled as such. You dont need more than a singleton of the class egwical.eicnvutils though, as it carries no state.

Background literature for ICalendar conversions

When you start using the iCalendar format the infamous RFC 2445 is indispensible You can access if for example via http://www.faqs.org/rfcs/rfc2445.html that has also a pdf version. Or via http://rfc-ref.org/RFC-TEXTS/2445/index.html that is indexed with online links to the various sections. In future I hope to annotate the conversion methods in this class with references to the appropiate sections of the rfc.

TimeZone handling

Currently vtimezones are completely ignored when found in an ical file that is to be imported. All times that are not in utc format (end with Z) will be interpreted as set in the timezone of the logged in user (UI times). From this on the bocalendar and boinfolog classes will do the proper conversion to server times. On export (all|most) date-time values produced will be in utc format. Date values on the contrary (as for whole day events etc) will be in UI time of the logged in user, thus in a likewise manner as on import. The logic here is that wholeday events are to respect daylight and not exact time. There will be no VTIMEZONE written in the exported icalendar. For more info on this see EgwIcal Timezone Handling

Version:
0.9.37-ng-a6 fix for RRULE by WEEKLY without BYDAY param
Date:
20060508
Since:
0.9.37-ng-a1 a small experimental fix for comma escaping in values

0.9.34-b3 dst-patch fixed

0.9.31 added some FREEBUSY routines

0.9.30 using napi3 api

0.9.22 separated the conversion utilties into eicnvutils class

0.9.04 RRULE count= impl.

Author:
Jan van Lieshout <jvl (at) xs4all.nl> (This version)

Lars Kneschke <lkneschke@egroupware.org> (original code of reused parts)

Ralf Becker <RalfBecker-AT-outdoor-training.de> (original code of reused parts)

license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public ssssLicense


Generic Conversion Auxiliary routines

int a6toutime (array $a6)
 Convert a 6 field hash array in the current active timezone to a unix servertime timestamp.
int st_dst_patch (int $so_utime)
 Patch a servertime timestamp with a DaylightSavingsTime offset.
array utimetoa6 (int $utime)
 Convert a unix timestamp to a 6 field hash array in the current active timezone.
int get_TSdbAdd (int $id, string $appname='calendar')
 Get database add date of event or todo.

Public Member Functions

 eicnvutils ()
 Constructor, init the auxiliary object $hi and $TASKMAGIC and instantiate the $reg_rscworkers workers registry and the $reg_rscs resources registry.
Vcalendar Element Building Help Routines
Routines to add parts to VElts

string I false cats_ids2idnamescstr (array $cids)
 Translate cat-ids to commasepstingh cat-names.
horde_iCalendar_valarm I false mki_c_VALARM (array &$alarm, horde_object &$vcomp, $utstart, array &$veExportFields)
 Convert egw alarm info to a ical VALARM object.
array mki_default_vcalendar_attributes ()
 produce array of default vcalendar attributes.
array mki_p_CN (int $account_id)
 Convert and egw account id into a iCalendar CN type parameter string.
string mki_p_FBTYPE ($fbtype=null)
 Convert an egw act-type label to a freebusytype parameter.
string mki_v_CAL_ADDRESS (int $aid)
 Convert and egw account id into a iCalendar CAL-ADDRESS type value string.
array mki_v_FREEBUSY (int $utstart, int $utend)
 Convert an egw period with start and end times to a freebusy value.
string I false mki_v_guid (string-I-int $egw_id, string $app_prefix='egw')
 Generate ical UID from egw id.
int mki_v_prio (int $eprio=0)
 Convert a egw prio into a value for the ical property PRIORITY.
string mki_v_RECUR (string $recur_type, mixed $recur_data, int $recur_interval, $recur_start, utime $recur_enddate)
 Make a value of type RECUR for a ical RRULE property.
array mki_vp_4ATTENDEE (int $pid, array $partstat, int $owner_id)
 Convert the egw person id and its participant status into an ATTENDEE value and parameterslist.
array mki_vp_4EXDATE (array $recur_exceptions, boolean $dtmode=false)
 Make a value (commasep string of dates) for the EXDATE property.
boolean I Horde_iCalendar parsevCalendar (string $vcalstr)
 Parse a vCalendar string into an Horde_iCalendar object.
true updi_c_addAttribute (VElt &$vobj, string $aname, mixed $avalue, array $aparams)
 Add (append) an new attribute (aka field) to the vevent.
Egw Element Building Help Routines
Routines to add parts to EElts

string cats_names2idscstr (array $cnames, string $owner_id, string $app_name='infolog')
 Translate catnames back to cat-ids creating/modifying cats on the fly.
array mke_ATTENDEE2cneml (string $aval, array $aparams)
 Parse a CAL_ADDRESS and PARAMS to find the CN name and email.
int I false mke_CAL_ADDRESS2pid (string $attrval)
 Parse a CAL_ADDRESS and try to find the associated egw person_id.
int mke_DDT2utime (array-I-string $ddtval)
 Convert a horde_icalendar parsed attribute date- or date-time value to a unix timestamp.
array mke_EXDATEpv2udays (array $params, array $dvals)
 Convert DDT possible DATE|DATE-TIME params and a value commalist into an array of utime dates.
false I int mke_guid2id (string $guid, string $app_prefix='egw')
 Try to decode an egw id from a ical UID.
array I false mke_params2partstat (array $params)
 Search a ical parameterlist for possible setting for a egw participant status.
int mke_prio (int $iprio=0)
 Convert a ical prio into a value for egw.
array mke_RECUR2rar (string $recur, mixed $rstart)
 Convert a RECUR value into the corresponding egw recur fields.
true upde_c_VALARM2alarms (array &$alarms, horde_iCalendar_valarm &$valarm, int $user_id, array &$veImportFields)
 Update the egw alarms array with info from a VALARM.
true upde_nonegwParticipants2description (string &$edescription, array &$ne_participants)
 Update an egw event description with a list of nonegw participants.

Public Attributes

Horde_iCalendar $hi
 Placeholder object used to access various Horde_iCalendar methods In here the constructor will create a Horde_iCalendar object that can be used by the various routines in the class.

Private Attributes

array $dowseqid
 Get sequential indexes for the daynames in a week.
boolean $eicnvdebug = false
 Switch to print extra debugging about imported and exported events to the httpd errorlog stream.
array $partstatus_egw2ical
 Conversion of the egw used participant status values to the corresponding icalendar attendee status terminology.
array $partstatus_ical2egw
 Conversion of the icalendar used attendee status values to the corresponding icalendar participants status terminology.
array $priority_egw2ical
 Conversion of the egw used priority values(0.
array $priority_ical2egw
 Conversion of the icalendar used priority values(0.
array $recur_days
 recur_days translates MCAL recur-days to verbose labels (copied from class.bocal.inc.php file
array $recur_egw2ical
 Conversion of egw recur-type to ical FREQ values for RRULE fields.
string $TASKMAGIC = 'dummy'
 Magic unique number used for de/encoding our uids.


Constructor & Destructor Documentation

eicnvutils::eicnvutils  ) 
 

Constructor, init the auxiliary object $hi and $TASKMAGIC and instantiate the $reg_rscworkers workers registry and the $reg_rscs resources registry.


Member Function Documentation

int eicnvutils::a6toutime array $  a6  ) 
 

Convert a 6 field hash array in the current active timezone to a unix servertime timestamp.

--Class method--

This is basically the inverseof php getdate() function.

The a6date array has fields as in the php getdate() function:

  • year four digit year field
  • month integer month number note: mon, not month!!
  • mday integer day of month number
  • hour integer hour
  • minute integer minutes
  • second integer seconds

Parameters:
$a6 The date in a6date in local timezone format.
Returns:
a unixtimestamp assumed in servertime timezone

string I false eicnvutils::cats_ids2idnamescstr array $  cids  ) 
 

Translate cat-ids to commasepstingh cat-names.

--Class method--

JVLNOTE: boldly copied from class.xmlrpc_server.inc.php because I donot know how to instantiate $GLOBALS['server'] (that provides this method) atm.

Note:
THIS CODE SHOULD BE SOMEWHERE ELSE: IT HAS NOTHING TO DO WITH ICAL!!
Parameters:
$cids the list with category ids
Returns:
$idnamescstr commasep string with names for the category ids or on error false

string eicnvutils::cats_names2idscstr array $  cnames,
string $  owner_id,
string $  app_name = 'infolog'
 

Translate catnames back to cat-ids creating/modifying cats on the fly.

--Class method--

Note:
THIS CODE SHOULD BE SOMEWHERE ELSE: IT HAS NOTHING TO DO WITH ICAL!!
Parameters:
$cnames list with category names
$owner_id the userid of the owner, default to empty string
$app_name the name of the application on whose list the names are to be found.
Returns:
$cidscstr commasep string with ids generated or found for the category names.

int eicnvutils::get_TSdbAdd int $  id,
string $  appname = 'calendar'
[private]
 

Get database add date of event or todo.

--Class method--

Parameters:
$id id of event or todo
$appname name of the application (='calendar' or 'infolog')
Returns:
$createdate of db insert or false on error

array eicnvutils::mke_ATTENDEE2cneml string $  aval,
array $  aparams
 

Parse a CAL_ADDRESS and PARAMS to find the CN name and email.

--Class method--

Parameters:
$aval CAL_ADDRESS type value string
$aparams parameters for a ATTENDEE
Returns:
$cneml assoc array with 'cn' and 'mailto' field

int I false eicnvutils::mke_CAL_ADDRESS2pid string $  attrval  ) 
 

Parse a CAL_ADDRESS and try to find the associated egw person_id.

--Class method--

Parameters:
$attrval CAL_ADDRESS type value string
Returns:
$pid associated (by email) egw pid. On error: false.

int eicnvutils::mke_DDT2utime array-I-string $  ddtval  ) 
 

Convert a horde_icalendar parsed attribute date- or date-time value to a unix timestamp.

--Class method--

Note:
this is just a hack because horde_icalendar converts only date-times to utime
Parameters:
$ddtval DATE array or DATE-TIME utime string
Returns:
$utime unix time of the date or date time

array eicnvutils::mke_EXDATEpv2udays array $  params,
array $  dvals
 

Convert DDT possible DATE|DATE-TIME params and a value commalist into an array of utime dates.

--Class method--

Todo:
update this documentation! Some examples
 ex1: ...;VALUE=DATE:20060123,20060124
 ex2: ...:20060118T101500Z,20060119T1000Z
 ex3: ...:VALUE=DATE-TIME:20060118T101500Z,20060119T1000Z
 
Note:
unfortunately horde_icalendar will parse ex1 into an array of array(month => .. , mday => .. , year=> )
Parameters:
$dvals list of dates
$params the parameters of the field
Returns:
$udays list with the days from the input list in utime format

false I int eicnvutils::mke_guid2id string $  guid,
string $  app_prefix = 'egw'
 

Try to decode an egw id from a ical UID.

Parameters:
$guid the global Icalendar UID value
$app_prefix prefix to be found in the encoding
Returns:
On error: false. On success: local egw todo id.

array I false eicnvutils::mke_params2partstat array $  params  ) 
 

Search a ical parameterlist for possible setting for a egw participant status.

Parse the params array to find a PARTSTAT param, convert this to a egw partstatus (may occur e.g. in ATTENDEE params)

Parameters:
$params params of e.g. an ical ATTENDEE field
Returns:
$epartstatus egw term for particpant status if detected else false

int eicnvutils::mke_prio int $  iprio = 0  ) 
 

Convert a ical prio into a value for egw.

Parameters:
$iprio priority in ical (0..9)
Returns:
$eprio conversion of $iprio as value (0..3) for egw

array eicnvutils::mke_RECUR2rar string $  recur,
mixed $  rstart
 

Convert a RECUR value into the corresponding egw recur fields.

A value of type RECUR (for a ical RRULE property) is parsed into the 4 related egw fields. Fields unfilled stay false A simple example: ( RRULE) : (FREQ=MONTHLY;COUNT=10;INTERVAL=2) here the first part between parenthesis is property and the second is a value of type RECUR

Bug:
RECUR: MONTHLY;BYMONTHDAY, only ok if startdate is also on this MONTHDAY egw problem.
Todo:
RECUR: COUNT=xx;WEEKLY;BYDAY, may miss the last occurence, if not started on a BYDAY day: to be fixed! prio=low
Todo:
RECUR: YEARLY seems only to support the most basic variant?? To be checked!
Author:
JVL (required some thinking..)
Parameters:
$recur RECUR type value of RRULE
$rstart start date in UTC format
Returns:
$rar a assoc array with keys: 'recur_type', 'recur_data', 'recur_interval' and 'recur_enddate'. On error: false
Note:
the class var $hi is used as auxiliary Horde_iCalendar object

horde_iCalendar_valarm I false eicnvutils::mki_c_VALARM array &$  alarm,
horde_object &$  vcomp,
utstart,
array &$  veExportFields
 

Convert egw alarm info to a ical VALARM object.

--Class method--

Make a VALARM object form data in $alarms and $utstart (in utc) and with $vevent as container

Parameters:
&$alarm a single egw alarm array to be used
&$vcomp that will be the container for the valarm mostly vevent or vtodo.
&$veExportFields list with fields that may get imported
Returns:
valarm object or, on error, false.

array eicnvutils::mki_default_vcalendar_attributes  ) 
 

produce array of default vcalendar attributes.

--Class method--

Returns:
a hash of the default vcalendar element attributes with values. The attributes set are: PRODID, VERSIONand METHOD

array eicnvutils::mki_p_CN int $  account_id  ) 
 

Convert and egw account id into a iCalendar CN type parameter string.

--Class method--

Parameters:
$account_id egw account(person) id
Returns:
CN param in horde_icalendar format. On error this will be empty.

string eicnvutils::mki_p_FBTYPE fbtype = null  ) 
 

Convert an egw act-type label to a freebusytype parameter.

--Class method-- Generate parameter a according to rfc2445,sec.4.2.9

Todo:
not yet implemented egw activity type to fbtype conversion
Parameters:
$act-typ egw activity type
Returns:
value for ical freebusy property

string eicnvutils::mki_v_CAL_ADDRESS int $  aid  ) 
 

Convert and egw account id into a iCalendar CAL-ADDRESS type value string.

--Class method--

Parameters:
$aid egw account(person) id
Returns:
$cls cal_address format string (mailto:<emailadr>. On error the emailadr part will stay empty.

array eicnvutils::mki_v_FREEBUSY int $  utstart,
int $  utend
 

Convert an egw period with start and end times to a freebusy value.

--Class method-- Generate a simple, single freebusy value according to rfc2445,sec.4.8.2.6 as start and end dt times

Parameters:
$utstart start time of period (as unix time)
$utend end time of period (as unix time)
Returns:
period array filled according to horde_iCalender defs

string I false eicnvutils::mki_v_guid string-I-int $  egw_id,
string $  app_prefix = 'egw'
 

Generate ical UID from egw id.

generate a unique id, with the egw id encoded into it, which can be used for later synchronisation.

Parameters:
$egw_id eGW id of the egw entity (event, task,..)
$app_prefix prefix to use in ecnoding the name
Returns:
on success the global unique id. On error: false.
Uses $TASKMAGIC string that holds our unique ID

int eicnvutils::mki_v_prio int $  eprio = 0  ) 
 

Convert a egw prio into a value for the ical property PRIORITY.

Parameters:
$eprio priority in egw (0..3)
Returns:
$iprio conversion of $eprio as value (0..9) for the ical PRIORITY prop

string eicnvutils::mki_v_RECUR string $  recur_type,
mixed $  recur_data,
int $  recur_interval,
recur_start,
utime $  recur_enddate
 

Make a value of type RECUR for a ical RRULE property.

A simple example: ( RRULE) : (FREQ=MONTHLY;COUNT=10;INTERVAL=2) here the first part between parenthesis is property and the second is a value of type RECUR

Parameters:
$recur_type the type of recurrence frequence we have
$recur_data Todo describe this parameter...
$recur_interval Todo describe this parameter...
$recur_enddate the final date that the recurrence ends
Returns:
($recurval) a value format as RECUR for the RRULE property (if a time is set)

array eicnvutils::mki_vp_4ATTENDEE int $  pid,
array $  partstat,
int $  owner_id
 

Convert the egw person id and its participant status into an ATTENDEE value and parameterslist.

The resulting value of the ATTENDEE field will be in CAL_ADDRESS type format. The resulting parameterlist may contain fields of the following:

  • ROLE={CHAIR|REQ-PARTICIPANT|OPT-PARTICIPANT|NON-PARTICIPANT} this parameter is NOT used by eGW atm.
  • RSVP={TRUE|FALSE} resonse is expected, not set in eGW then status will have value U.
  • PARTSTAT={NEEDS-ACTION|ACCEPTED|DECLINED|TENTATIVE|DELEGATED| COMPLETED|IN-PROGRESS} everything from delegated is NOT used by eGW atm.
  • CUTYPE={INDIVIDUAL|GROUP|RESOURCE|ROOM|UNKNOWN} only GROUP or INDIVIDUAL are produced atm.

Parameters:
$pid egw id of a participant
$partstat egw particpant status of person with $uid
$owner_id id of the owner of the todo or event (needed to set the CHAIR)
Returns:
($val,$params) list with value and parameter-array for ATTENDEE property
Note:
no error handling atm

array eicnvutils::mki_vp_4EXDATE array $  recur_exceptions,
boolean $  dtmode = false
 

Make a value (commasep string of dates) for the EXDATE property.

--Class method--

In the conversion you can chose between a commastring of DATES or DATE-TIMES

Parameters:
$recur_exceptions list with utime exception dates
$dtmode if true generate DATE-TIME dates else DATES
Returns:
($exdval, $exdparams) a list with the value and parameters generated

boolean I Horde_iCalendar eicnvutils::parsevCalendar string $  vcalstr  ) 
 

Parse a vCalendar string into an Horde_iCalendar object.

To actually parse the string, the Horde_iCalendar in member $hi is used.

Parameters:
$vcalstr the icalendar input string
Returns:
the resulting parsed elements collected in a horde ical object. On error: false

int eicnvutils::st_dst_patch int $  so_utime  ) 
 

Patch a servertime timestamp with a DaylightSavingsTime offset.

--Class method--

As the current export of servertime to UTC routine from Horde does not respect daylight savings time, the conversion from a server time, for a server working in a locale with day savings time, to a UTC value wont work correctly. This function returns the the time value in $so_utime patched (i.e. added or subtracted) by an offset based on the DST setting of the server time zone servertime for the date in $so_utime.

Parameters:
$so_utime the utime in the server timezone, to be corrected with the timezones DST setting at that date
Returns:
the patched, i.e. server timezone DST corrected, utime value.

true eicnvutils::upde_c_VALARM2alarms array &$  alarms,
horde_iCalendar_valarm &$  valarm,
int $  user_id,
array &$  veImportFields
 

Update the egw alarms array with info from a VALARM.

--Class method--

Parameters:
&$alarms the the egw alarms array to be updated
$valarm ref to the valarm component to be updated
$user_id the user that will own the alarms found
&$veImportFields with fields that may get imported
Returns:

true eicnvutils::upde_nonegwParticipants2description string &$  edescription,
array &$  ne_participants
 

Update an egw event description with a list of nonegw participants.

--Class method--

note: this is a adhoc solution, preferably the nonegw participants should be added automatically to the addressbook

Parameters:
&$edescription the participants are append to this string as a string formatted ([cn: name:mailto: eml] [] ... )
&$ne_participants array of the non egw participants as ('cn' =>, 'mailto' =>) pairs
Returns:

true eicnvutils::updi_c_addAttribute VElt &$  vobj,
string $  aname,
mixed $  avalue,
array $  aparams
 

Add (append) an new attribute (aka field) to the vevent.

--Class method--

Parameters:
$vobj Vcal Element to which the attribute is added
$aname name for the new attribute
$avalue value for the new attribute
$aparams optional: parameters for the new attribute
Returns:

array eicnvutils::utimetoa6 int $  utime  ) 
 

Convert a unix timestamp to a 6 field hash array in the current active timezone.

--Class method--

This is basically alike the php getdate() function but with different field names

The a6date array has fields as in the php getdate() function:

  • year four digit year field
  • month integer month number
  • mday integer day of month number
  • hour integer hour
  • minute integer minutes
  • second integer seconds

Parameters:
$utime a unixtimestamp assumed in servertime
Returns:
The date in a6date in local timezone format.


Member Data Documentation

array eicnvutils::$dowseqid [private]
 

Initial value:

                array('SU' => 1, 'MO' => 2, 'TU' => 3, 'WE' => 4,
                          'TH' => 5, 'FR' => 6, 'SA' => 7)
Get sequential indexes for the daynames in a week.

Used for recurrence count calculations.

boolean eicnvutils::$eicnvdebug = false [private]
 

Switch to print extra debugging about imported and exported events to the httpd errorlog stream.

Horde_iCalendar eicnvutils::$hi
 

Placeholder object used to access various Horde_iCalendar methods In here the constructor will create a Horde_iCalendar object that can be used by the various routines in the class.

array eicnvutils::$partstatus_egw2ical [private]
 

Initial value:

                array(
                          'U' => 'NEEDS-ACTION',
                          'A' => 'ACCEPTED',
                          'R' => 'DECLINED',
                          'T' => 'TENTATIVE',
                          )
Conversion of the egw used participant status values to the corresponding icalendar attendee status terminology.

array eicnvutils::$partstatus_ical2egw [private]
 

Initial value:

                array(
                          'NEEDS-ACTION' => 'U',
                          'ACCEPTED'     => 'A',
                          'DECLINED'     => 'R',
                          'TENTATIVE'    => 'T',
                          )
Conversion of the icalendar used attendee status values to the corresponding icalendar participants status terminology.

array eicnvutils::$priority_egw2ical [private]
 

Initial value:

                array(
                          0 => 0,               // undefined
                          1 => 9,               // low
                          2 => 5,               // normal
                          3 => 1,               // high
                          )
Conversion of the egw used priority values(0.

.3) to corresponding ical values(0..9).

array eicnvutils::$priority_ical2egw [private]
 

Initial value:

                array(
                          0 => 0,              // undefined
                          9 => 1, 8 => 1, 7 => 1,       // low
                          6 => 2, 5 => 2, 4 => 2,       // normal
                          3 => 3, 2 => 3, 1 => 3,       // high
                          )
Conversion of the icalendar used priority values(0.

.9) to corresponding egw values (0..3).

array eicnvutils::$recur_days [private]
 

Initial value:

                array(
                          MCAL_M_MONDAY    => 'Monday',
                          MCAL_M_TUESDAY   => 'Tuesday',
                          MCAL_M_WEDNESDAY => 'Wednesday',
                          MCAL_M_THURSDAY  => 'Thursday',
                          MCAL_M_FRIDAY    => 'Friday',
                          MCAL_M_SATURDAY  => 'Saturday',
                          MCAL_M_SUNDAY    => 'Sunday',
                          )
recur_days translates MCAL recur-days to verbose labels (copied from class.bocal.inc.php file

array eicnvutils::$recur_egw2ical [private]
 

Initial value:

                array(
                          MCAL_RECUR_DAILY        => 'DAILY',
                          MCAL_RECUR_WEEKLY       => 'WEEKLY',
                          MCAL_RECUR_MONTHLY_MDAY => 'MONTHLY', 
                          MCAL_RECUR_MONTHLY_WDAY => 'MONTHLY', 
                          MCAL_RECUR_YEARLY       => 'YEARLY',
                          )
Conversion of egw recur-type to ical FREQ values for RRULE fields.

string eicnvutils::$TASKMAGIC = 'dummy' [private]
 

Magic unique number used for de/encoding our uids.

This string that contains global unique magic number that is unique for our current database installed etc. It is used to recognize earlier exported VTODO or VEVENT UID fields as referring to their eGW counterparts.


The documentation for this class was generated from the following file:
Generated on Thu Jun 8 21:57:23 2006 for EgwIcal by  doxygen 1.4.6