PHP Класс WC_Product_Download

С версии: 2.7.0
Автор: WooThemes
Наследование: implements ArrayAccess
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$data array Data array.

Открытые методы

Метод Описание
file_exists ( ) : boolean Validate file exists.
get_allowed_mime_types ( ) : array Get allowed mime types.
get_data ( ) : array Returns all data for this object.
get_file ( ) : string Get file.
get_file_extension ( ) : string Get file extension.
get_file_type ( ) : string Get file type.
get_id ( ) : string Get id.
get_name ( ) : string Get name.
get_previous_hash ( ) : string Get previous_hash.
get_type_of_file_path ( string $file_path = '' ) : string Get type of file path set.
is_allowed_filetype ( ) : boolean Check if file is allowed.
offsetExists ( string $offset ) : boolean offsetExists
offsetGet ( string $offset ) : mixed offsetGet
offsetSet ( string $offset, mixed $value ) offsetSet
offsetUnset ( string $offset ) offsetUnset
set_file ( string $value ) Set file.
set_id ( string $value ) Set ID.
set_name ( string $value ) Set name.
set_previous_hash ( string $value ) Set previous_hash.

Описание методов

file_exists() публичный Метод

Validate file exists.
public file_exists ( ) : boolean
Результат boolean

get_allowed_mime_types() публичный Метод

Get allowed mime types.
public get_allowed_mime_types ( ) : array
Результат array

get_data() публичный Метод

Returns all data for this object.
public get_data ( ) : array
Результат array

get_file() публичный Метод

Get file.
public get_file ( ) : string
Результат string

get_file_extension() публичный Метод

Get file extension.
public get_file_extension ( ) : string
Результат string

get_file_type() публичный Метод

Get file type.
public get_file_type ( ) : string
Результат string

get_id() публичный Метод

Get id.
public get_id ( ) : string
Результат string

get_name() публичный Метод

Get name.
public get_name ( ) : string
Результат string

get_previous_hash() публичный Метод

Get previous_hash.
public get_previous_hash ( ) : string
Результат string

get_type_of_file_path() публичный Метод

Get type of file path set.
public get_type_of_file_path ( string $file_path = '' ) : string
$file_path string optional.
Результат string absolute, relative, or shortcode.

is_allowed_filetype() публичный Метод

Check if file is allowed.
public is_allowed_filetype ( ) : boolean
Результат boolean

offsetExists() публичный Метод

offsetExists
public offsetExists ( string $offset ) : boolean
$offset string
Результат boolean

offsetGet() публичный Метод

offsetGet
public offsetGet ( string $offset ) : mixed
$offset string
Результат mixed

offsetSet() публичный Метод

offsetSet
public offsetSet ( string $offset, mixed $value )
$offset string
$value mixed

offsetUnset() публичный Метод

offsetUnset
public offsetUnset ( string $offset )
$offset string

set_file() публичный Метод

Set file.
public set_file ( string $value )
$value string

set_id() публичный Метод

Set ID.
public set_id ( string $value )
$value string

set_name() публичный Метод

Set name.
public set_name ( string $value )
$value string

set_previous_hash() публичный Метод

Set previous_hash.
public set_previous_hash ( string $value )
$value string

Описание свойств

$data защищенное свойство

Data array.
С версии: 2.7.0
protected array $data
Результат array