If the instance does not exist it will
be created.
Parameters id JRegistry instance ID
[namespace]
Default namespace, only used if the instance
does not exist
Returns A global instance of JRegistry
Appendix
[ 432 ]
getNameSpaces( ) : array
Gets the names of all the namespaces in the registry.
Returns Array of namespace names
getValue( regpath : string, default : mixed=null ) : mixed
Gets a value from the registry. regpath can include multiple levels separated by periods.
If the path includes no periods, the value will be retrieved from the default namespace. If
the value is not set, the default value will be returned.
Parameters regpath Path to value
[default] Default value
Returns Value of the item identified by regpath
loadArray( array : array, namespace : string=null ) : boolean
Loads an associative array into the registry namespace. The array keys must not contain
periods. If the namespace is not specified, the default namespace will be used.
Parameters array Associative array to load
[namespace] The namespace to load the array into
Returns true
loadFile( file : string, format : string='INI', namespace : string=null ) :
boolean
Loads a configuration file into the registry namespace.
Pages:
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598