Method | Description | |
---|---|---|
__construct ( string $action, Context $context = null ) | Constructor. Sets up the properties. | |
__toString ( ) : string | Returns the nonce value. | |
action ( ) : string | Returns the nonce action. | |
is_valid ( ) : boolean | Checks if the nonce is valid with respect to the current context. |
Method | Description | |
---|---|---|
get_hash ( ) : string | Returns a hash for the current action and site ID. |
public __construct ( string $action, Context $context = null ) | ||
$action | string | Nonce action. |
$context | Context | Optional. Nonce context object. Defaults to null. |
public __toString ( ) : string | ||
return | string | Nonce value. |