VariablePricingField
extends InputField
in package
Table of Contents
- MIN_PERIOD = 2
- MIN_PRICE = 0
- TYPE = 'variable-pricing'
- $additionalClasses : mixed
- $default : mixed
- $description : mixed
- $description2 : mixed
- $details : mixed
- $disabled : mixed
- $id : mixed
- $innerLabel : mixed
- $label : mixed
- $name : mixed
- $readonly : mixed
- $required : mixed
- $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() : mixed
- setDescription() : mixed
- setDescription2() : mixed
- setDisabled() : mixed
- setName() : mixed
- setReadonly() : mixed
- setRequired() : mixed
- setValue() : mixed
- checkPricesCount() : mixed
- Makes periods array and prices array equal by length.
- generateAttrs() : mixed
- generateTemplate() : mixed
- generateVariation() : mixed
- getCtrlAtts() : mixed
- getCtrlClasses() : mixed
- getDependentRoomType() : RoomType|null
- renderAdults() : mixed
- renderCheckbox() : mixed
- renderChildren() : mixed
- renderInput() : mixed
- renderPeriod() : mixed
- renderPeriods() : mixed
- renderPrice() : mixed
- renderRestrictedPrice() : mixed
- renderVariations() : mixed
- sanitizeAdults() : mixed
- sanitizeChildren() : mixed
- sanitizeEnableVariations() : mixed
- sanitizePeriods() : mixed
- sanitizePrices() : mixed
- sanitizeVariations() : mixed
Constants
MIN_PERIOD
public
mixed
MIN_PERIOD
= 2
MIN_PRICE
public
mixed
MIN_PRICE
= ""
TYPE
public
mixed
TYPE
= 'variable-pricing'
Properties
$additionalClasses
protected
mixed
$additionalClasses
= ''
$default
protected
mixed
$default
= ''
$description
protected
mixed
$description
= ''
$description2
protected
mixed
$description2
= ''
$details
protected
mixed
$details
$disabled
protected
mixed
$disabled
= false
$id
protected
mixed
$id
= ''
$innerLabel
protected
mixed
$innerLabel
= ''
$label
protected
mixed
$label
= ''
$name
protected
mixed
$name
$readonly
protected
mixed
$readonly
= false
$required
protected
mixed
$required
= false
$translatable
protected
mixed
$translatable
= false
$value
protected
mixed
$value
Methods
__construct()
public
__construct(mixed $name, mixed $details[, mixed $value = '' ]) : mixed
Parameters
- $name : mixed
- $details : mixed
- $value : mixed = ''
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(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —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 —checkPricesCount()
Makes periods array and prices array equal by length.
protected
checkPricesCount(array<string|int, mixed> &$prices, array<string|int, mixed> $periods) : mixed
Parameters
- $prices : array<string|int, mixed>
- $periods : array<string|int, mixed>
Return values
mixed —generateAttrs()
protected
generateAttrs() : mixed
Return values
mixed —generateTemplate()
protected
generateTemplate() : mixed
Return values
mixed —generateVariation()
protected
generateVariation(mixed $index, mixed $values) : mixed
Parameters
- $index : mixed
- $values : mixed
Return values
mixed —getCtrlAtts()
protected
getCtrlAtts() : mixed
Return values
mixed —getCtrlClasses()
protected
getCtrlClasses() : mixed
Return values
mixed —getDependentRoomType()
protected
getDependentRoomType() : RoomType|null
Return values
RoomType|null —renderAdults()
protected
renderAdults(mixed $name, mixed $value[, mixed $atts = '' ][, mixed $class = '' ]) : mixed
Parameters
- $name : mixed
- $value : mixed
- $atts : mixed = ''
- $class : mixed = ''
Return values
mixed —renderCheckbox()
protected
renderCheckbox() : mixed
Return values
mixed —renderChildren()
protected
renderChildren(mixed $name, mixed $value[, mixed $atts = '' ][, mixed $class = '' ]) : mixed
Parameters
- $name : mixed
- $value : mixed
- $atts : mixed = ''
- $class : mixed = ''
Return values
mixed —renderInput()
protected
renderInput() : mixed
Return values
mixed —renderPeriod()
protected
renderPeriod(mixed $name, mixed $value[, mixed $atts = '' ][, mixed $class = '' ]) : mixed
Parameters
- $name : mixed
- $value : mixed
- $atts : mixed = ''
- $class : mixed = ''
Return values
mixed —renderPeriods()
protected
renderPeriods() : mixed
Return values
mixed —renderPrice()
protected
renderPrice(mixed $name, mixed $value[, mixed $atts = '' ][, mixed $class = '' ]) : mixed
Parameters
- $name : mixed
- $value : mixed
- $atts : mixed = ''
- $class : mixed = ''
Return values
mixed —renderRestrictedPrice()
protected
renderRestrictedPrice(mixed $name, mixed $value[, mixed $atts = '' ][, mixed $class = '' ]) : mixed
Parameters
- $name : mixed
- $value : mixed
- $atts : mixed = ''
- $class : mixed = ''
Return values
mixed —renderVariations()
protected
renderVariations() : mixed
Return values
mixed —sanitizeAdults()
protected
sanitizeAdults(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —sanitizeChildren()
protected
sanitizeChildren(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —sanitizeEnableVariations()
protected
sanitizeEnableVariations(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —sanitizePeriods()
protected
sanitizePeriods(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —sanitizePrices()
protected
sanitizePrices(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —sanitizeVariations()
protected
sanitizeVariations(mixed $value) : mixed
Parameters
- $value : mixed