All Notable changes to jpmurray/laravel-rrule
will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
- Added a
setRuleFromString()
method to set the recurrence object from a correctly formatted rRule string. THIS IS EXPERIMENTAL AND NOT PROPERLY TESTED (yet). - The
setRuleFromString()
method sets a public attribute to the recurrence object calledrawValues
. This is especially useful when working with forms, this could help set the default value for an edit page. - Added
getRawValues()
method to get the corresponding attribute.
- Fixed occurences generation
- Fixed references to "thursday" that pointed to "tuesday"
- Getters for corresponding setters (ex:
setCount() now have a
getCount()`); - Some tests
- 'getRruleString()' to access the value of rRuleString based on current rule values, on demand, without build()`
- BREAKING CHANGE: The occurence property (returned by
getOccurences()
) now contains a collection with each occurence's start and end. Those start and end are no longer\DateTime
objects but nowCarbon\Carbon
objects. setFrom()
to give a start to occurences generationgetToText()
to access the toText value based on current rule values, on demand, without build()`getOccurences()
to access the occurences based on current rule values, on demand, without build()`
setUntil()
method to have occurences until set date. Cannot be used withsetCount()
method.
- BREAKING CHANGE:
save()
method is now renamedbuild()
- Can now generate occurences correctly.
- Nothing
- Nothing
- Nothing
- Nothing
- Nothing