\ICSWriter
A simple ICS writer.
<h2>Examples</h2>
<h3>Send to client</h3>
<code>
$writer = new ICSWriter($this->data(), Director::absoluteURL('/'));
$writer->sendDownload();
</code>
<h3>Get output</h3>
<code>
$writer = new ICSWriter($this->data(), Director::absoluteURL('/'));
$writer->getOutput();
</code>
- Author: Alex Hayes <alex.hayes@dimension27.com>
- Copyright: 2011 Dimension27
Synopsis
class ICSWriter
{
- // members
- public Calendar $calendar;
- public $host;
- public $prodid;
- public $limit;
- protected array $lines = ;
- // methods
- public void __construct()
- public void sendDownload()
- public void getOutput()
- protected void addLine()
- protected string getUID()
- protected string getFormatedDateTime()
- protected void addDateTime()
Tasks
Line | Task |
---|---|
26+ | Support recurring events |
138+ | Add timezone support - note atm there is no timezone support in either Date or Time. |
Members
Methods
protected
- addDateTime() — Add a CalendarDateTime to the stack.
- addLine() — Add a line to the stack.
- getFormatedDateTime() — Get an ical formatted datetime string.
- getUID()
public
- __construct() — Construct an ICSWriter instance.
- getOutput() — Get the calendar as a string.
- sendDownload()