Admidio API
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Packages

  • com
    • tecnick
      • tcpdf
  • None
  • PHPMailer
    • easypeasyics
  • PHPWavUtils
  • Securimage
    • classes

Classes

  • EasyPeasyICS

Class EasyPeasyICS

Class EasyPeasyICS. Simple ICS data generator

Package: phpmailer\easypeasyics
Author: Marcus Bointon phpmailer@synchromedia.co.uk
Author:

Manuel Reinhard manu@sprain.ch

Built with inspiration from http://stackoverflow.com/questions/1463480/how-can-i-use-php-to-dynamically-publish-an-ical-file-to-be-read-by-google-calend/1464355#1464355 History: 2010/12/17 - Manuel Reinhard - when it all started 2014 PHPMailer project becomes maintainer


Located at extras/EasyPeasyICS.php

Methods summary

public
# __construct( string $calendarName = "" )

Constructor

Constructor

Parameters

$calendarName
public array
# addEvent( string $start, string $end, string $summary = '', string $description = '', string $url = '', string $uid = '' )

Add an event to this calendar.

Add an event to this calendar.

Parameters

$start
The start date and time as a unix timestamp
$end
The end date and time as a unix timestamp
$summary
A summary or title for the event
$description
A description of the event
$url
A URL for the event
$uid
A unique identifier for the event - generated automatically if not provided

Returns

array
An array of event details, including any generated UID
public array
# getEvents( )

Returns

array
Get the array of events.
public
# clearEvents( )

Clear all events.

Clear all events.

public string
# getName( )

Get the name of the calendar.

Get the name of the calendar.

Returns

string
public
# setName( $name )

Set the name of the calendar.

Set the name of the calendar.

Parameters

$name
public string
# render( boolean $output = true )

Render and optionally output a vcal string.

Render and optionally output a vcal string.

Parameters

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

Returns

string
The complete rendered vlal

Properties summary

protected string $calendarName

The name of the calendar

The name of the calendar

#
protected array $events

The array of events to add to this calendar

The array of events to add to this calendar

# array()
Admidio API API documentation generated by ApiGen