XOOPS  2.6.0
Xoops\Core\Registry Class Reference
Inheritance diagram for Xoops\Core\Registry:
Inheritance graph

Public Member Functions

 clear ()
 
 get ($name, $default=null)
 
 has ($name)
 
 remove ($name)
 
 set ($name, $value)
 

Detailed Description

Definition at line 27 of file Registry.php.

Member Function Documentation

Xoops\Core\Registry::clear ( )

Remove all attributes.

Returns
array old values

Implements Xoops\Core\AttributeInterface.

Definition at line 97 of file Registry.php.

Xoops\Core\Registry::get (   $name,
  $default = null 
)

Retrieve a registry entry value.

Parameters
string$nameName of the registry entry
mixed$defaultA default value returned if the requested registry entry is not set.
Returns
mixed The value of the attribute, or null if not set.

Implements Xoops\Core\AttributeInterface.

Definition at line 39 of file Registry.php.

References $name.

Xoops\Core\Registry::has (   $name)

has - test if registry entry with a given name is set

Parameters
string$nameName of the registry entry
Returns
boolean true if name is registered

Implements Xoops\Core\AttributeInterface.

Definition at line 68 of file Registry.php.

References $name.

Xoops\Core\Registry::remove (   $name)

Remove an attribute.

Parameters
string$nameAn attribute name.
Returns
mixed An attribute value, if the named attribute existed and has been removed, otherwise NULL.

Implements Xoops\Core\AttributeInterface.

Definition at line 81 of file Registry.php.

References $name.

Xoops\Core\Registry::set (   $name,
  $value 
)

Set a registry entry value.

Parameters
string$nameName of the registry entry
mixed$valueValue for the registry entry
Returns
void

Implements Xoops\Core\AttributeInterface.

Definition at line 56 of file Registry.php.

References $name.


The documentation for this class was generated from the following file: