PHP Interface Horde_Data_Storage, horde

Copyright 2012-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Michael Slusarz ([email protected])
Show file Open project: horde/horde Interface Usage Examples

Public Methods

Method Description
clear ( ) Clear all stored data.
exists ( string $key ) : boolean Does the key exist?
get ( string $key ) : mixed Retrieve the data for a key.
set ( string $key, mixed $value = null ) Set the data for a key.

Method Details

clear() public method

Clear all stored data.
public clear ( )

exists() public method

Does the key exist?
public exists ( string $key ) : boolean
$key string Key.
return boolean Does the key exist?

get() public method

Retrieve the data for a key.
public get ( string $key ) : mixed
$key string Key.
return mixed Data value.

set() public method

Set the data for a key.
public set ( string $key, mixed $value = null )
$key string Key.
$value mixed Value. If null, clears the key value.