PHP 클래스 Give_Email_Access, Give

This class handles email access, allowing donors access to their donation w/o logging in; Based on the work from Matt Gibbs - https://github.com/FacetWP/edd-no-logins
부터: 1.0
파일 보기 프로젝트 열기: wordimpress/give

공개 프로퍼티들

프로퍼티 타입 설명
$error string Error
$token boolean Token
$token_email boolean Token email
$token_exists boolean Token exists

공개 메소드들

메소드 설명
__construct ( ) : void Class Constructor
can_send_email ( $customer_id ) : boolean Prevent email spamming
check_for_token ( ) : void Has the user authenticated?
create_columns ( ) : void Create בolumns
init ( ) : void Init
is_valid_token ( $token ) : boolean Is this a valid token?
is_valid_verify_key ( $token ) : boolean Is this a valid verify key?
send_email ( $customer_id, $email ) : void Send the user's token
set_verify_key ( $customer_id, $email, $verify_key ) : void Add the verify key to DB
users_purchases_args ( $args ) : mixed Users purchases args

메소드 상세

__construct() 공개 메소드

Set up the Give Email Access Class.
부터: 1.0
public __construct ( ) : void
리턴 void

can_send_email() 공개 메소드

Prevent email spamming
부터: 1.0
public can_send_email ( $customer_id ) : boolean
$customer_id Customer id.
리턴 boolean

check_for_token() 공개 메소드

Has the user authenticated?
부터: 1.0
public check_for_token ( ) : void
리턴 void

create_columns() 공개 메소드

Create the necessary columns for email access
부터: 1.0
public create_columns ( ) : void
리턴 void

init() 공개 메소드

Register defaults and filters
부터: 1.0
public init ( ) : void
리턴 void

is_valid_token() 공개 메소드

Is this a valid token?
부터: 1.0
public is_valid_token ( $token ) : boolean
$token The token.
리턴 boolean

is_valid_verify_key() 공개 메소드

Is this a valid verify key?
부터: 1.0
public is_valid_verify_key ( $token ) : boolean
$token The token.
리턴 boolean

send_email() 공개 메소드

Send the user's token
부터: 1.0
public send_email ( $customer_id, $email ) : void
$customer_id Customer id.
$email Customer email.
리턴 void

set_verify_key() 공개 메소드

Add the verify key to DB
부터: 1.0
public set_verify_key ( $customer_id, $email, $verify_key ) : void
$customer_id Customer id.
$email Customer email.
$verify_key The verification key.
리턴 void

users_purchases_args() 공개 메소드

Force Give to find transactions by donation email, not user ID
부터: 1.0
public users_purchases_args ( $args ) : mixed
$args User Purchases arguments.
리턴 mixed

프로퍼티 상세

$error 공개적으로 프로퍼티

Error
부터: 1.0
public string $error
리턴 string

$token 공개적으로 프로퍼티

Token
부터: 1.0
public bool $token
리턴 boolean

$token_email 공개적으로 프로퍼티

Token email
부터: 1.0
public bool $token_email
리턴 boolean

$token_exists 공개적으로 프로퍼티

Token exists
부터: 1.0
public bool $token_exists
리턴 boolean