XOOPS  2.6.0
Xoops\Core\AttributeInterface Interface Reference
Inheritance diagram for Xoops\Core\AttributeInterface:
Inheritance graph

Public Member Functions

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

Detailed Description

Definition at line 24 of file AttributeInterface.php.

Member Function Documentation

Xoops\Core\AttributeInterface::clear ( )

Remove all attributes, return previous values.

Returns
array old attributes values

Implemented in Xoops\Core\Session\Manager, and Xoops\Core\Registry.

Referenced by Xoops\Core\Session\Fingerprint\checkSessionPrint().

Here is the caller graph for this function:

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

Retrieve an attribute value.

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

Implemented in Xoops\Core\Session\Manager, and Xoops\Core\Registry.

Referenced by Xoops\Core\Session\Fingerprint\checkSessionPrint().

Here is the caller graph for this function:

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

Determine if an attribute exists.

Parameters
string$nameAn attribute name.
Returns
boolean TRUE if the given attribute exists, otherwise FALSE.

Implemented in Xoops\Core\Session\Manager, and Xoops\Core\Registry.

Xoops\Core\AttributeInterface::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.

Implemented in Xoops\Core\Session\Manager, and Xoops\Core\Registry.

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

Set an attribute value.

Parameters
string$nameName of the attribute option
mixed$valueValue of the attribute option
Returns
void

Implemented in Xoops\Core\Session\Manager, and Xoops\Core\Registry.

Referenced by Xoops\Core\Session\Fingerprint\checkSessionPrint().

Here is the caller graph for this function:


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