EitherYN extends Base
Either Y or N
Table of Contents
Constants
- MULTITAG = 'div'
Methods
- asMultiple() : mixed
- asSingle() : mixed
- Get single value.
- getEditHtml() : mixed
- getEditHtmlInsert() : mixed
- getEditHtmlSingle() : string
- getEditHtmlSingleAfterInsert() : mixed
- getEditHtmlSingleDelete() : mixed
- getError() : mixed
- getErrorSingle() : mixed
- getFilterEditHtml() : string
- getRequiredError() : array<string|int, mixed>
- getSettings() : mixed
- getValue() : mixed
- getValueSingle() : mixed
- getViewHtml() : mixed
- 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()
public
static getEditHtml(mixed $name, array<string|int, mixed> $input[, mixed $value = null ]) : mixed
Parameters
- $name : mixed
- $input : array<string|int, mixed>
- $value : mixed = null
getEditHtmlInsert()
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 $value) : mixed
Parameters
- $input : array<string|int, mixed>
- $value : mixed
getErrorSingle()
public
static getErrorSingle(array<string|int, mixed> $input, mixed $value) : mixed
Parameters
- $input : array<string|int, mixed>
- $value : mixed
getFilterEditHtml()
public
static getFilterEditHtml(mixed $name, array<string|int, mixed> $input, mixed $value) : string
Parameters
- $name : mixed
- $input : array<string|int, mixed>
- $value : mixed
Return values
stringgetRequiredError()
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 $value) : mixed
Parameters
- $input : array<string|int, mixed>
- $value : mixed
getViewHtml()
public
static getViewHtml(array<string|int, mixed> $input[, mixed $value = null ]) : mixed
Parameters
- $input : array<string|int, mixed>
- $value : mixed = null
getViewHtmlSingle()
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