nextcloud/3rdparty/Sabre/autoload.php

32 lines
730 B
PHP
Raw Normal View History

2012-04-22 01:24:39 +04:00
<?php
/**
* SabreDAV's PHP autoloader
2012-04-22 01:24:39 +04:00
*
* If you love the autoloader, and don't care as much about performance, this
* file register a new autoload function using spl_autoload_register.
2012-04-22 01:24:39 +04:00
*
* @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
2012-04-22 01:24:39 +04:00
*/
function Sabre_autoload($className) {
if(strpos($className,'Sabre_')===0) {
include dirname(__FILE__) . '/' . str_replace('_','/',substr($className,6)) . '.php';
}
}
spl_autoload_register('Sabre_autoload');
2012-04-22 01:24:39 +04:00