[ Index ] |
|
Code source de LifeType 1.2.4 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 135 lignes (4 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 3 fois |
Nécessite: | 0 fichiers |
ResourceClassLoader:: (5 méthodes):
ResourceClassLoader()
getLoader()
addSearchFolder()
setClassFileSuffix()
load()
Classe: ResourceClassLoader - X-Ref
\ingroup ControllerResourceClassLoader( $path = "./", $classFileSuffix = DEFAULT_CLASSFILE_SUFFIX ) X-Ref |
initializes the class loader. It is advisable to use the static ResourceClassLoader::getLoader() method param: path The starting path where classes can be loaded. It defaults to "./" param: classFileSuffix default suffix that each class file will have. It defaults to |
getLoader( $path = null ) X-Ref |
static method that returns a single instance of this class. param: path If the object is being created for the first time, this will be passed to the constructor return: a ResourceClassLoader object |
addSearchFolder( $folder ) X-Ref |
Adds a new folder to the list of folders to be searched param: folder The new folder that will be added return: always true |
setClassFileSuffix( $suffix ) X-Ref |
sets a new suffix for class files, in case our class files do not end with .class.php. Please note that only <b>one</b> suffix can be used at the same time. param: suffix the new suffix return: always true |
load( $actionClassName ) X-Ref |
Loads classes from disk using the list of folders that has been provided via ResourceClassLoader::addSearchFolder() The class will go through all the folders where classes can be located and if it can be found, it will proceed to load it. If not, an exception will be thrown param: actionClassName name of the class that we are going to load, <b>without the class suffix</b> return: True if successful |
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |