JRegistry
JRegistry class
Located in /joomla/registry/registry.php (line 28)
JObject (Subpackage Base) JRegistry (Subpackage Registry)
Class | Description |
---|---|
JParameter | Parameter handler |
Constructor
- string $namespace: Default registry namespace
- JObject::__construct()
- Class constructor, overridden in descendant classes.
- JParameter::__construct() : Constructor
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]);
- string $id: An ID for the registry instance
- string $namespace: The default namespace for the registry object [optional]
Get a registry value
- string $regpath: Registry path (e.g. joomla.content.showauthor)
- mixed $default: Optional default value
Load a associative array of values into the default namespace
- array $array: Associative array of value to load
- string $namepsace: The name of the namespace
- $namespace
Load the contents of a file into the registry
- string $file: Path to file to load
- string $format: Format of the file [optional: defaults to INI]
- string $namespace: Namespace to load the INI string into [optional]
Load an INI string into the registry into the given namespace [or default if a namespace is not given]
- string $data: INI formatted string to load into the registry
- string $namespace: Namespace to load the INI string into [optional]
Load the public variables of the object into the default namespace.
- object $object: The object holding the public vars to load
- string $namespace: Namespace to load the INI string into [optional]
- &$object
Load an XML string into the registry into the given namespace [or default if a namespace is not given]
- string $data: XML formatted string to load into the registry
- string $namespace: Namespace to load the XML string into [optional]
Create a namespace
- string $namespace: Name of the namespace to create
Merge a JRegistry object into this one
- object $source: Source JRegistry object ot merge
- &$source
Set a registry value
- string $regpath: Registry Path (e.g. joomla.content.showauthor)
- mixed $value: Value of entry
Transforms a namespace to an array
- string $namespace: Namespace to return [optional: null returns the default namespace]
Transforms a namespace to an object
- string $namespace: Namespace to return [optional: null returns the default namespace]
Get a namespace in a given string format
- string $format: Format to return the string in
- string $namespace: Namespace to return [optional: null returns the default namespace]
- mixed $params: Parameters used by the formatter, see formatters for more info
- JObject::toString()
- Object-to-string conversion.
Inherited Methods
Inherited From JObject
JObject::JObject()
JObject::__construct()
JObject::get()
JObject::getPublicProperties()
JObject::set()
JObject::toString()
Documentation generated on Mon, 05 Mar 2007 21:20:05 +0000 by phpDocumentor 1.3.1