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