Comments (4)
This is released in 2.11.0:
class MyCalendarFactory extends CalendarFactory
{
protected function getProperties(Calendar $calendar): Generator
{
yield from parent::getProperties($calendar);
// Additional custom properties:
yield new Property('X-WR-CALNAME', new TextValue('MyValue'));
}
}
from ical.
The changes that you suggest makes sense in my opinion.
Is there a reason why the getProperties method is declared private instead of protected?
The main reason is, that private
is always the default, when I create classes. For the EventFactory
that already changed, so yes, it makes sense to change this for the CalendarFactory
as well.
from ical.
I would like to add some custom extensions from https://en.wikipedia.org/wiki/ICalendar#Calendar_extensions and found this issue. Would it be possible to make getProperties() protected, as suggested, or implement custom extension adding functionality? Thanks!
from ical.
Indeed it is, thanks @markuspoerschke !
from ical.
Related Issues (20)
- Calendar app on the Mac does not accept this ics. HOT 6
- Geographic position is always NULL HOT 1
- No exist Method property in EventFactory HOT 4
- The organizer's e-mail changes the @ to %40 HOT 2
- ICS and calendar agent causing a lot of requests for past events on my asp.net mvc endpoint
- eluceo/ical 2.7.0 conflicts with php 7.4.6 HOT 1
- Invalid iCal generated when DateTimeZone is UTC
- How to cancel an event
- iCal in one line HOT 2
- Cannot set BYMONTHDAY to a comma-separated list
- UTC Format sometimes not recognized on some calendars HOT 2
- Set organizer not working properly
- Reporting a vulnerability
- SSL certificate expired
- Not working with Outlook Calendar
- [FEATURE] Enable TimeSpan work with only start Time
- Psalm error when trying to create a date object
- Documentation link is broken HOT 3
- Invalid TZID value or missing VTIMEZONE component (Europe/Paris)
- How to export multiple meetings into one .ics file?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ical.