PHP Classes

File: AddEventExample.php

Recommend this page to a friend!
  Classes of Stefan Kientzler   PHP Google Calendar Add Event   AddEventExample.php   Download  
File: AddEventExample.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Google Calendar Add Event
Create 'Add to my google calendar' link for a page
Author: By
Last change: Update AddEventExample.php
Date: 2 years ago
Size: 889 bytes


Class file image Download
require_once 'autoloader.php';


$oLink = new GCalAddEventLink();

$oLink->setSubject('Zoom meeting at christmas day');
$oLink->setStart('2020-12-24 13:00');
$oLink->setDuration('PT1H'); // 1 hour
'We just want to meet us via zoom cause we are not allowed to ' . PHP_EOL .
'meet us at the christmas market :-(' . PHP_EOL . PHP_EOL .
'And this is just a check whether the usual problems caused by' . PHP_EOL .
'German umlauts are correctly intercepted: , , , , , , ...'

'<h1>Example to add event to google calendar</h1>' . PHP_EOL;
'<a target="_blank" href="' . $oLink->getHREF() . '">Add to google calendar</a>' . PHP_EOL;