Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
enrol_lti\local\ltiadvantage\lib\launch_cache_session Class Reference
Inheritance diagram for enrol_lti\local\ltiadvantage\lib\launch_cache_session:
Packback\Lti1p3\Interfaces\ICache

Public Member Functions

 cacheAccessToken (string $key, string $accessToken)
 Cache the access token.
 
 cacheLaunchData (string $key, array $jwtBody)
 Add launch data to the cache.
 
 cacheNonce (string $nonce, string $state)
 Cache the nonce.
 
 checkNonceIsValid (string $nonce, string $state)
 Check whether the cache contains the nonce.
 
 clearAccessToken (string $key)
 Clear the access token from the cache.
 
 getAccessToken (string $key)
 Get a cached access token.
 
 getLaunchData (string $key)
 Get the launch data from the cache.
 
 purge ()
 Delete all data from the session cache.
 

Member Function Documentation

◆ cacheAccessToken()

enrol_lti\local\ltiadvantage\lib\launch_cache_session::cacheAccessToken ( string $key,
string $accessToken )

Cache the access token.

Parameters
string$keythe key
string$accessTokenthe access token

Implements Packback\Lti1p3\Interfaces\ICache.

◆ cacheLaunchData()

enrol_lti\local\ltiadvantage\lib\launch_cache_session::cacheLaunchData ( string $key,
array $jwtBody )

Add launch data to the cache.

Parameters
string$keythe launch id.
array$jwtBodythe launch data.

Implements Packback\Lti1p3\Interfaces\ICache.

◆ cacheNonce()

enrol_lti\local\ltiadvantage\lib\launch_cache_session::cacheNonce ( string $nonce,
string $state )

Cache the nonce.

Parameters
string$noncethe nonce.
string$statethe state.

Implements Packback\Lti1p3\Interfaces\ICache.

◆ checkNonceIsValid()

enrol_lti\local\ltiadvantage\lib\launch_cache_session::checkNonceIsValid ( string $nonce,
string $state )

Check whether the cache contains the nonce.

Parameters
string$noncethe nonce
string$statethe state
Return values
booltrue if found, false otherwise.

Implements Packback\Lti1p3\Interfaces\ICache.

◆ clearAccessToken()

enrol_lti\local\ltiadvantage\lib\launch_cache_session::clearAccessToken ( string $key)

Clear the access token from the cache.

Parameters
string$keythe key to purge.

Implements Packback\Lti1p3\Interfaces\ICache.

◆ getAccessToken()

enrol_lti\local\ltiadvantage\lib\launch_cache_session::getAccessToken ( string $key)

Get a cached access token.

Parameters
string$keythe key to check.
Return values
string|nullthe token string, or null if not found.

Implements Packback\Lti1p3\Interfaces\ICache.

◆ getLaunchData()

enrol_lti\local\ltiadvantage\lib\launch_cache_session::getLaunchData ( string $key)

Get the launch data from the cache.

Parameters
string$keythe launch id.
Return values
array|nullthe launch data.

Implements Packback\Lti1p3\Interfaces\ICache.


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