To create new object, with automaticly configuration
Definition at line 10 of file factory.class.php.
◆ __construct()
◆ get()
static get |
( |
|
$className, |
|
|
array |
$cfg = array() |
|
) |
| |
|
static |
Get a new object, with loading its definition and configuration
- Parameters
-
string | $className | The classname to create |
array | $cfg | The config |
- Returns
- object The new object
Definition at line 192 of file factory.class.php.
◆ getHelper()
static getHelper |
( |
|
$className, |
|
|
array |
$cfg = array() |
|
) |
| |
|
static |
Get a new helper object, with loading its definition and configuration
- Parameters
-
string | $className | The helper to create |
array | $cfg | The config |
- Returns
- stdClass The new object
Definition at line 213 of file factory.class.php.
◆ getModule()
static getModule |
( |
|
$name, |
|
|
array |
$cfg = array() , |
|
|
& |
$scaffold = false , |
|
|
|
$allowScaffold = true |
|
) |
| |
|
static |
Get a module, with scaffholding if possible
- Parameters
-
string | $name | Module name (or table name) |
array | $cfg | Configuration array for the module |
bool | &$scaffold | Indicate if the module was scaffolded |
bool | $allowScaffold | indicate if the module should be scaffolded |
- Returns
- module_abstract The new module
- Exceptions
-
Definition at line 227 of file factory.class.php.
◆ init()
◆ initCache()
◆ isCreable()
static isCreable |
( |
|
$className | ) |
|
|
static |
Check if a className is creable (ie if it's file exists)
- Returns
- bool
Definition at line 292 of file factory.class.php.
◆ load()
static load |
( |
|
$className | ) |
|
|
static |
Load a class definition
- Parameters
-
string | $className | The className to load |
- Returns
- true If success
- Exceptions
-
nExecption | If the file isn't find |
Definition at line 247 of file factory.class.php.
◆ loadCfg()
static loadCfg |
( |
|
$className, |
|
|
|
$searchParent = true |
|
) |
| |
|
static |
Return the configuration for a className
- Parameters
-
string | $className | ClassName to load its configuration |
bool | $searchParent | Indicate if the parent and implements class configuration should be searched |
- Returns
- array Cfg Array parameter
Definition at line 113 of file factory.class.php.
◆ mergeCfg()
static mergeCfg |
( |
array & |
$prm, |
|
|
array |
$cfg |
|
) |
| |
|
static |
Merge two cfg arrays
- Parameters
-
array | $prm | Initial array |
array | $cfg | Array with the parameter to overload |
Definition at line 155 of file factory.class.php.
◆ removeKeepUnique()
static removeKeepUnique |
( |
array & |
$prm | ) |
|
|
staticprivate |
Remove the keepUnique key
- Parameters
-
array | $prm | Configuration array |
Definition at line 177 of file factory.class.php.
◆ saveCache()
◆ $cacheLoad
◆ $cfg
◆ $constants
◆ $loadedCfg
◆ $loadedClass
◆ $loadFiles
◆ $saveCacheLoad
◆ $throwOnLoad
The documentation for this class was generated from the following file: