1Data::ICal::Property(3)User Contributed Perl DocumentatioDnata::ICal::Property(3)
2
3
4

NAME

6       Data::ICal::Property - Represents a property on an entry in an
7       iCalendar file
8

DESCRIPTION

10       A Data::ICal::Property object represents a single property on an entry
11       in an iCalendar file.  Properties have parameters in addition to their
12       value.
13
14       You shouldn't need to create Data::ICal::Property values directly --
15       just use "add_property" in Data::ICal::Entry.
16
17       The "encoding" parameter value is only interpreted by Data::ICal in the
18       "decoded_value" and "encode" methods: all other methods access the
19       encoded version directly (if there is an encoding).
20
21       Currently, the only supported encoding is "QUOTED-PRINTABLE".
22

METHODS

24   new $key, $value, [$parameter_hash]
25       Creates a new Data::ICal::Property with key $key and value $value.
26
27       If $parameter_hash is provided, sets the property's parameters to it.
28       The parameter hash should have keys equal to the names of the
29       parameters (case insensitive; parameter hashes should not contain two
30       different keys which are the same when converted to upper case); the
31       values should either be a string if the parameter has a single value or
32       an array reference of strings if the parameter has multiple values.
33
34   key [$key]
35       Gets or sets the key name of this property.
36
37   value [$value]
38       Gets or sets the value of this property.
39
40   parameters [$param_hash]
41       Gets or sets the parameter hash reference of this property.  Parameter
42       keys are converted to upper case.
43
44   vcal10 [$bool]
45       Gets or sets a boolean saying whether this should be interpreted as
46       vCalendar 1.0 (as opposed to iCalendar 2.0).  Generally, you can just
47       set this on your main Data::ICal object when you construct it;
48       "add_entry" automatically makes sure that sub-entries end up with the
49       same value as their parents, and "add_property" makes sure that
50       properties end up with the same value as their entry.
51
52   decoded_value
53       Gets the value of this property, converted from the encoding specified
54       in its encoding parameter.  (That is, "value" will return the encoded
55       version; this will apply the encoding.)  If the encoding is not
56       specified or recognized, just returns the raw value.
57
58   encode $encoding
59       Calls "decoded_value" to get the current decoded value, then encodes it
60       in $encoding, sets the value to that, and sets the encoding parameter
61       to $encoding. ($encoding is first converted to upper case.)
62
63       If $encoding is undef, deletes the encoding parameter and sets the
64       value to the decoded value.  Does nothing if the encoding is not
65       recognized.
66
67   as_string ARGS
68       Returns the property formatted as a string (including trailing
69       newline).
70
71       Takes named arguments:
72
73       fold
74           Defaults to true. pass in a false value if you need to generate
75           non-rfc-compliant calendars.
76
77       crlf
78           Defaults to "\x0d\x0a", per RFC 2445 spec.  This option is
79           primarily for backwards compatibility with version of this module
80           prior to 0.16, which used "\x0a".
81

AUTHOR

83       Best Practical Solutions, LLC <modules@bestpractical.com>
84
86       Copyright (c) 2005 - 2020, Best Practical Solutions, LLC.  All rights
87       reserved.
88
89       This module is free software; you can redistribute it and/or modify it
90       under the same terms as Perl itself. See perlartistic.
91
92
93
94perl v5.32.1                      2021-01-27           Data::ICal::Property(3)
Impressum