Constructor
JRegistry
__construct
([$defaultNamespace $namespace = 'default'], [$readOnly $readOnly = false])
-
$defaultNamespace
$namespace: string Default registry namespace
-
$readOnly
$readOnly: boolean Is the default namespace read only? [optional: default is false]
Redefinition of:
- JObject::__construct()
- Class constructor, overridden in descendant classes.
Redefined in descendants as:
Returns a reference to a global JRegistry object, only creating it if it doesn't already exist.
This method must be invoked as:
$registry = &JRegistry::getInstance($id[, $namespace][, $readOnly]);
object The
&getInstance
($id $id, [$namespace $namespace = 'default'], [$readOnly $readOnly = false])
-
$id
$id: string An ID for the registry instance
-
$namespace
$namespace: string The default namespace for the registry object [optional]
-
$readOnly
$readOnly: boolean Is he default namespace read only? [optional: default is false]
Get a registry value
mixed
getValue
($regpath $regpath, int 1)
-
int
1: User Id
-
$regpath
$regpath: string Registry path (e.g. joomla.content.showauthor)
Load a associative array of values into the default namespace
boolean
loadArray
(&array $array, [&namepsace $namespace = null], [mixed $readOnly = false])
-
&array
$array: Array Associative array of value to load
-
&namepsace
$namespace: String The name of the namespace
Load the contents of a file into the registry
boolean
loadFile
($file $file, [$format $format = 'INI'], [$namespace $namespace = null], [$readOnly $readOnly = false])
-
$file
$file: string Path to file to load
-
$format
$format: string Format of the file [optional: defaults to INI]
-
$namespace
$namespace: string Namespace to load the INI string into [optional]
-
$readOnly
$readOnly: boolean Should the namespace be read only after loading? [optional: default is false]
Load an INI string into the registry into the given namespace [or default if a namespace is not given]
boolean
loadINI
($data $data, [$namespace $namespace = null], [$readOnly $readOnly = false])
-
$data
$data: string INI formatted string to load into the registry
-
$namespace
$namespace: string Namespace to load the INI string into [optional]
-
$readOnly
$readOnly: boolean Should the namespace be read only after loading? [optional: default is false]
Load the public variables of the object into the default namespace.
boolean
loadObject
(&object &$object, [&namespace $namespace = null], [&readOnly $readOnly = false])
-
&object
&$object: stdClass The object holding the public vars to load
-
&namespace
$namespace: string Namespace to load the INI string into [optional]
-
&readOnly
$readOnly: boolean Should the namespace be read only after loading? [optional: default is false]
Load an XML string into the registry into the given namespace [or default if a namespace is not given]
boolean
loadXML
($data $data, [$namespace $namespace = null], [$readOnly $readOnly = false])
-
$data
$data: string XML formatted string to load into the registry
-
$namespace
$namespace: string Namespace to load the INI string into [optional]
-
$readOnly
$readOnly: boolean Should the namespace be read only after loading? [optional: default is false]
Create a namespace
boolean
makeNameSpace
($namespace $namespace, [$readOnly $readOnly = false])
-
$namespace
$namespace: string Name of the namespace to create
-
$readOnly
$readOnly: boolean Is the namespace read only?
Set a registry value
mixed
setValue
($regpath $regpath, mixed $value)
-
$regpath
$regpath: string Registry Path (e.g. joomla.content.showauthor)
-
mixed
$value: Value of entry
Transforms a namespace to an array
array
toArray
([$namespace $namespace = null])
-
$namespace
$namespace: string Namespace to return [optional: null returns the default namespace]
Redefined in descendants as:
Transforms a namespace to an object
object An
toObject
([$namespace $namespace = null])
-
$namespace
$namespace: string Namespace to return [optional: null returns the default namespace]
Redefined in descendants as:
Get a namespace in a given string format
string
toString
([$format $format = 'INI'], [$namespace $namespace = null])
-
$format
$format: string Format to return the string in
-
$namespace
$namespace: string Namespace to return [optional: null returns the default namespace]
Redefinition of:
- JObject::toString()
- Object-to-string conversion.
Inherited Methods
Inherited From JObject
JObject::__construct()
JObject::JObject()
JObject::get()
JObject::set()
JObject::toString()
JObject::__destruct()