Static Public Member Functions |
static | escapeText ($a_text) |
Private Attributes |
| $ical = '' |
Detailed Description
Definition at line 24 of file class.ilICalWriter.php.
Constructor & Destructor Documentation
ilICalWriter::__construct |
( |
| ) |
|
Member Function Documentation
ilICalWriter::__toString |
( |
| ) |
|
ilICalWriter::addLine |
( |
|
$a_line | ) |
|
Add a line to the ical string.
- Returns
- Parameters
-
Definition at line 64 of file class.ilICalWriter.php.
References BEGIN_LINE_WHITESPACE, and LINEBREAK.
{
$chunks = str_split($a_line, self::LINE_SIZE);
for($i = 0; $i < count($chunks); $i++)
{
$this->ical .= $chunks[$i];
if(isset($chunks[$i+1]))
{
}
}
}
static ilICalWriter::escapeText |
( |
|
$a_text | ) |
|
|
static |
Definition at line 38 of file class.ilICalWriter.php.
Referenced by ilCalendarExport\createVEVENT().
{
return preg_replace(
array(
'/\\\/',
'/;/',
'/,/',
'/\\\n/',
'/\\\N/'
),
array(
'\\',
'\;',
'\,',
'\\n',
'\\N'
),
$a_text
);
}
Field Documentation
const ilICalWriter::BEGIN_LINE_WHITESPACE = ' ' |
const ilICalWriter::LINE_SIZE = 75 |
const ilICalWriter::LINEBREAK = "\r\n" |
The documentation for this class was generated from the following file: