API - XOOPS 2.5.11 Beta 2
By monxoops.fr
StorageInterface Interface Reference
Inheritance diagram for StorageInterface:

Public Member Functions

 save ($name, $data)
 
 fetch ($name)
 
 exists ($name)
 
 delete ($name)
 

Member Function Documentation

◆ delete()

delete (   $name)

Delete a key

Parameters
string$namekey name
Returns
boolean true if key deleted, otherwise false

Implemented in ArrayStorage, and FileStorage.

◆ exists()

exists (   $name)

Fetch key data by name

Parameters
string$namekey name
Returns
boolean true if key exists, otherwise false

Implemented in ArrayStorage, and FileStorage.

◆ fetch()

fetch (   $name)

Fetch key data by name

Parameters
string$namekey name
Returns
string|false key data (possibly serialized) or false on error

Implemented in ArrayStorage, and FileStorage.

◆ save()

save (   $name,
  $data 
)

Save key data by name

Parameters
string$namekey name
string$datakey data, serialized to string if required
Returns
boolean true if key saved, otherwise false

Implemented in ArrayStorage, and FileStorage.


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