PHP Interface WDS_WP_REST_API\Storage\Transient_Interface

Afficher le fichier Open project: webdevstudios/wds-wp-rest-api-connect Interface Usage Examples

Méthodes publiques

Méthode Description
delete ( ) : boolean Handles deleting the stored data for a connection
get ( boolean $force = false ) : mixed Retrieve stored option
get_expiration ( ) Get transient expiration
get_key ( ) Get option key
set ( mixed $value ) : Result Update the stored value
set_expiration ( $expiration ) Set transient expiration
set_key ( $key ) Set option key

Method Details

delete() public méthode

Handles deleting the stored data for a connection
public delete ( ) : boolean
Résultat boolean Result of deletion from DB

get() public méthode

Retrieve stored option
public get ( boolean $force = false ) : mixed
$force boolean Force a new call to get_option
Résultat mixed Value of option requested

get_expiration() public méthode

Get transient expiration
public get_expiration ( )

get_key() public méthode

Get option key
public get_key ( )

set() public méthode

Update the stored value
public set ( mixed $value ) : Result
$value mixed Value to be updated
Résultat Result of storage update/add

set_expiration() public méthode

Set transient expiration
public set_expiration ( $expiration )

set_key() public méthode

Set option key
public set_key ( $key )