@@ 6016-6018 (lines=3) @@ | ||
6013 | $this->propix[$propName] = --$propix; |
|
6014 | } |
|
6015 | switch( $propName ) { |
|
6016 | case 'ACTION': |
|
6017 | if( !empty( $this->action['value'] )) return ( $inclParam ) ? $this->action : $this->action['value']; |
|
6018 | break; |
|
6019 | case 'ATTACH': |
|
6020 | if( !isset( $this->attach[$propix] )) return FALSE; |
|
6021 | return ( $inclParam ) ? $this->attach[$propix] : $this->attach[$propix]['value']; |
|
@@ 6031-6033 (lines=3) @@ | ||
6028 | if( !isset( $this->categories[$propix] )) return FALSE; |
|
6029 | return ( $inclParam ) ? $this->categories[$propix] : $this->categories[$propix]['value']; |
|
6030 | break; |
|
6031 | case 'CLASS': |
|
6032 | if( !empty( $this->class['value'] )) return ( $inclParam ) ? $this->class : $this->class['value']; |
|
6033 | break; |
|
6034 | case 'COMMENT': |
|
6035 | if( !isset( $this->comment[$propix] )) return FALSE; |
|
6036 | return ( $inclParam ) ? $this->comment[$propix] : $this->comment[$propix]['value']; |
|
@@ 6038-6040 (lines=3) @@ | ||
6035 | if( !isset( $this->comment[$propix] )) return FALSE; |
|
6036 | return ( $inclParam ) ? $this->comment[$propix] : $this->comment[$propix]['value']; |
|
6037 | break; |
|
6038 | case 'COMPLETED': |
|
6039 | if( !empty( $this->completed['value'] )) return ( $inclParam ) ? $this->completed : $this->completed['value']; |
|
6040 | break; |
|
6041 | case 'CONTACT': |
|
6042 | if( !isset( $this->contact[$propix] )) return FALSE; |
|
6043 | return ( $inclParam ) ? $this->contact[$propix] : $this->contact[$propix]['value']; |
|
@@ 6045-6047 (lines=3) @@ | ||
6042 | if( !isset( $this->contact[$propix] )) return FALSE; |
|
6043 | return ( $inclParam ) ? $this->contact[$propix] : $this->contact[$propix]['value']; |
|
6044 | break; |
|
6045 | case 'CREATED': |
|
6046 | if( !empty( $this->created['value'] )) return ( $inclParam ) ? $this->created : $this->created['value']; |
|
6047 | break; |
|
6048 | case 'DESCRIPTION': |
|
6049 | if( !isset( $this->description[$propix] )) return FALSE; |
|
6050 | return ( $inclParam ) ? $this->description[$propix] : $this->description[$propix]['value']; |
|
@@ 6052-6054 (lines=3) @@ | ||
6049 | if( !isset( $this->description[$propix] )) return FALSE; |
|
6050 | return ( $inclParam ) ? $this->description[$propix] : $this->description[$propix]['value']; |
|
6051 | break; |
|
6052 | case 'DTEND': |
|
6053 | if( !empty( $this->dtend['value'] )) return ( $inclParam ) ? $this->dtend : $this->dtend['value']; |
|
6054 | break; |
|
6055 | case 'DTSTAMP': |
|
6056 | if( in_array( $this->objName, array( 'valarm', 'vtimezone', 'standard', 'daylight' ))) |
|
6057 | return; |
|
@@ 6062-6064 (lines=3) @@ | ||
6059 | $this->_makeDtstamp(); |
|
6060 | return ( $inclParam ) ? $this->dtstamp : $this->dtstamp['value']; |
|
6061 | break; |
|
6062 | case 'DTSTART': |
|
6063 | if( !empty( $this->dtstart['value'] )) return ( $inclParam ) ? $this->dtstart : $this->dtstart['value']; |
|
6064 | break; |
|
6065 | case 'DUE': |
|
6066 | if( !empty( $this->due['value'] )) return ( $inclParam ) ? $this->due : $this->due['value']; |
|
6067 | break; |
|
@@ 6065-6067 (lines=3) @@ | ||
6062 | case 'DTSTART': |
|
6063 | if( !empty( $this->dtstart['value'] )) return ( $inclParam ) ? $this->dtstart : $this->dtstart['value']; |
|
6064 | break; |
|
6065 | case 'DUE': |
|
6066 | if( !empty( $this->due['value'] )) return ( $inclParam ) ? $this->due : $this->due['value']; |
|
6067 | break; |
|
6068 | case 'DURATION': |
|
6069 | if( !isset( $this->duration['value'] )) return FALSE; |
|
6070 | $value = ( $specform ) ? $this->duration2date() : $this->duration['value']; |
|
@@ 6085-6087 (lines=3) @@ | ||
6082 | if( !isset( $this->freebusy[$propix] )) return FALSE; |
|
6083 | return ( $inclParam ) ? $this->freebusy[$propix] : $this->freebusy[$propix]['value']; |
|
6084 | break; |
|
6085 | case 'GEO': |
|
6086 | if( !empty( $this->geo['value'] )) return ( $inclParam ) ? $this->geo : $this->geo['value']; |
|
6087 | break; |
|
6088 | case 'LAST-MODIFIED': |
|
6089 | if( !empty( $this->lastmodified['value'] )) return ( $inclParam ) ? $this->lastmodified : $this->lastmodified['value']; |
|
6090 | break; |
|
@@ 6091-6093 (lines=3) @@ | ||
6088 | case 'LAST-MODIFIED': |
|
6089 | if( !empty( $this->lastmodified['value'] )) return ( $inclParam ) ? $this->lastmodified : $this->lastmodified['value']; |
|
6090 | break; |
|
6091 | case 'LOCATION': |
|
6092 | if( !empty( $this->location['value'] )) return ( $inclParam ) ? $this->location : $this->location['value']; |
|
6093 | break; |
|
6094 | case 'ORGANIZER': |
|
6095 | if( !empty( $this->organizer['value'] )) return ( $inclParam ) ? $this->organizer : $this->organizer['value']; |
|
6096 | break; |
|
@@ 6094-6096 (lines=3) @@ | ||
6091 | case 'LOCATION': |
|
6092 | if( !empty( $this->location['value'] )) return ( $inclParam ) ? $this->location : $this->location['value']; |
|
6093 | break; |
|
6094 | case 'ORGANIZER': |
|
6095 | if( !empty( $this->organizer['value'] )) return ( $inclParam ) ? $this->organizer : $this->organizer['value']; |
|
6096 | break; |
|
6097 | case 'PERCENT-COMPLETE': |
|
6098 | if( !empty( $this->percentcomplete['value'] )) return ( $inclParam ) ? $this->percentcomplete : $this->percentcomplete['value']; |
|
6099 | break; |
|
@@ 6100-6102 (lines=3) @@ | ||
6097 | case 'PERCENT-COMPLETE': |
|
6098 | if( !empty( $this->percentcomplete['value'] )) return ( $inclParam ) ? $this->percentcomplete : $this->percentcomplete['value']; |
|
6099 | break; |
|
6100 | case 'PRIORITY': |
|
6101 | if( !empty( $this->priority['value'] )) return ( $inclParam ) ? $this->priority : $this->priority['value']; |
|
6102 | break; |
|
6103 | case 'RDATE': |
|
6104 | if( !isset( $this->rdate[$propix] )) return FALSE; |
|
6105 | return ( $inclParam ) ? $this->rdate[$propix] : $this->rdate[$propix]['value']; |
|
@@ 6114-6116 (lines=3) @@ | ||
6111 | if( !isset( $this->relatedto[$propix] )) return FALSE; |
|
6112 | return ( $inclParam ) ? $this->relatedto[$propix] : $this->relatedto[$propix]['value']; |
|
6113 | break; |
|
6114 | case 'REPEAT': |
|
6115 | if( !empty( $this->repeat['value'] )) return ( $inclParam ) ? $this->repeat : $this->repeat['value']; |
|
6116 | break; |
|
6117 | case 'REQUEST-STATUS': |
|
6118 | if( !isset( $this->requeststatus[$propix] )) return FALSE; |
|
6119 | return ( $inclParam ) ? $this->requeststatus[$propix] : $this->requeststatus[$propix]['value']; |
|
@@ 6129-6131 (lines=3) @@ | ||
6126 | if( !isset( $this->rrule[$propix] )) return FALSE; |
|
6127 | return ( $inclParam ) ? $this->rrule[$propix] : $this->rrule[$propix]['value']; |
|
6128 | break; |
|
6129 | case 'SEQUENCE': |
|
6130 | if( !empty( $this->sequence['value'] )) return ( $inclParam ) ? $this->sequence : $this->sequence['value']; |
|
6131 | break; |
|
6132 | case 'STATUS': |
|
6133 | if( !empty( $this->status['value'] )) return ( $inclParam ) ? $this->status : $this->status['value']; |
|
6134 | break; |
|
@@ 6132-6134 (lines=3) @@ | ||
6129 | case 'SEQUENCE': |
|
6130 | if( !empty( $this->sequence['value'] )) return ( $inclParam ) ? $this->sequence : $this->sequence['value']; |
|
6131 | break; |
|
6132 | case 'STATUS': |
|
6133 | if( !empty( $this->status['value'] )) return ( $inclParam ) ? $this->status : $this->status['value']; |
|
6134 | break; |
|
6135 | case 'SUMMARY': |
|
6136 | if( !empty( $this->summary['value'] )) return ( $inclParam ) ? $this->summary : $this->summary['value']; |
|
6137 | break; |
|
@@ 6135-6137 (lines=3) @@ | ||
6132 | case 'STATUS': |
|
6133 | if( !empty( $this->status['value'] )) return ( $inclParam ) ? $this->status : $this->status['value']; |
|
6134 | break; |
|
6135 | case 'SUMMARY': |
|
6136 | if( !empty( $this->summary['value'] )) return ( $inclParam ) ? $this->summary : $this->summary['value']; |
|
6137 | break; |
|
6138 | case 'TRANSP': |
|
6139 | if( !empty( $this->transp['value'] )) return ( $inclParam ) ? $this->transp : $this->transp['value']; |
|
6140 | break; |
|
@@ 6138-6140 (lines=3) @@ | ||
6135 | case 'SUMMARY': |
|
6136 | if( !empty( $this->summary['value'] )) return ( $inclParam ) ? $this->summary : $this->summary['value']; |
|
6137 | break; |
|
6138 | case 'TRANSP': |
|
6139 | if( !empty( $this->transp['value'] )) return ( $inclParam ) ? $this->transp : $this->transp['value']; |
|
6140 | break; |
|
6141 | case 'TRIGGER': |
|
6142 | if( !empty( $this->trigger['value'] )) return ( $inclParam ) ? $this->trigger : $this->trigger['value']; |
|
6143 | break; |
|
@@ 6141-6143 (lines=3) @@ | ||
6138 | case 'TRANSP': |
|
6139 | if( !empty( $this->transp['value'] )) return ( $inclParam ) ? $this->transp : $this->transp['value']; |
|
6140 | break; |
|
6141 | case 'TRIGGER': |
|
6142 | if( !empty( $this->trigger['value'] )) return ( $inclParam ) ? $this->trigger : $this->trigger['value']; |
|
6143 | break; |
|
6144 | case 'TZID': |
|
6145 | if( !empty( $this->tzid['value'] )) return ( $inclParam ) ? $this->tzid : $this->tzid['value']; |
|
6146 | break; |
|
@@ 6144-6146 (lines=3) @@ | ||
6141 | case 'TRIGGER': |
|
6142 | if( !empty( $this->trigger['value'] )) return ( $inclParam ) ? $this->trigger : $this->trigger['value']; |
|
6143 | break; |
|
6144 | case 'TZID': |
|
6145 | if( !empty( $this->tzid['value'] )) return ( $inclParam ) ? $this->tzid : $this->tzid['value']; |
|
6146 | break; |
|
6147 | case 'TZNAME': |
|
6148 | if( !isset( $this->tzname[$propix] )) return FALSE; |
|
6149 | return ( $inclParam ) ? $this->tzname[$propix] : $this->tzname[$propix]['value']; |
|
@@ 6151-6153 (lines=3) @@ | ||
6148 | if( !isset( $this->tzname[$propix] )) return FALSE; |
|
6149 | return ( $inclParam ) ? $this->tzname[$propix] : $this->tzname[$propix]['value']; |
|
6150 | break; |
|
6151 | case 'TZOFFSETFROM': |
|
6152 | if( !empty( $this->tzoffsetfrom['value'] )) return ( $inclParam ) ? $this->tzoffsetfrom : $this->tzoffsetfrom['value']; |
|
6153 | break; |
|
6154 | case 'TZOFFSETTO': |
|
6155 | if( !empty( $this->tzoffsetto['value'] )) return ( $inclParam ) ? $this->tzoffsetto : $this->tzoffsetto['value']; |
|
6156 | break; |
|
@@ 6154-6156 (lines=3) @@ | ||
6151 | case 'TZOFFSETFROM': |
|
6152 | if( !empty( $this->tzoffsetfrom['value'] )) return ( $inclParam ) ? $this->tzoffsetfrom : $this->tzoffsetfrom['value']; |
|
6153 | break; |
|
6154 | case 'TZOFFSETTO': |
|
6155 | if( !empty( $this->tzoffsetto['value'] )) return ( $inclParam ) ? $this->tzoffsetto : $this->tzoffsetto['value']; |
|
6156 | break; |
|
6157 | case 'TZURL': |
|
6158 | if( !empty( $this->tzurl['value'] )) return ( $inclParam ) ? $this->tzurl : $this->tzurl['value']; |
|
6159 | break; |
|
@@ 6157-6159 (lines=3) @@ | ||
6154 | case 'TZOFFSETTO': |
|
6155 | if( !empty( $this->tzoffsetto['value'] )) return ( $inclParam ) ? $this->tzoffsetto : $this->tzoffsetto['value']; |
|
6156 | break; |
|
6157 | case 'TZURL': |
|
6158 | if( !empty( $this->tzurl['value'] )) return ( $inclParam ) ? $this->tzurl : $this->tzurl['value']; |
|
6159 | break; |
|
6160 | case 'UID': |
|
6161 | if( in_array( $this->objName, array( 'valarm', 'vtimezone', 'standard', 'daylight' ))) |
|
6162 | return FALSE; |
|
@@ 6167-6169 (lines=3) @@ | ||
6164 | $this->_makeuid(); |
|
6165 | return ( $inclParam ) ? $this->uid : $this->uid['value']; |
|
6166 | break; |
|
6167 | case 'URL': |
|
6168 | if( !empty( $this->url['value'] )) return ( $inclParam ) ? $this->url : $this->url['value']; |
|
6169 | break; |
|
6170 | default: |
|
6171 | if( $propName != 'X-PROP' ) { |
|
6172 | if( !isset( $this->xprop[$propName] )) return FALSE; |