Class: calendarComponent
Source Location: /main/inc/lib/icalcreator/iCalcreator.class.php
abstract class for calendar components
Author(s):
|
|
|
Class Details
Class Variables
Class Methods
constructor calendarComponent [line 1797]
calendarComponent calendarComponent(
)
|
|
constructor for calendar component object
Tags:
method addSubComponent [line 6834]
void addSubComponent(
object
$component)
|
|
add calendar component as subcomponent to container for subcomponents
Tags:
Parameters:
method copy [line 6725]
return a copy of this component
Tags:
method createAction [line 1867]
creates formatted output for calendar component property action
Tags:
method createAttach [line 1897]
creates formatted output for calendar component property attach
Tags:
method createAttendee [line 1934]
creates formatted output for calendar component property attendee
Tags:
method createCategories [line 2079]
string createCategories(
)
|
|
creates formatted output for calendar component property categories
Tags:
method createClass [line 2123]
creates formatted output for calendar component property class
Tags:
method createComment [line 2154]
creates formatted output for calendar component property comment
Tags:
method createCompleted [line 2191]
string createCompleted(
)
|
|
creates formatted output for calendar component property completed
Tags:
method createContact [line 2231]
creates formatted output for calendar component property contact
Tags:
method createCreated [line 2268]
creates formatted output for calendar component property created
Tags:
method createDescription [line 2311]
string createDescription(
)
|
|
creates formatted output for calendar component property description
Tags:
method createDtend [line 2348]
creates formatted output for calendar component property dtend
Tags:
method createDtstamp [line 2389]
creates formatted output for calendar component property dtstamp
Tags:
method createDtstart [line 2446]
string createDtstart(
[bool
$localtime = FALSE])
|
|
creates formatted output for calendar component property dtstart
Tags:
Parameters:
method createDue [line 2489]
creates formatted output for calendar component property due
Tags:
method createDuration [line 2529]
creates formatted output for calendar component property duration
Tags:
method createExdate [line 2579]
creates formatted output for calendar component property exdate
Tags:
method createExrule [line 2697]
creates formatted output for calendar component property exrule
Tags:
method createFreebusy [line 2756]
creates formatted output for calendar component property freebusy
Tags:
method createGeo [line 2866]
creates formatted output for calendar component property geo
Tags:
method createLastModified [line 2903]
string createLastModified(
)
|
|
creates formatted output for calendar component property last-modified
Tags:
method createLocation [line 2947]
creates formatted output for calendar component property location
Tags:
method createOrganizer [line 2979]
string createOrganizer(
)
|
|
creates formatted output for calendar component property organizer
Tags:
method createPercentComplete [line 3018]
string createPercentComplete(
)
|
|
creates formatted output for calendar component property percent-complete
Tags:
method createPriority [line 3049]
creates formatted output for calendar component property priority
Tags:
method createRdate [line 3081]
string createRdate(
[bool
$localtime = FALSE])
|
|
creates formatted output for calendar component property rdate
Tags:
Parameters:
method createRecurrenceid [line 3376]
string createRecurrenceid(
)
|
|
creates formatted output for calendar component property recurrence-id
Tags:
method createRelatedTo [line 3412]
string createRelatedTo(
)
|
|
creates formatted output for calendar component property related-to
Tags:
method createRepeat [line 3457]
creates formatted output for calendar component property repeat
Tags:
method createRequestStatus [line 3487]
string createRequestStatus(
)
|
|
creates formatted output for calendar component property request-status
Tags:
method createResources [line 3533]
string createResources(
)
|
|
creates formatted output for calendar component property resources
Tags:
method createRrule [line 3576]
creates formatted output for calendar component property rrule
Tags:
method createSequence [line 3633]
creates formatted output for calendar component property sequence
Tags:
method createStatus [line 3665]
creates formatted output for calendar component property status
Tags:
method createSubComponent [line 6902]
string createSubComponent(
)
|
|
creates formatted output for subcomponents
Tags:
method createSummary [line 3696]
creates formatted output for calendar component property summary
Tags:
method createTransp [line 3728]
creates formatted output for calendar component property transp
Tags:
method createTrigger [line 3759]
creates formatted output for calendar component property trigger
Tags:
method createTzid [line 3915]
creates formatted output for calendar component property tzid
Tags:
method createTzname [line 3949]
creates formatted output for calendar component property tzname
Tags:
method createTzoffsetfrom [line 3987]
string createTzoffsetfrom(
)
|
|
creates formatted output for calendar component property tzoffsetfrom
Tags:
method createTzoffsetto [line 4020]
string createTzoffsetto(
)
|
|
creates formatted output for calendar component property tzoffsetto
Tags:
method createTzurl [line 4053]
creates formatted output for calendar component property tzurl
Tags:
method createUid [line 4086]
creates formatted output for calendar component property uid
Tags:
method createUrl [line 4140]
creates formatted output for calendar component property url
Tags:
method createXprop [line 4173]
creates formatted output for calendar component property x-prop
Tags:
method deleteComponent [line 6742]
void deleteComponent(
mixed
$arg1, [mixed
$arg2 = FALSE])
|
|
delete calendar subcomponent from component container
Tags:
Parameters:
method deleteProperty [line 5806]
bool, deleteProperty(
string
$propName, [int
$propix = FALSE])
|
|
delete component property value
Tags:
Parameters:
method duration2date [line 4682]
array, duration2date(
[
$startdate = FALSE], [
$duration = FALSE], array
$startdate,, array
$duration,)
|
|
convert duration to date in array format based on dtstart value
Tags:
Parameters:
method getComponent [line 6782]
object getComponent(
[mixed
$arg1 = FALSE], [mixed
$arg2 = FALSE])
|
|
get calendar component subcomponent from component container
Tags:
Parameters:
method getConfig [line 5633]
value getConfig(
string
$config)
|
|
get general component config variables or info about subcomponents
Tags:
Parameters:
method getProperty [line 6067]
mixed getProperty(
[
$propName = FALSE], [int
$propix = FALSE], [
$inclParam = FALSE], [
$specform = FALSE], string
$propName,, bool
$inclParam=FALSE, bool
$specform=FALSE)
|
|
get component property value/params if property has multiply values, consequtive function calls are needed
Tags:
Parameters:
method parse [line 6444]
bool parse(
[
$unparsedtext = null], mixed
$unparsedtext,)
|
|
parse component unparsed data into properties
Tags:
Parameters:
method setAction [line 1882]
void setAction(
string
$value, [mixed
$params = FALSE])
|
|
set calendar component property action
Tags:
Parameters:
method setAttach [line 1917]
void setAttach(
string
$value, [string
$params = FALSE])
|
|
set calendar component property attach
Tags:
Parameters:
method setAttendee [line 2003]
void setAttendee(
string
$value, [array
$params = FALSE])
|
|
set calendar component property attach
Tags:
Parameters:
method setCategories [line 2106]
void setCategories(
mixed
$value, [array
$params = FALSE])
|
|
set calendar component property categories
Tags:
Parameters:
method setClass [line 2139]
void setClass(
string
$value, [array
$params = FALSE])
|
|
set calendar component property class
Tags:
Parameters:
method setComment [line 2175]
void setComment(
string
$value, [array
$params = FALSE])
|
|
set calendar component property comment
Tags:
Parameters:
method setCompleted [line 2217]
void setCompleted(
mixed
$year, [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [array
$params = FALSE])
|
|
set calendar component property completed
Tags:
Parameters:
method setComponent [line 6847]
void setComponent(
object
$component, [mixed
$arg1 = FALSE], [mixed
$arg2 = FALSE])
|
|
add calendar component as subcomponent to container for subcomponents
Tags:
Parameters:
method setConfig [line 5773]
void setConfig(
string
$config, string
$value)
|
|
general component config setting
Tags:
Parameters:
method setContact [line 2252]
void setContact(
string
$value, [array
$params = FALSE])
|
|
set calendar component property contact
Tags:
Parameters:
method setCreated [line 2294]
void setCreated(
[mixed
$year = FALSE], [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [mixed
$params = FALSE])
|
|
set calendar component property created
Tags:
Parameters:
method setDescription [line 2332]
void setDescription(
string
$value, [array
$params = FALSE])
|
|
set calendar component property description
Tags:
Parameters:
method setDtend [line 2375]
void setDtend(
mixed
$year, [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [string
$tz = FALSE], [array
$params = FALSE])
|
|
set calendar component property dtend
Tags:
Parameters:
method setDtstamp [line 2431]
void setDtstamp(
mixed
$year, [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [array
$params = FALSE])
|
|
set calendar component property dtstamp
Tags:
Parameters:
method setDtstart [line 2475]
void setDtstart(
mixed
$year, [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [string
$tz = FALSE], [array
$params = FALSE])
|
|
set calendar component property dtstart
Tags:
Parameters:
method setDue [line 2515]
void setDue(
mixed
$year, [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [
$tz = FALSE], [array
$params = FALSE])
|
|
set calendar component property due
Tags:
Parameters:
method setDuration [line 2552]
void setDuration(
[mixed
$week = FALSE], [mixed
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [array
$params = FALSE])
|
|
set calendar component property duration
Tags:
Parameters:
method setExdate [line 2618]
void setExdate(
array
$exdates, [array
$params = FALSE])
|
|
set calendar component property exdate
Tags:
Parameters:
method setExrule [line 2713]
void setExrule(
array
$exruleset, [array
$params = FALSE])
|
|
set calendar component property exdate
Tags:
Parameters:
method setFreebusy [line 2809]
void setFreebusy(
string
$fbType, array
$fbValues, [array
$params = FALSE])
|
|
set calendar component property freebusy
Tags:
Parameters:
method setGeo [line 2887]
void setGeo(
float
$latitude, float
$longitude, [array
$params = FALSE])
|
|
set calendar component property geo
Tags:
Parameters:
method setLastModified [line 2929]
void setLastModified(
[mixed
$year = FALSE], [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [array
$params = FALSE])
|
|
set calendar component property completed
Tags:
Parameters:
method setLocation [line 2964]
void setLocation(
string
$value, [array
$params = FALSE])
|
|
set calendar component property location
Tags:
Parameters:
method setOrganizer [line 2997]
void setOrganizer(
string
$value, [array
$params = FALSE])
|
|
set calendar component property organizer
Tags:
Parameters:
method setPercentComplete [line 3034]
void setPercentComplete(
int
$value, [array
$params = FALSE])
|
|
set calendar component property percent-complete
Tags:
Parameters:
method setPriority [line 3065]
void setPriority(
int
$value, [array
$params = FALSE])
|
|
set calendar component property priority
Tags:
Parameters:
method setProperty [line 6287]
void setProperty(
mixed
$args)
|
|
general component property setting
Tags:
Parameters:
method setRdate [line 3186]
void setRdate(
array
$rdates, [array
$params = FALSE])
|
|
set calendar component property rdate
Tags:
Parameters:
method setRecurrenceid [line 3398]
void setRecurrenceid(
mixed
$year, [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [
$tz = FALSE], [array
$params = FALSE])
|
|
set calendar component property recurrence-id
Tags:
Parameters:
method setRelatedTo [line 3433]
void setRelatedTo(
float
$relid, [array
$params = FALSE])
|
|
set calendar component property related-to
Tags:
Parameters:
method setRepeat [line 3473]
void setRepeat(
string
$value, [array
$params = FALSE])
|
|
set calendar component property transp
Tags:
Parameters:
method setRequestStatus [line 3513]
void setRequestStatus(
float
$statcode, string
$text, [string
$extdata = FALSE], [array
$params = FALSE])
|
|
set calendar component property request-status
Tags:
Parameters:
method setResources [line 3559]
void setResources(
mixed
$value, [array
$params = FALSE])
|
|
set calendar component property recources
Tags:
Parameters:
method setRrule [line 3591]
void setRrule(
array
$rruleset, [array
$params = FALSE])
|
|
set calendar component property rrule
Tags:
Parameters:
method setSequence [line 3648]
void setSequence(
[int
$value = FALSE], [array
$params = FALSE])
|
|
set calendar component property sequence
Tags:
Parameters:
method setStatus [line 3681]
void setStatus(
string
$value, [array
$params = FALSE])
|
|
set calendar component property status
Tags:
Parameters:
method setSummary [line 3713]
void setSummary(
string
$value, [string
$params = FALSE])
|
|
set calendar component property summary
Tags:
Parameters:
method setTransp [line 3744]
void setTransp(
string
$value, [string
$params = FALSE])
|
|
set calendar component property transp
Tags:
Parameters:
method setTrigger [line 3797]
void setTrigger(
[mixed
$year = FALSE], [mixed
$month = FALSE], [int
$day = FALSE], [int
$week = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [bool
$relatedEnd = FALSE], [bool
$after = FALSE], [string
$tz = FALSE], [array
$params = FALSE])
|
|
set calendar component property trigger
Tags:
Parameters:
method setTzid [line 3931]
void setTzid(
string
$value, [array
$params = FALSE])
|
|
set calendar component property tzid
Tags:
Parameters:
method setTzname [line 3969]
void setTzname(
string
$value, [string
$params = FALSE])
|
|
set calendar component property tzname
Tags:
Parameters:
method setTzoffsetfrom [line 4003]
void setTzoffsetfrom(
string
$value, [string
$params = FALSE])
|
|
set calendar component property tzoffsetfrom
Tags:
Parameters:
method setTzoffsetto [line 4036]
void setTzoffsetto(
string
$value, [string
$params = FALSE])
|
|
set calendar component property tzoffsetto
Tags:
Parameters:
method setTzurl [line 4069]
void setTzurl(
string
$value, [string
$params = FALSE])
|
|
set calendar component property tzurl
Tags:
Parameters:
method setUid [line 4123]
void setUid(
string
$value, [string
$params = FALSE])
|
|
set calendar component property uid
Tags:
Parameters:
method setUrl [line 4156]
void setUrl(
string
$value, [string
$params = FALSE])
|
|
set calendar component property url
Tags:
Parameters:
method setXprop [line 4200]
void setXprop(
string
$label, mixed
$value, [array
$params = FALSE])
|
|
set calendar component property x-prop
Tags:
Parameters:
method _createElement [line 4259]
string _createElement(
string
$label, string
$attributes, [string
$content = FALSE])
|
|
creates formatted output for calendar component property
Tags:
Parameters:
method _createFormat [line 4217]
create element format parts
Tags:
method _createParams [line 4385]
string _createParams(
[array
$params = array()], [array
$ctrKeys = array()])
|
|
creates formatted output for calendar component property parameters
Tags:
Parameters:
method _date2duration [line 4430]
array _date2duration(
[
$startdate = FALSE], [
$enddate = FALSE], array
$startdate,, array
$duration,)
|
|
convert local startdate/enddate (Ymd[His]) to duration uses this component dates if missing input dates
Tags:
Parameters:
method _date2timestamp [line 4463]
timestamp _date2timestamp(
array
$datetime, [string
$tz = null])
|
|
convert date/datetime to timestamp
Tags:
Parameters:
method _date_time_array [line 4494]
array _date_time_array(
array
$datetime, [int
$parno = FALSE])
|
|
ensures internal date-time/date format for input date-time/date in array format
Tags:
Parameters:
method _date_time_string [line 4533]
array _date_time_string(
array
$datetime, [int
$parno = FALSE])
|
|
ensures internal date-time/date format for input date-time/date in string fromat
Tags:
Parameters:
method _duration_array [line 4632]
array _duration_array(
array
$duration)
|
|
ensures internal duration format for input in array format
Tags:
Parameters:
method _duration_string [line 4734]
array _duration_string(
string
$duration)
|
|
ensures internal duration format for input in string format
Tags:
Parameters:
method _existRem [line 4789]
int _existRem(
&$array, string
$expkey, [string
$expval = FALSE], [int
$hitval = null], array
$array)
|
|
if exist, remove key with expected value from array and return spec. value
Tags:
Parameters:
method _formatPropertyName [line 5010]
string _formatPropertyName(
string
$propertyName)
|
|
create property name case - lower/upper
Tags:
Parameters:
method _format_date_time [line 4810]
string _format_date_time(
array
$datetime, [
$parno = 6], int
$parno,)
|
|
creates formatted output for calendar component property data value type date/date-time
Tags:
Parameters:
method _format_duration [line 4875]
string _format_duration(
array
$duration)
|
|
creates formatted output for calendar component property data value type duration
Tags:
Parameters:
method _format_recur [line 4922]
string _format_recur(
array
$recurlabel, array
$recurdata)
|
|
creates formatted output for calendar component property data value type recur
Tags:
Parameters:
method _makeDtstamp [line 2408]
computes datestamp for calendar component object instance dtstamp
Tags:
method _makeUid [line 4101]
create an unique id for this calendar component object instance
Tags:
method _recur2date [line 5035]
array _recur2date(
&$result,
$recur,
$wdate,
$startdate, [
$enddate = FALSE], array
$result,, array
$recur,, array
$wdate,, array
$startdate,, array
$enddate,)
|
|
remakes a recur pattern to an array of dates if missing, UNTIL is set 1 year from startdate (emergency break)
Tags:
Parameters:
method _recurBYcntcheck [line 5369]
void _recurBYcntcheck(
$BYvalue,
$upValue,
$downValue)
|
|
Parameters:
method _recurIntervalIx [line 5378]
void _recurIntervalIx(
$freq,
$date,
$wkst)
|
|
Parameters:
method _setDate [line 5412]
array _setDate(
mixed
$year, [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [
$tz = FALSE], [array
$params = FALSE])
|
|
convert format for input date to internal date with parameters
Tags:
Parameters:
method _setDate2 [line 5498]
array _setDate2(
mixed
$year, [mixed
$month = FALSE], [int
$day = FALSE], [int
$hour = FALSE], [int
$min = FALSE], [int
$sec = FALSE], [array
$params = FALSE])
|
|
convert format for input date (UTC) to internal date with parameters
Tags:
Parameters:
method _setParams [line 5543]
array _setParams(
array
$params, [array
$defaults = FALSE])
|
|
set input (formatted) parameters- component property attributes default parameters can be set, if missing
Tags:
Parameters:
method _size75 [line 6938]
string _size75(
$string, string
$value)
|
|
break lines at pos 75 Lines of text SHOULD NOT be longer than 75 octets, excluding the line break. Long content lines SHOULD be split into a multiple line representations using a line "folding" technique. That is, a long line can be split between any two characters by inserting a CRLF immediately followed by a single linear white space character (i.e., SPACE, US-ASCII decimal 32 or HTAB, US-ASCII decimal 9). Any sequence of CRLF followed immediately by a single linear white space character is ignored (i.e., removed) when processing the content type. Edited 2007-08-26 by Anders Litzell, anders@litzell.se to fix bug where the reserved expression "\n" in the arg $string could be broken up by the folding of lines, causing ambiguity in the return string. Fix uses var $breakAtChar=75 and breaks the line at $breakAtChar-1 if need be.
Tags:
Parameters:
method _stepdate [line 5579]
void _stepdate(
&$date,
&$timestamp, [
$step = array( 'day' => 1 )], array
$date,, int
$timestamp, array
$step,)
|
|
step date, return updated date, array and timpstamp
Tags:
Parameters:
method _strrep [line 6964]
string _strrep(
string
$string)
|
|
special characters management output
Tags:
Parameters:
method _strunrep [line 7008]
string _strunrep(
string
$string)
|
|
special characters management input (from iCal file)
Tags:
Parameters:
method _tz2offset [line 5597]
integer _tz2offset(
$tz, string
$offset)
|
|
convert (numeric) tz to offset seconds
Tags:
Parameters:
|
|