Property | Type | Description | |
---|---|---|---|
$error | string | Error | |
$token | boolean | Token | |
$token_email | boolean | Token email | |
$token_exists | boolean | Token exists |
Method | Description | |
---|---|---|
__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 |
public __construct ( ) : void | ||
return | void |
public can_send_email ( $customer_id ) : boolean | ||
$customer_id | Customer id. | |
return | boolean |
public check_for_token ( ) : void | ||
return | void |
public create_columns ( ) : void | ||
return | void |
public is_valid_token ( $token ) : boolean | ||
$token | The token. | |
return | boolean |
public is_valid_verify_key ( $token ) : boolean | ||
$token | The token. | |
return | boolean |
public send_email ( $customer_id, $email ) : void | ||
$customer_id | Customer id. | |
Customer email. | ||
return | void |
public set_verify_key ( $customer_id, $email, $verify_key ) : void | ||
$customer_id | Customer id. | |
Customer email. | ||
$verify_key | The verification key. | |
return | void |
public users_purchases_args ( $args ) : mixed | ||
$args | User Purchases arguments. | |
return | mixed |