Definition at line 24 of file class.ilICalWriter.php.
◆ __construct()
ilICalWriter::__construct |
( |
| ) |
|
◆ __toString()
ilICalWriter::__toString |
( |
| ) |
|
◆ addLine()
ilICalWriter::addLine |
( |
string |
$a_line | ) |
|
Definition at line 61 of file class.ilICalWriter.php.
61 : void
62 {
63
64
65 include_once './Services/Utilities/classes/class.ilStr.php';
66
67
68 $chunks = [];
70 while ($len) {
74 }
75
76 for (
$i = 0;
$i < count($chunks);
$i++) {
77 $line = (
$i > 0) ? self::BEGIN_LINE_WHITESPACE : self::EMPTY;
79 $line .= (isset($chunks[
$i + 1]) || (
$i + 1) === count($chunks)) ? self::LINEBREAK : self::EMPTY;
80 $this->lines[] = $line;
81 }
82 }
static subStr($a_str, $a_start, $a_length=null)
References $i, ilStr\strLen(), and ilStr\subStr().
◆ append()
Definition at line 94 of file class.ilICalWriter.php.
94 : void
95 {
96 $this->lines = array_merge($this->lines, $other->lines);
97 }
◆ byteCount()
ilICalWriter::byteCount |
( |
| ) |
|
◆ clear()
◆ escapeText()
static ilICalWriter::escapeText |
( |
|
$a_text | ) |
|
|
static |
Definition at line 42 of file class.ilICalWriter.php.
43 {
44 $a_text = str_replace("\r\n", '\\n', $a_text);
45
46 return preg_replace(
47 array(
48 '/\\\/',
49 '/;/',
50 '/,/',
51 ),
52 array(
53 '\\',
54 '\;',
55 '\,',
56 ),
57 $a_text
58 );
59 }
Referenced by ilCalendarExport\createVEVENT().
◆ $lines
◆ 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: