Common

# Class: StructHandler Source Location: /common/StructHandler.php
### Class Overview
Structure management class | ### Constants CONTEXT_INI CONTEXT_OBJ | ### Methods deepClone loadFromArray loadFromIni mergeOverride
### Class Details [line 28] Structure management class [ Top ] ### Class Methods ### method deepClone [line 105]
`mixed deepClone( mixed $obj)`
Performs full object cloning. #### Tags:
return: | cloned object
access: | public
static: |
#### Parameters:
mixed | $obj | object to clone
[ Top ] ### method loadFromArray [line 40]
`stdClass loadFromArray( array $array)`
Returns a structure from an array loaded from a .ini Value of key my.little.key will be stored in structure->my->little->key. #### Tags:
access: | public
static: |
#### Parameters:
array | $array |
[ Top ] ### method loadFromIni [line 58]
`stdClass loadFromIni( string $iniFile)`
Returns a structure with content of a .ini file #### Tags:
access: | public
static: |
see: | StructHandler::loadFromArray()
#### Parameters:
string | $iniFile | file path
[ Top ] ### method mergeOverride [line 74]
`mixed mergeOverride( mixed $object, mixed $override, [boolean $mute = false])`
Merges two objects Maybe does not belong to struct handler, as it can be used on any structure (to be tested). #### Tags:
return: | result of merge
access: | public
static: |
#### Parameters:
mixed | $object | first object
mixed | $override | second object
boolean | $mute | if true, prints no warnings
[ Top ] ### Class Constants #### CONTEXT_INI = 1 [line 30] [ Top ] #### CONTEXT_OBJ = 2 [line 31] [ Top ] Documentation generated on Fri, 21 Sep 2007 13:31:08 +0200 by phpDocumentor 1.3.0RC3