]> git.mxchange.org Git - friendica-addons.git/blob - dav/SabreDAV/lib/Sabre/autoload.php
Merge branch '3.6-release'
[friendica-addons.git] / dav / SabreDAV / lib / Sabre / autoload.php
1 <?php
2
3 /**
4  * SabreDAV's PHP autoloader
5  *
6  * If you love the autoloader, and don't care as much about performance, this
7  * file register a new autoload function using spl_autoload_register.
8  *
9  * @package Sabre
10  * @subpackage DAV
11  * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
12  * @author Evert Pot (http://www.rooftopsolutions.nl/)
13  * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
14  */
15
16 /**
17  * @param string $className
18  * @return void
19  */
20 function Sabre_autoload($className) {
21
22     if(strpos($className,'Sabre_')===0) {
23
24         include dirname(__FILE__) . '/' . str_replace('_','/',substr($className,6)) . '.php';
25
26     }
27
28 }
29
30 spl_autoload_register('Sabre_autoload');
31