PHP 클래스 WC_Auth

파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Setup class.
add_endpoint ( ) Add auth endpoint.
add_query_vars ( array $vars ) : string[] Add query vars.
handle_auth_requests ( ) Handle auth requests.

보호된 메소드들

메소드 설명
auth_endpoint ( string $route ) Auth endpoint.
build_url ( array $data, string $endpoint ) : string Build auth urls.
create_keys ( string $app_name, string $app_user_id, string $scope ) : array Create keys.
get_formatted_url ( string $url ) : array Decode and format a URL.
get_i18n_scope ( string $scope ) : string Get scope name.
get_permissions_in_scope ( string $scope ) : array Return a list of permissions a scope allows.
make_validation ( ) Make validation.
post_consumer_data ( array $consumer_data, string $url ) : boolean Post consumer data.

비공개 메소드들

메소드 설명
maybe_delete_key ( array $key ) Maybe delete key.

메소드 상세

__construct() 공개 메소드

Setup class.
부터: 2.4.0
public __construct ( )

add_endpoint() 공개 정적인 메소드

Add auth endpoint.
부터: 2.4.0
public static add_endpoint ( )

add_query_vars() 공개 메소드

Add query vars.
부터: 2.4.0
public add_query_vars ( array $vars ) : string[]
$vars array
리턴 string[]

auth_endpoint() 보호된 메소드

Auth endpoint.
부터: 2.4.0
protected auth_endpoint ( string $route )
$route string

build_url() 보호된 메소드

Build auth urls.
부터: 2.4.0
protected build_url ( array $data, string $endpoint ) : string
$data array
$endpoint string
리턴 string

create_keys() 보호된 메소드

Create keys.
부터: 2.4.0
protected create_keys ( string $app_name, string $app_user_id, string $scope ) : array
$app_name string
$app_user_id string
$scope string
리턴 array

get_formatted_url() 보호된 메소드

Decode and format a URL.
protected get_formatted_url ( string $url ) : array
$url string
리턴 array

get_i18n_scope() 보호된 메소드

Get scope name.
부터: 2.4.0
protected get_i18n_scope ( string $scope ) : string
$scope string
리턴 string

get_permissions_in_scope() 보호된 메소드

Return a list of permissions a scope allows.
부터: 2.4.0
protected get_permissions_in_scope ( string $scope ) : array
$scope string
리턴 array

handle_auth_requests() 공개 메소드

Handle auth requests.
부터: 2.4.0

make_validation() 보호된 메소드

Make validation.
부터: 2.4.0
protected make_validation ( )

post_consumer_data() 보호된 메소드

Post consumer data.
부터: 2.4.0
protected post_consumer_data ( array $consumer_data, string $url ) : boolean
$consumer_data array
$url string
리턴 boolean