Method Summary
-
__construct($cacheFile = null)
-
removeCache()
Removes the cache.
-
addDirectory($dir, $ext = '.php')
Adds a directory to the autoloading system.
-
getInstance($cacheFile = null)
Retrieves the singleton instance of this class.
-
saveCache()
Saves the cache.
-
loadCache()
Loads the cache.
-
addFile($file, (Boolean) $register = true)
Adds a file to the autoloading system.
-
setClassPath($class, $path)
-
unregister()
Unregister sfSimpleAutoload from spl autoloader.
-
register()
Register sfSimpleAutoload in spl autoloader.
-
addFiles($files, (Boolean) $register = true)
Adds files to the autoloading system.
-
boolean
autoload($class)
Handles autoloading of classes.
-
reload()
Reloads cache.
Method Details
-
__construct ($cacheFile = null)
-
removeCache ()
Removes the cache.
-
addDirectory ($dir, $ext = '.php')
| $dir |
The directory to look for classes |
| $ext |
The extension to look for |
Adds a directory to the autoloading system.
-
getInstance ($cacheFile = null)
| $cacheFile |
The file path to save the cache |
Retrieves the singleton instance of this class.
returns A sfSimpleAutoload implementation instance.
-
saveCache ()
Saves the cache.
-
loadCache ()
Loads the cache.
-
addFile ($file, (Boolean) $register = true)
| $file |
A file path |
| $register |
Whether to register those files as single entities (used when reloading) |
Adds a file to the autoloading system.
-
setClassPath ($class, $path)
-
unregister ()
Unregister sfSimpleAutoload from spl autoloader.
-
register ()
Register sfSimpleAutoload in spl autoloader.
-
addFiles ($files, (Boolean) $register = true)
| $files |
An array of files |
| $register |
Whether to register those files as single entities (used when reloading) |
Adds files to the autoloading system.
-
(boolean) autoload ($class)
Handles autoloading of classes.
returns Returns true if the class has been loaded
-
reload ()
Reloads cache.
|