PaymentDetailsField
extends AbstractField
in package
Tags
Table of Contents
- TYPE = 'payment-details'
- $description : string
- $isDisabled : bool
- $isInline : bool
- $isReadonly : bool
- $label : string
- $atts : array<string|int, mixed>
- $booking : int|Booking
- $class : string
- $default : mixed
- $inputId : string
- $inputName : string
- $name : string
- $sizeClass : string
- $value : mixed
- __construct() : mixed
- getType() : string
- getValue() : mixed
- hasDescription() : string
- hasLabel() : string
- isSingle() : bool
- renderBody() : string
- renderDescription() : string
- renderInput() : string
- renderLabel() : string
- setDefault() : mixed
- setName() : mixed
- setSize() : mixed
- setValue() : mixed
- controlAtts() : array<string|int, mixed>
- getWrapperTag() : string
- inputAtts() : array<string|int, mixed>
- mapFields() : array<string|int, mixed>
- setupArgs() : mixed
- validateValue() : mixed
Constants
TYPE
public
mixed
TYPE
= 'payment-details'
Tags
Properties
$description
public
string
$description
= ''
Tags
$isDisabled
public
bool
$isDisabled
= false
Tags
$isInline
public
bool
$isInline
= false
Tags
$isReadonly
public
bool
$isReadonly
= false
Tags
$label
public
string
$label
= ''
Tags
$atts
protected
array<string|int, mixed>
$atts
= []
Tags
$booking
protected
int|Booking
$booking
= 0
Tags
$class
protected
string
$class
= ''
Tags
$default
protected
mixed
$default
= ''
Tags
$inputId
protected
string
$inputId
= ''
Tags
$inputName
protected
string
$inputName
= ''
Tags
$name
protected
string
$name
= ''
Tags
$sizeClass
protected
string
$sizeClass
= ''
Tags
$value
protected
mixed
$value
= ''
Tags
Methods
__construct()
public
__construct(string $inputName, array<string|int, mixed> $args[, mixed $value = null ]) : mixed
Parameters
- $inputName : string
-
Prefixed name.
- $args : array<string|int, mixed>
- $value : mixed = null
-
Optional. Null by default.
Tags
Return values
mixed —getType()
public
getType() : string
Tags
Return values
string —getValue()
public
getValue([string $context = 'internal' ]) : mixed
Parameters
- $context : string = 'internal'
-
Optional. 'internal' by default. Variants: 'internal' - for internal use (in the functions of the plugin); 'save' - prepare the value for the database.
Tags
Return values
mixed —hasDescription()
public
hasDescription() : string
Tags
Return values
string —hasLabel()
public
hasLabel() : string
Tags
Return values
string —isSingle()
public
isSingle() : bool
Tags
Return values
bool —Uses single or multiple postmetas.
renderBody()
public
renderBody() : string
Tags
Return values
string —renderDescription()
public
renderDescription() : string
Tags
Return values
string —renderInput()
public
renderInput() : string
Tags
Return values
string —renderLabel()
public
renderLabel() : string
Tags
Return values
string —setDefault()
public
setDefault(mixed $default) : mixed
Parameters
- $default : mixed
Tags
Return values
mixed —setName()
public
setName(string $inputName) : mixed
Parameters
- $inputName : string
-
Prefixed name.
Tags
Return values
mixed —setSize()
public
setSize(string $size) : mixed
Parameters
- $size : string
-
small|regular|mild|large|half|wide
Tags
Return values
mixed —setValue()
public
setValue(mixed $value[, mixed $validate = false ]) : mixed
Parameters
- $value : mixed
- $validate : mixed = false
-
Optional. False by default.
Tags
Return values
mixed —controlAtts()
protected
controlAtts() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getWrapperTag()
protected
getWrapperTag([string $blockTag = 'div' ][, string $inlineTag = 'span' ]) : string
Parameters
- $blockTag : string = 'div'
-
Optional. 'div' by default.
- $inlineTag : string = 'span'
-
Optional. 'span' by default.
Tags
Return values
string —inputAtts()
protected
inputAtts() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —mapFields()
protected
mapFields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —setupArgs()
protected
setupArgs(array<string|int, mixed> $args) : mixed
Parameters
- $args : array<string|int, mixed>
Tags
Return values
mixed —validateValue()
protected
validateValue(mixed $value) : mixed
Parameters
- $value : mixed