Свойство | Type | Description | |
---|---|---|---|
$data | array | Download Data array. |
Méthode | Description | |
---|---|---|
__construct ( integer | object | array $download ) | Constructor. | |
get_access_expires ( string $context = 'view' ) : integer | Get access_expires. | |
get_access_granted ( string $context = 'view' ) : integer | Get access_granted. | |
get_download_count ( string $context = 'view' ) : integer | Get download_count. | |
get_download_id ( string $context = 'view' ) : string | Get download id. | |
get_downloads_remaining ( string $context = 'view' ) : integer | Get downloads_remaining. | |
get_order_id ( string $context = 'view' ) : integer | Get order_id. | |
get_order_key ( string $context = 'view' ) : string | Get order_key. | |
get_product_id ( string $context = 'view' ) : integer | Get product id. | |
get_user_email ( string $context = 'view' ) : string | Get user_email. | |
get_user_id ( string $context = 'view' ) : integer | Get user id. | |
offsetExists ( string $offset ) : boolean | offsetExists | |
offsetGet ( string $offset ) : mixed | offsetGet | |
offsetSet ( string $offset, mixed $value ) | offsetSet | |
offsetUnset ( string $offset ) | offsetUnset | |
save ( ) : integer | Save data to the database. | |
set_access_expires ( integer $timestamp ) | Get access_expires. | |
set_access_granted ( integer $timestamp ) | Get access_granted. | |
set_download_count ( integer $value ) | Get download_count. | |
set_download_id ( string $value ) | Set download id. | |
set_downloads_remaining ( integer $value ) | Get downloads_remaining. | |
set_order_id ( integer $value ) | Get order_id. | |
set_order_key ( string $value ) | Get order_key. | |
set_product_id ( integer $value ) | Set product id. | |
set_user_email ( integer $value ) | Get user_email. | |
set_user_id ( integer $value ) | Get user id. |
Méthode | Description | |
---|---|---|
get_hook_prefix ( ) : string | Prefix for action and filter hooks on data. |
public get_access_expires ( string $context = 'view' ) : integer | ||
$context | string | |
Résultat | integer |
public get_access_granted ( string $context = 'view' ) : integer | ||
$context | string | |
Résultat | integer |
public get_download_count ( string $context = 'view' ) : integer | ||
$context | string | |
Résultat | integer |
public get_download_id ( string $context = 'view' ) : string | ||
$context | string | |
Résultat | string |
public get_downloads_remaining ( string $context = 'view' ) : integer | ||
$context | string | |
Résultat | integer |
protected get_hook_prefix ( ) : string | ||
Résultat | string |
public get_order_id ( string $context = 'view' ) : integer | ||
$context | string | |
Résultat | integer |
public get_order_key ( string $context = 'view' ) : string | ||
$context | string | |
Résultat | string |
public get_product_id ( string $context = 'view' ) : integer | ||
$context | string | |
Résultat | integer |
public get_user_email ( string $context = 'view' ) : string | ||
$context | string | |
Résultat | string |
public get_user_id ( string $context = 'view' ) : integer | ||
$context | string | |
Résultat | integer |
public offsetExists ( string $offset ) : boolean | ||
$offset | string | |
Résultat | boolean |
public set_access_expires ( integer $timestamp ) | ||
$timestamp | integer |
public set_access_granted ( integer $timestamp ) | ||
$timestamp | integer |
public set_download_count ( integer $value ) | ||
$value | integer |
public set_download_id ( string $value ) | ||
$value | string |
public set_downloads_remaining ( integer $value ) | ||
$value | integer |
public set_product_id ( integer $value ) | ||
$value | integer |
public set_user_email ( integer $value ) | ||
$value | integer |