PHP Class WDS_WP_REST_API\Storage\Transients

Inheritance: implements WDS_WP_REST_API\Storage\Transient_Interface
Show file Open project: webdevstudios/wds-wp-rest-api-connect

Protected Properties

Property Type Description
$expiration
$key
$value

Public Methods

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

Protected Methods

Method Description
delete_from_db ( )
get_from_db ( )
update_db ( )

Method Details

__construct() public method

public __construct ( )

delete() public method

Handles deleting the stored data for a connection.
public delete ( ) : boolean
return boolean Result of deletion from DB.

delete_from_db() protected method

protected delete_from_db ( )

get() public method

Retrieve stored option
public get ( $force = false ) : mixed
return mixed Value of transient requested

get_expiration() public method

Get transient expiration
public get_expiration ( )

get_from_db() protected method

protected get_from_db ( )

get_key() public method

Get transient key
public get_key ( )

set() public method

Update the stored value
public set ( $value ) : Result
return Result of storage update/add

set_expiration() public method

Set transient expiration
public set_expiration ( $expiration )

set_key() public method

Set transient key
public set_key ( $key )

update_db() protected method

protected update_db ( )

Property Details

$expiration protected property

protected $expiration

$key protected property

protected $key

$value protected property

protected $value