summaryrefslogtreecommitdiffstats
path: root/3rdparty/Sabre/autoload.php
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/Sabre/autoload.php')
-rwxr-xr-x3rdparty/Sabre/autoload.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/3rdparty/Sabre/autoload.php b/3rdparty/Sabre/autoload.php
new file mode 100755
index 00000000000..c7b537d83d3
--- /dev/null
+++ b/3rdparty/Sabre/autoload.php
@@ -0,0 +1,31 @@
+<?php
+
+/**
+ * SabreDAV's PHP autoloader
+ *
+ * If you love the autoloader, and don't care as much about performance, this
+ * file register a new autoload function using spl_autoload_register.
+ *
+ * @package Sabre
+ * @subpackage DAV
+ * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
+ * @author Evert Pot (http://www.rooftopsolutions.nl/)
+ * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
+ */
+
+/**
+ * @param string $className
+ * @return void
+ */
+function Sabre_autoload($className) {
+
+ if(strpos($className,'Sabre_')===0) {
+
+ include dirname(__FILE__) . '/' . str_replace('_','/',substr($className,6)) . '.php';
+
+ }
+
+}
+
+spl_autoload_register('Sabre_autoload');
+