PluginProbe
Import Social Events / 1.8.5
Import Social Events v1.8.5
1.9.1 1.9.0 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 All 61 releases
import-facebook-events / includes / lib / icalcreator / src / Vjournal.php

Vjournal.php in Import Social Events 1.8.5, at includes/lib/icalcreator/src/Vjournal.php

170 lines 5.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * iCalcreator, the PHP class package managing iCal (rfc2445/rfc5445) calendar information.
4 *
5 * copyright (c) 2007-2021 Kjell-Inge Gustafsson, kigkonsult, All rights reserved
6 * Link https://kigkonsult.se
7 * Package iCalcreator
8 * Version 2.30
9 * License Subject matter of licence is the software iCalcreator.
10 * The above copyright, link, package and version notices,
11 * this licence notice and the invariant [rfc5545] PRODID result use
12 * as implemented and invoked in iCalcreator shall be included in
13 * all copies or substantial portions of the iCalcreator.
14 *
15 * iCalcreator is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License as published
17 * by the Free Software Foundation, either version 3 of the License,
18 * or (at your option) any later version.
19 *
20 * iCalcreator is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public License
26 * along with iCalcreator. If not, see <https://www.gnu.org/licenses/>.
27 *
28 * This file is a part of iCalcreator.
29 */
30
31 namespace Kigkonsult\Icalcreator;
32
33 use Exception;
34
35 use function sprintf;
36 use function strtoupper;
37
38 /**
39 * iCalcreator VJOURNAL component class
40 *
41 * @author Kjell-Inge Gustafsson, kigkonsult <ical@kigkonsult.se>
42 * @since 2.29.9 - 2019-08-05
43 */
44 final class Vjournal extends Vcomponent
45 {
46 use Traits\ATTACHtrait,
47 Traits\ATTENDEEtrait,
48 Traits\CATEGORIEStrait,
49 Traits\CLASStrait,
50 Traits\COLORrfc7986trait,
51 Traits\COMMENTtrait,
52 Traits\CONTACTtrait,
53 Traits\CREATEDtrait,
54 Traits\DESCRIPTIONtrait,
55 Traits\DTSTAMPtrait,
56 Traits\DTSTARTtrait,
57 Traits\EXDATEtrait,
58 Traits\EXRULEtrait,
59 Traits\IMAGErfc7986trait,
60 Traits\LAST_MODIFIEDtrait,
61 Traits\ORGANIZERtrait,
62 Traits\RDATEtrait,
63 Traits\RECURRENCE_IDtrait,
64 Traits\RELATED_TOtrait,
65 Traits\REQUEST_STATUStrait,
66 Traits\RRULEtrait,
67 Traits\SEQUENCEtrait,
68 Traits\STATUStrait,
69 Traits\SUMMARYtrait,
70 Traits\UIDrfc7986trait,
71 Traits\URLtrait;
72
73 /**
74 * @var string
75 */
76 protected static $compSgn = 'j';
77
78 /**
79 * Destructor
80 *
81 * @since 2.29.9 - 2019-08-05
82 */
83 public function __destruct()
84 {
85 unset(
86 $this->compType,
87 $this->xprop,
88 $this->components,
89 $this->unparsed,
90 $this->config,
91 $this->compix,
92 $this->propIx,
93 $this->propDelIx
94 );
95 unset(
96 $this->cno,
97 $this->srtk
98 );
99 unset(
100 $this->attach,
101 $this->attendee,
102 $this->categories,
103 $this->class,
104 $this->color,
105 $this->comment,
106 $this->contact,
107 $this->created,
108 $this->description,
109 $this->dtstamp,
110 $this->dtstart,
111 $this->exdate,
112 $this->exrule,
113 $this->image,
114 $this->lastmodified,
115 $this->organizer,
116 $this->rdate,
117 $this->recurrenceid,
118 $this->relatedto,
119 $this->requeststatus,
120 $this->rrule,
121 $this->sequence,
122 $this->status,
123 $this->summary,
124 $this->uid,
125 $this->url
126 );
127 }
128
129 /**
130 * Return formatted output for calendar component VJOURNAL object instance
131 *
132 * @return string
133 * @throws Exception (on Rdate err)
134 * @since 2.29.9 - 2019-08-05
135 */
136 public function createComponent()
137 {
138 $compType = strtoupper( $this->getCompType());
139 $component = sprintf( self::$FMTBEGIN, $compType );
140 $component .= $this->createUid();
141 $component .= $this->createDtstamp();
142 $component .= $this->createAttach();
143 $component .= $this->createAttendee();
144 $component .= $this->createCategories();
145 $component .= $this->createClass();
146 $component .= $this->createColor();
147 $component .= $this->createComment();
148 $component .= $this->createContact();
149 $component .= $this->createCreated();
150 $component .= $this->createDescription();
151 $component .= $this->createDtstart();
152 $component .= $this->createExdate();
153 $component .= $this->createExrule();
154 $component .= $this->createImage();
155 $component .= $this->createLastmodified();
156 $component .= $this->createOrganizer();
157 $component .= $this->createRdate();
158 $component .= $this->createRequeststatus();
159 $component .= $this->createRecurrenceid();
160 $component .= $this->createRelatedto();
161 $component .= $this->createRrule();
162 $component .= $this->createSequence();
163 $component .= $this->createStatus();
164 $component .= $this->createSummary();
165 $component .= $this->createUrl();
166 $component .= $this->createXprop();
167 return $component . sprintf( self::$FMTEND, $compType );
168 }
169 }
170