aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/Settings.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-10 17:26:44 -0700
committerredmatrix <git@macgirvin.com>2016-05-10 17:26:44 -0700
commit0b02a6d123b2014705998c94ddf3d460948d3eac (patch)
tree78ff2cab9944a4f5ab3f80ec93cbe1120de90bb2 /vendor/sabre/vobject/lib/Settings.php
parent40b5b6e9d2da7ab65c8b4d38cdceac83a4d78deb (diff)
downloadvolse-hubzilla-0b02a6d123b2014705998c94ddf3d460948d3eac.tar.gz
volse-hubzilla-0b02a6d123b2014705998c94ddf3d460948d3eac.tar.bz2
volse-hubzilla-0b02a6d123b2014705998c94ddf3d460948d3eac.zip
initial sabre upgrade (needs lots of work - to wit: authentication, redo the browser interface, and rework event export/import)
Diffstat (limited to 'vendor/sabre/vobject/lib/Settings.php')
-rw-r--r--vendor/sabre/vobject/lib/Settings.php56
1 files changed, 56 insertions, 0 deletions
diff --git a/vendor/sabre/vobject/lib/Settings.php b/vendor/sabre/vobject/lib/Settings.php
new file mode 100644
index 000000000..3f274ba8e
--- /dev/null
+++ b/vendor/sabre/vobject/lib/Settings.php
@@ -0,0 +1,56 @@
+<?php
+
+namespace Sabre\VObject;
+
+/**
+ * This class provides a list of global defaults for vobject.
+ *
+ * Some of these started to appear in various classes, so it made a bit more
+ * sense to centralize them, so it's easier for user to find and change these.
+ *
+ * The global nature of them does mean that changing the settings for one
+ * instance has a global influence.
+ *
+ * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
+ * @author Evert Pot (http://evertpot.com/)
+ * @license http://sabre.io/license/ Modified BSD License
+ */
+class Settings {
+
+ /**
+ * The minimum date we accept for various calculations with dates, such as
+ * recurrences.
+ *
+ * The choice of 1900 is pretty arbitrary, but it covers most common
+ * use-cases. In particular, it covers birthdates for virtually everyone
+ * alive on earth, which is less than 5 people at the time of writing.
+ */
+ static $minDate = '1900-01-01';
+
+ /**
+ * The maximum date we accept for various calculations with dates, such as
+ * recurrences.
+ *
+ * The choice of 2100 is pretty arbitrary, but should cover most
+ * appointments made for many years to come.
+ */
+ static $maxDate = '2100-01-01';
+
+ /**
+ * The maximum number of recurrences that will be generated.
+ *
+ * This setting limits the maximum of recurring events that this library
+ * generates in its recurrence iterators.
+ *
+ * This is a security measure. Without this, it would be possible to craft
+ * specific events that recur many, many times, potentially DDOSing the
+ * server.
+ *
+ * The default (3500) allows creation of a dialy event that goes on for 10
+ * years, which is hopefully long enough for most.
+ *
+ * Set this value to -1 to disable this control altogether.
+ */
+ static $maxRecurrences = 3500;
+
+}