PHP 클래스 Inpsyde\MultilingualPress\Common\Nonce\WPNonce

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Common\Nonce\Nonce
파일 보기 프로젝트 열기: inpsyde/multilingual-press 1 사용 예제들

공개 메소드들

메소드 설명
__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.