PHP Класс Inpsyde\MultilingualPress\Common\Nonce\WPNonce

С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Common\Nonce\Nonce
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
get_hash ( ) : string Returns a hash for the current action and site ID.

Описание методов

__construct() публичный Метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( string $action, Context $context = null )
$action string Nonce action.
$context Context Optional. Nonce context object. Defaults to null.

__toString() публичный Метод

Returns the nonce value.
С версии: 3.0.0
public __toString ( ) : string
Результат string Nonce value.

action() публичный Метод

Returns the nonce action.
С версии: 3.0.0
public action ( ) : string
Результат string Nonce action.

is_valid() публичный Метод

Checks if the nonce is valid with respect to the current context.
С версии: 3.0.0
public is_valid ( ) : boolean
Результат boolean Whether or not the nonce is valid.