Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ApplicationStorage Class Reference

Data storage for async platforms. More...

Static Public Member Functions

static put (string $key, $value)
 Put a value in storage at key position.
 
static get (string $key, $default=null)
 Return a value by key.
 
static getAllKeys ()
 Return all keys in storage.
 
static getAll ()
 Return all datas in storage.
 
static exists (string $key)
 Check if a key exists or not.
 
static search ($value)
 Search for a given value and returns the first corresponding key if successful.
 
static clear ()
 Clear all values in storage.
 
static remove (string $key)
 Remove a value by key.
 

Static Private Attributes

static $datas
 

Detailed Description

Data storage for async platforms.

Ubiquity\core$Application This class is part of Ubiquity

Author
jc
Version
1.0.0

Definition at line 14 of file ApplicationStorage.php.

Member Function Documentation

◆ clear()

static clear ( )
static

Clear all values in storage.

Definition at line 76 of file ApplicationStorage.php.

◆ exists()

static exists ( string  $key)
static

Check if a key exists or not.

Parameters
string$key
Returns
boolean

Definition at line 60 of file ApplicationStorage.php.

◆ get()

static get ( string  $key,
  $default = null 
)
static

Return a value by key.

Parameters
string$key
mixed$default
Returns
mixed

Definition at line 35 of file ApplicationStorage.php.

◆ getAll()

static getAll ( )
static

Return all datas in storage.

Returns
array

Definition at line 51 of file ApplicationStorage.php.

◆ getAllKeys()

static getAllKeys ( )
static

Return all keys in storage.

Returns
array

Definition at line 43 of file ApplicationStorage.php.

◆ put()

static put ( string  $key,
  $value 
)
static

Put a value in storage at key position.

Parameters
string$key
mixed$value

Definition at line 25 of file ApplicationStorage.php.

◆ remove()

static remove ( string  $key)
static

Remove a value by key.

Parameters
string$key

Definition at line 84 of file ApplicationStorage.php.

◆ search()

static search (   $value)
static

Search for a given value and returns the first corresponding key if successful.

Parameters
mixed$value
Returns
string|boolean

Definition at line 69 of file ApplicationStorage.php.

Field Documentation

◆ $datas

$datas
staticprivate

Definition at line 18 of file ApplicationStorage.php.


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