PHPDevShell 3.1.3-Stable
PHP OOP RAD Development Framework
PHPDS_classFactory Class Reference
Inheritance diagram for PHPDS_classFactory:
PHPDS_dependant

Public Member Functions

 registerClass ($className, $classAlias, $pluginFolder)
 loadRegistry ()
 factorClass ($classname, $params=null, $dependancy=null)
 classFolder ($class_name)

Data Fields

 $PluginClasses = array()

Protected Attributes

 $objectCache

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$classnamename of the class to instanciate, or parameter array
array$paramsclass 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
loadRegistry ( )

Loads all available plugins into array.

Returns:
Array
registerClass ( className,
classAlias,
pluginFolder 
)

Field Documentation

$objectCache [protected]

a cache array for singletons

$PluginClasses = array()

The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations