PHP 클래스 WP_Async_Request, wp-background-processing

파일 보기 프로젝트 열기: A5hleyRich/wp-background-processing 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$action string (default value: 'async_request')
$data array (default value: array())
$identifier mixed Identifier
$prefix string (default value: 'wp')

공개 메소드들

메소드 설명
__construct ( ) Initiate new async request
data ( array $data ) Set data used during the request
dispatch ( ) : array | WP_Error Dispatch the async request
maybe_handle ( ) Maybe handle

보호된 메소드들

메소드 설명
get_post_args ( ) : array Get post args
get_query_args ( ) : array Get query args
get_query_url ( ) : string Get query URL
handle ( ) Handle

메소드 상세

__construct() 공개 메소드

Initiate new async request
public __construct ( )

data() 공개 메소드

Set data used during the request
public data ( array $data )
$data array Data.

dispatch() 공개 메소드

Dispatch the async request
public dispatch ( ) : array | WP_Error
리턴 array | WP_Error

get_post_args() 보호된 메소드

Get post args
protected get_post_args ( ) : array
리턴 array

get_query_args() 보호된 메소드

Get query args
protected get_query_args ( ) : array
리턴 array

get_query_url() 보호된 메소드

Get query URL
protected get_query_url ( ) : string
리턴 string

handle() 추상적인 보호된 메소드

Override this method to perform any actions required during the async request.
abstract protected handle ( )

maybe_handle() 공개 메소드

Check for correct nonce and pass to handler.
public maybe_handle ( )

프로퍼티 상세

$action 보호되어 있는 프로퍼티

(default value: 'async_request')
protected string $action
리턴 string

$data 보호되어 있는 프로퍼티

(default value: array())
protected array $data
리턴 array

$identifier 보호되어 있는 프로퍼티

Identifier
protected mixed $identifier
리턴 mixed

$prefix 보호되어 있는 프로퍼티

(default value: 'wp')
protected string $prefix
리턴 string