|
TYPO3 API
SVNRelease
|
00001 <?php 00002 00003 /* 00004 * This file is part of SwiftMailer. 00005 * (c) 2004-2009 Chris Corbyn 00006 * 00007 * For the full copyright and license information, please view the LICENSE 00008 * file that was distributed with this source code. 00009 */ 00010 00011 /** 00012 * General utility class in Swift Mailer, not to be instantiated. 00013 * 00014 * @package Swift 00015 * 00016 * @author Chris Corbyn 00017 */ 00018 abstract class Swift 00019 { 00020 00021 /** Swift Mailer Version number generated during dist release process */ 00022 const VERSION = '4.0.6'; 00023 00024 /** 00025 * Internal autoloader for spl_autoload_register(). 00026 * 00027 * @param string $class 00028 */ 00029 public static function autoload($class) 00030 { 00031 //Don't interfere with other autoloaders 00032 if (0 !== strpos($class, 'Swift')) 00033 { 00034 return false; 00035 } 00036 00037 $path = dirname(__FILE__).'/'.str_replace('_', '/', $class).'.php'; 00038 00039 if (!file_exists($path)) 00040 { 00041 return false; 00042 } 00043 00044 require_once $path; 00045 } 00046 00047 /** 00048 * Configure autoloading using Swift Mailer. 00049 * 00050 * This is designed to play nicely with other autoloaders. 00051 */ 00052 public static function registerAutoload() 00053 { 00054 spl_autoload_register(array('Swift', 'autoload')); 00055 } 00056 00057 }
1.8.0