FileUpload
extends ServiceComponent
in package
File upload type.
Retrieves and formats data from an upload type post.
Tags
Table of Contents
Properties
- $field_label : string
- The upload field label.
- $file_types : array<string|int, mixed>
- Accepted file types.
- $form_description : string
- The description to display.
- $help_post_id : int
- The ID of the help post.
- $ID : int
- The post ID.
- $multiple_files : bool
- Whether multiple files are allowed.
- $plural : string
- The plural label.
- $service_ids : array<string|int, mixed>
- Service IDs.
- $singular : string
- The singular label.
- $slug : string
- The post name.
- $title : string
- The post title.
Methods
- __construct() : mixed
- Constructor method.
Properties
$field_label
The upload field label.
public
string
$field_label
$file_types
Accepted file types.
public
array<string|int, mixed>
$file_types
$form_description
The description to display.
public
string
$form_description
$help_post_id
The ID of the help post.
public
int
$help_post_id
$ID
The post ID.
public
int
$ID
$multiple_files
Whether multiple files are allowed.
public
bool
$multiple_files
$plural
The plural label.
public
string
$plural
$service_ids
Service IDs.
public
array<string|int, mixed>
$service_ids
An array of service IDs that use the file upload type.
$singular
The singular label.
public
string
$singular
$slug
The post name.
public
string
$slug
$title
The post title.
public
string
$title
Methods
__construct()
Constructor method.
public
__construct(int $post_id) : mixed
Parameters
- $post_id : int