aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-03-10 05:37:46 +0000
committerChad Little <clittle@users.sourceforge.net>2003-03-10 05:37:46 +0000
commit2cbb8becc22165ac1745821cb5679c5f69d54b35 (patch)
tree32834ab4090f22fc5affbd75bbcbca7bc77b7f1f /functions
parent0e2d5305def052f5d64f57f39974a1493ab25439 (diff)
downloadphpicalendar-2cbb8becc22165ac1745821cb5679c5f69d54b35.tar.gz
phpicalendar-2cbb8becc22165ac1745821cb5679c5f69d54b35.tar.bz2
phpicalendar-2cbb8becc22165ac1745821cb5679c5f69d54b35.zip
Support for private and confidential CLASS.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 84c90d9..c30dfd7 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -107,6 +107,16 @@ if ($parse_file) {
);
} elseif ($line == 'END:VEVENT') {
+
+ // CLASS support
+ if ($class == 'PRIVATE') {
+ $summary ='**PRIVATE**';
+ $description ='**PRIVATE**';
+ } elseif ($class == 'CONFIDENTIAL') {
+ $summary ='**CONFIDENTIAL**';
+ $description ='**CONFIDENTIAL**';
+ }
+
// make sure we have some value for $uid
if (!isset($uid)) {
$uid = $uid_counter;

© 2014-2024 Faster IT GmbH | imprint | privacy policy