API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
JRegistry::__construct | ( | $ | namespace = 'default' | ) |
Constructor
protected
string | $namespace | Default registry namespace |
JRegistry::__clone | ( | ) |
& JRegistry::getInstance | ( | $ | id, |
$ | namespace = 'default' |
||
) | [static] |
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] |
Références $id.
JRegistry::getNameSpaces | ( | ) |
Get the list of namespaces
public
JRegistry::getValue | ( | $ | regpath, |
$ | default = null |
||
) |
JRegistry::loadArray | ( | $ | array, |
$ | namespace = null |
||
) |
JRegistry::loadFile | ( | $ | file, |
$ | format = 'INI' , |
||
$ | namespace = null |
||
) |
Load the contents of a file into the registry
public
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] |
Références $data, $file, $k, JRegistryFormat::getInstance(), jimport(), et JFile::read().
JRegistry::loadINI | ( | $ | data, |
$ | namespace = null |
||
) |
Load an INI string into the registry into the given namespace [or default if a namespace is not given]
public
string | $data | INI formatted string to load into the registry |
string | $namespace | Namespace to load the INI string into [optional] |
Références $data, $k, et JRegistryFormat::getInstance().
JRegistry::loadObject | ( | &$ | object, |
$ | namespace = null |
||
) |
Load the public variables of the object into the default namespace.
public
object | $object | The object holding the public vars to load |
string | $namespace | Namespace to load the INI string into [optional] |
Références $k.
JRegistry::loadXML | ( | $ | data, |
$ | namespace = null |
||
) |
Load an XML string into the registry into the given namespace [or default if a namespace is not given]
public
string | $data | XML formatted string to load into the registry |
string | $namespace | Namespace to load the XML string into [optional] |
Références $data, $k, et JRegistryFormat::getInstance().
JRegistry::makeNameSpace | ( | $ | namespace | ) |
Create a namespace
public
string | $namespace | Name of the namespace to create |
JRegistry::merge | ( | &$ | source | ) |
JRegistry::setValue | ( | $ | regpath, |
$ | value | ||
) |
JRegistry::toArray | ( | $ | namespace = null | ) |
JRegistry::toObject | ( | $ | namespace = null | ) |
Transforms a namespace to an object
public
string | $namespace | Namespace to return [optional: null returns the default namespace] |
JRegistry::toString | ( | $ | format = 'INI' , |
$ | namespace = null , |
||
$ | params = null |
||
) |
Get a namespace in a given string format
public
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 |
Références $params, et JRegistryFormat::getInstance().
JRegistry::$_defaultNameSpace = null |
JRegistry::$_registry = array () |