Свойство | Тип | Описание | |
---|---|---|---|
$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 |
public __construct ( ) : void | ||
Результат | void |
public can_send_email ( $customer_id ) : boolean | ||
$customer_id | Customer id. | |
Результат | boolean |
public check_for_token ( ) : void | ||
Результат | void |
public create_columns ( ) : void | ||
Результат | void |
public is_valid_token ( $token ) : boolean | ||
$token | The token. | |
Результат | boolean |
public is_valid_verify_key ( $token ) : boolean | ||
$token | The token. | |
Результат | boolean |
public send_email ( $customer_id, $email ) : void | ||
$customer_id | Customer id. | |
Customer email. | ||
Результат | void |
public set_verify_key ( $customer_id, $email, $verify_key ) : void | ||
$customer_id | Customer id. | |
Customer email. | ||
$verify_key | The verification key. | |
Результат | void |
public users_purchases_args ( $args ) : mixed | ||
$args | User Purchases arguments. | |
Результат | mixed |