Definition at line 21 of file class.ilICalWriter.php.
◆ __construct()
| ilICalWriter::__construct |
( |
| ) |
|
◆ __toString()
| ilICalWriter::__toString |
( |
| ) |
|
◆ addLine()
| ilICalWriter::addLine |
( |
string |
$a_line | ) |
|
Definition at line 60 of file class.ilICalWriter.php.
60 : void
61 {
62
63 $chunks = [];
65 while ($len) {
69 }
70
71 for (
$i = 0;
$i < count($chunks);
$i++) {
72 $line = (
$i > 0) ? self::BEGIN_LINE_WHITESPACE : self::EMPTY;
74 $line .= (isset($chunks[
$i + 1]) || (
$i + 1) === count($chunks)) ? self::LINEBREAK : self::EMPTY;
75 $this->lines[] = $line;
76 }
77 }
static subStr(string $a_str, int $a_start, ?int $a_length=null)
static strLen(string $a_string)
References $i, ilStr\strLen(), and ilStr\subStr().
◆ append()
Definition at line 89 of file class.ilICalWriter.php.
89 : void
90 {
91 $this->lines = array_merge($this->lines, $other->lines);
92 }
◆ byteCount()
| ilICalWriter::byteCount |
( |
| ) |
|
◆ clear()
◆ escapeText()
| static ilICalWriter::escapeText |
( |
string |
$a_text | ) |
|
|
static |
Definition at line 41 of file class.ilICalWriter.php.
41 : string
42 {
43 $a_text = str_replace("\r\n", '\\n', $a_text);
44
45 return preg_replace(
46 array(
47 '/\\\/',
48 '/;/',
49 '/,/',
50 ),
51 array(
52 '\\',
53 '\;',
54 '\,',
55 ),
56 $a_text
57 );
58 }
Referenced by ilCalendarExport\createVEVENT().
◆ $lines
| array ilICalWriter::$lines |
|
protected |
◆ BEGIN_LINE_WHITESPACE
| const ilICalWriter::BEGIN_LINE_WHITESPACE = ' ' |
|
protected |
◆ EMPTY
| const ilICalWriter::EMPTY = '' |
|
protected |
◆ LINE_SIZE
| const ilICalWriter::LINE_SIZE = 74 |
|
protected |
◆ LINEBREAK
| const ilICalWriter::LINEBREAK = "\r\n" |
|
protected |
The documentation for this class was generated from the following file: