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 63 of file class.ilICalWriter.php.
64 {
65
66
67 include_once './Services/Utilities/classes/class.ilStr.php';
68
69
70 $chunks = array();
72 while ($len) {
76 }
77
78 for (
$i = 0;
$i < count($chunks);
$i++) {
79 $this->ical .= $chunks[
$i];
80 if (isset($chunks[
$i+1])) {
83 }
84 }
86 }
const BEGIN_LINE_WHITESPACE
static subStr($a_str, $a_start, $a_length=null)
References $i, BEGIN_LINE_WHITESPACE, LINEBREAK, ilStr\strLen(), and ilStr\subStr().
◆ escapeText()
static ilICalWriter::escapeText |
( |
|
$a_text | ) |
|
|
static |
Definition at line 39 of file class.ilICalWriter.php.
40 {
41 $a_text = str_replace("\r\n", '\\n', $a_text);
42
43 return preg_replace(
44 array(
45 '/\\\/',
46 '/;/',
47 '/,/',
48 ),
49 array(
50 '\\',
51 '\;',
52 '\,',
53 ),
54 $a_text
55 );
56 }
Referenced by ilCalendarExport\createVEVENT().
◆ $ical
◆ BEGIN_LINE_WHITESPACE
const ilICalWriter::BEGIN_LINE_WHITESPACE = ' ' |
◆ LINE_SIZE
const ilICalWriter::LINE_SIZE = 74 |
◆ LINEBREAK
const ilICalWriter::LINEBREAK = "\r\n" |
The documentation for this class was generated from the following file: