MediaField
extends InputField
in package
Tags
Table of Contents
- TYPE = 'media'
- $additionalClasses : mixed
- $default : mixed
- $delimiter : string
- $description : mixed
- $description2 : mixed
- $details : mixed
- $disabled : mixed
- $innerLabel : mixed
- $isSingle : bool
- $label : mixed
- $name : mixed
- $readonly : mixed
- $required : mixed
- $thumbSize : string
- $translatable : mixed
- $value : mixed
- __construct() : mixed
- addClass() : mixed
- getDefault() : mixed
- getDescription() : string
- getDescription2() : mixed
- getInnerLabel() : mixed
- getInnerLabelTag() : mixed
- getLabel() : mixed
- getLabelTag() : mixed
- getName() : mixed
- getType() : mixed
- getValue() : mixed
- hasLabel() : mixed
- isDisabled() : bool
- isReadonly() : mixed
- isTranslatable() : bool
- output() : mixed
- removeClass() : mixed
- render() : mixed
- sanitize() : int|string
- setDescription() : mixed
- setDescription2() : mixed
- setDisabled() : mixed
- setName() : mixed
- setReadonly() : mixed
- setRequired() : mixed
- setValue() : mixed
- generateAttrs() : string
- getCtrlAtts() : mixed
- getCtrlClasses() : mixed
- renderInput() : string
Constants
TYPE
public
mixed
TYPE
= 'media'
Tags
Properties
$additionalClasses
protected
mixed
$additionalClasses
= ''
$default
protected
mixed
$default
= ''
$delimiter
protected
string
$delimiter
= ','
Tags
$description
protected
mixed
$description
= ''
$description2
protected
mixed
$description2
= ''
$details
protected
mixed
$details
$disabled
protected
mixed
$disabled
= false
$innerLabel
protected
mixed
$innerLabel
= ''
$isSingle
protected
bool
$isSingle
= true
Tags
$label
protected
mixed
$label
= ''
$name
protected
mixed
$name
$readonly
protected
mixed
$readonly
= false
$required
protected
mixed
$required
= false
$thumbSize
protected
string
$thumbSize
= 'full'
Tags
$translatable
protected
mixed
$translatable
= false
$value
protected
mixed
$value
Methods
__construct()
public
__construct(string $name, array<string|int, mixed> $details[, mixed $value = '' ]) : mixed
Parameters
- $name : string
- $details : array<string|int, mixed>
- $value : mixed = ''
-
Optional. '' by default.
Tags
Return values
mixed —addClass()
public
addClass(mixed $class) : mixed
Parameters
- $class : mixed
Return values
mixed —getDefault()
public
getDefault() : mixed
Return values
mixed —getDescription()
public
getDescription() : string
Tags
Return values
string —getDescription2()
public
getDescription2() : mixed
Return values
mixed —getInnerLabel()
public
getInnerLabel() : mixed
Return values
mixed —getInnerLabelTag()
public
getInnerLabelTag() : mixed
Return values
mixed —getLabel()
public
getLabel() : mixed
Return values
mixed —getLabelTag()
public
getLabelTag() : mixed
Return values
mixed —getName()
public
getName() : mixed
Return values
mixed —getType()
public
getType() : mixed
Return values
mixed —getValue()
public
getValue() : mixed
Return values
mixed —hasLabel()
public
hasLabel() : mixed
Return values
mixed —isDisabled()
public
isDisabled() : bool
Tags
Return values
bool —isReadonly()
public
isReadonly() : mixed
Return values
mixed —isTranslatable()
public
isTranslatable() : bool
Return values
bool —output()
public
output() : mixed
Return values
mixed —removeClass()
public
removeClass(mixed $class) : mixed
Parameters
- $class : mixed
Return values
mixed —render()
public
render() : mixed
Return values
mixed —sanitize()
public
sanitize(string $value) : int|string
Parameters
- $value : string
Tags
Return values
int|string —setDescription()
public
setDescription(mixed $description) : mixed
Parameters
- $description : mixed
Return values
mixed —setDescription2()
public
setDescription2(mixed $description) : mixed
Parameters
- $description : mixed
Return values
mixed —setDisabled()
public
setDisabled(bool $disabled) : mixed
Parameters
- $disabled : bool
Return values
mixed —setName()
public
setName(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —setReadonly()
public
setReadonly(bool $readonly) : mixed
Parameters
- $readonly : bool
Return values
mixed —setRequired()
public
setRequired(bool $required) : mixed
Parameters
- $required : bool
Return values
mixed —setValue()
public
setValue(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —generateAttrs()
protected
generateAttrs() : string
Tags
Return values
string —getCtrlAtts()
protected
getCtrlAtts() : mixed
Return values
mixed —getCtrlClasses()
protected
getCtrlClasses() : mixed
Return values
mixed —renderInput()
protected
renderInput() : string