Definition at line 24 of file class.ilICalWriter.php.
◆ __construct()
ilICalWriter::__construct |
( |
| ) |
|
◆ __toString()
ilICalWriter::__toString |
( |
| ) |
|
◆ addLine()
ilICalWriter::addLine |
( |
|
$a_line | ) |
|
Add a line to the ical string.
- Returns
- Parameters
-
Definition at line 62 of file class.ilICalWriter.php.
63 {
64
65
66 include_once './Services/Utilities/classes/class.ilStr.php';
67
68
69 $chunks = array();
71 while($len)
72 {
76 }
77
78 for($i = 0; $i < count($chunks); $i++)
79 {
80 $this->ical .= $chunks[$i];
81 if(isset($chunks[$i+1]))
82 {
85 }
86 }
88 }
const BEGIN_LINE_WHITESPACE
static subStr($a_str, $a_start, $a_length=NULL)
References BEGIN_LINE_WHITESPACE, LINEBREAK, ilStr\strLen(), and ilStr\subStr().
◆ escapeText()
static ilICalWriter::escapeText |
( |
|
$a_text | ) |
|
|
static |
Definition at line 38 of file class.ilICalWriter.php.
39 {
40 $a_text = str_replace("\r\n", '\\n', $a_text);
41
42 return preg_replace(
43 array(
44 '/\\\/',
45 '/;/',
46 '/,/',
47 ),
48 array(
49 '\\',
50 '\;',
51 '\,',
52 ),
53 $a_text
54 );
55 }
Referenced by ilCalendarExport\createVEVENT().
◆ $ical
◆ BEGIN_LINE_WHITESPACE
const ilICalWriter::BEGIN_LINE_WHITESPACE = ' ' |
◆ LINE_SIZE
const ilICalWriter::LINE_SIZE = 75 |
◆ LINEBREAK
const ilICalWriter::LINEBREAK = "\r\n" |
The documentation for this class was generated from the following file: