ProductCategories extends ProductCategories
Table of Contents
Constants
- MULTITAG = 'div'
Methods
- asMultiple() : mixed
- asSingle() : mixed
- Get single value.
- getEditHtml() : string
- Returns an HTML block for editing the type
- getEditHtmlInsert() : mixed
- getEditHtmlSingle() : string
- getEditHtmlSingleAfterInsert() : mixed
- getEditHtmlSingleDelete() : mixed
- getError() : mixed
- getErrorSingle() : mixed
- getRequiredError() : array<string|int, mixed>
- getSettings() : mixed
- getValue() : mixed
- getValueSingle() : mixed
- getViewHtml() : string
- Returns an HTML block with list of selected categories to restrict
- getViewHtmlSingle() : mixed
- hasMultipleValuesSupport() : bool
- isMultiple() : bool
- Check if value is multiple.
Constants
MULTITAG
public
mixed
MULTITAG
= 'div'
Methods
asMultiple()
public
static asMultiple(mixed $value) : mixed
Parameters
- $value : mixed
asSingle()
Get single value.
public
static asSingle(mixed $value) : mixed
Parameters
- $value : mixed
Return values
mixed —- if value is multiple, get first meaningful value (which is not null)
getEditHtml()
Returns an HTML block for editing the type
public
static getEditHtml(mixed $name, array<string|int, mixed> $input[, mixed $values = null ]) : string
Parameters
- $name : mixed
- $input : array<string|int, mixed>
- $values : mixed = null
Return values
stringgetEditHtmlInsert()
public
static getEditHtmlInsert(mixed $tag, mixed $replace, mixed $name, mixed $sample, mixed $after) : mixed
Parameters
- $tag : mixed
- $replace : mixed
- $name : mixed
- $sample : mixed
- $after : mixed
getEditHtmlSingle()
public
static getEditHtmlSingle(mixed $name, array<string|int, mixed> $input, mixed $value) : string
Parameters
- $name : mixed
- $input : array<string|int, mixed>
- $value : mixed
Return values
stringgetEditHtmlSingleAfterInsert()
public
static getEditHtmlSingleAfterInsert() : mixed
getEditHtmlSingleDelete()
public
static getEditHtmlSingleDelete(mixed $name, array<string|int, mixed> $input) : mixed
Parameters
- $name : mixed
- $input : array<string|int, mixed>
getError()
public
static getError(array<string|int, mixed> $input, mixed $values) : mixed
Parameters
- $input : array<string|int, mixed>
- $values : mixed
getErrorSingle()
public
static getErrorSingle(array<string|int, mixed> $input, mixed $values) : mixed
Parameters
- $input : array<string|int, mixed>
- $values : mixed
getRequiredError()
public
static getRequiredError(array<string|int, mixed> $input, mixed $value) : array<string|int, mixed>
Parameters
- $input : array<string|int, mixed>
- $value : mixed
Return values
array<string|int, mixed>getSettings()
public
static getSettings(array<string|int, mixed> $input, mixed $reload) : mixed
Parameters
- $input : array<string|int, mixed>
- $reload : mixed
getValue()
public
static getValue(array<string|int, mixed> $input, mixed $value) : mixed
Parameters
- $input : array<string|int, mixed>
- $value : mixed
getValueSingle()
public
static getValueSingle(array<string|int, mixed> $input, mixed $userValue) : mixed
Parameters
- $input : array<string|int, mixed>
- $userValue : mixed
getViewHtml()
Returns an HTML block with list of selected categories to restrict
public
static getViewHtml(array<string|int, mixed> $input[, null $values = null ]) : string
Parameters
- $input : array<string|int, mixed>
- $values : null = null
Return values
stringgetViewHtmlSingle()
public
static getViewHtmlSingle(array<string|int, mixed> $input, mixed $value) : mixed
Parameters
- $input : array<string|int, mixed>
- $value : mixed
hasMultipleValuesSupport()
public
static hasMultipleValuesSupport() : bool
Return values
boolisMultiple()
Check if value is multiple.
public
static isMultiple(mixed $value) : bool
Parameters
- $value : mixed