\EasyPeasyICS

Class EasyPeasyICS.

Simple ICS data generator

Summary

Methods
Properties
Constants
__construct()
addEvent()
getEvents()
clearEvents()
getName()
setName()
render()
No public properties found
No constants found
No protected methods found
$calendarName
$events
N/A
No private methods found
No private properties found
N/A

Properties

$calendarName

$calendarName : string

The name of the calendar

Type

string

$events

$events : array

The array of events to add to this calendar

Type

array

Methods

__construct()

__construct(string  $calendarName = "") 

Constructor

Parameters

string $calendarName

addEvent()

addEvent(string  $start, string  $end, string  $summary = '', string  $description = '', string  $url = '', string  $uid = '') : array

Add an event to this calendar.

Parameters

string $start

The start date and time as a unix timestamp

string $end

The end date and time as a unix timestamp

string $summary

A summary or title for the event

string $description

A description of the event

string $url

A URL for the event

string $uid

A unique identifier for the event - generated automatically if not provided

Returns

array —

An array of event details, including any generated UID

getEvents()

getEvents() : array

Returns

array —

Get the array of events.

clearEvents()

clearEvents() 

Clear all events.

getName()

getName() : string

Get the name of the calendar.

Returns

string

setName()

setName(  $name) 

Set the name of the calendar.

Parameters

$name

render()

render(boolean  $output = true) : string

Render and optionally output a vcal string.

Parameters

boolean $output

Whether to output the calendar data directly (the default).

Returns

string —

The complete rendered vlal