wernerjoss / grav-plugin-caldav2ics Goto Github PK
View Code? Open in Web Editor NEWCreate ICS File(s) from remote CalDav Calendar(s)
License: MIT License
Create ICS File(s) from remote CalDav Calendar(s)
License: MIT License
Just to let you know... See getgrav/grav#3309
Nextcloud supports share URL, and it outputs ICS file without any requirement for authentication.
onAdminAfterSave
and $config = $this->config()
The name onAdminAfterSave
may cause some confusion. Although the data has been saved to disk, the variable $config
does NOT reflect the newly saved data, but instead still reflects the previous state.
To get the newly saved data, you need to reference $event['object']
, which contains the data being submitted by the user.
/** @var Data */
$data = $event['object']; <-- Contains the new data submitted by Admin
$isEnabled = $data['enabled'];
$hasJobsEnabled = $data['scheduled_jobs']['enabled'];
$config['enabled'] is quite useless.
If the plugin is not enabled, function getSubscribedEvents()
will not be called and hence your events will not be enabled and $config['enabled'] will never be evaluated. On the other hand, if the plugin is enabled, $config['enabled'] will always be 'true'.
To skip processing of onAdminAfterSaved
on every submit of Admin you could do:
/** @var Uri */
$uri = $this->grav['uri'];
if ('caldav2ics' !== $uri->basename()) {
return;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.