Member Function Documentation
| classFolder |
( |
$ |
class_name | ) |
|
| factorClass |
( |
$ |
classname, |
|
|
$ |
params = null, |
|
|
$ |
dependancy = null |
|
) |
| |
Create a new instance of the given class and link it as dependant (arguments as an array)
As a special case, if the classname starts with an ampersand ('&'), the class is considered as singleton, and therefore a cached version will be returned after the first instanciation
- Parameters:
-
| PHPDS | PHPDS_dependant | $dependancy | |
| string | array | $classname | name of the class to instanciate, or parameter array |
| array | $params | class specific parameters to feed the object's constructor |
May throw a PHPDS_exception
- Date:
- 20120112 (v1.1.2) (greg) moved to PHPDS_classFactory ; predep parameter changed from PHPDS main instance to $dependancy
-
20110915 (v1.1.1) (greg) moved class aliasing support from PHPDS_dependant
-
20100922 (v1.1) (greg) moved from PHPDS_dependant to PHPDS skel
-
20100426 (v1.0.1) (greg) direct owner is now sent instead of the top owner
-
20100217 (v1.0) (greg) created
- Version:
- 1.1.1
- Author:
- greg
- Returns:
- instance of $classname
Loads all available plugins into array.
- Returns:
- Array
| registerClass |
( |
$ |
className, |
|
|
$ |
classAlias, |
|
|
$ |
pluginFolder |
|
) |
| |
Field Documentation
a cache array for singletons
The documentation for this class was generated from the following file: