Contents

Backend\Widgets\Lists\HasValueProcessor

Overview

HasValueProcessor concern


Protected Methods

protected evalColorPickerTypeValue()

protected evalColorPickerTypeValue($record, $column, $value): void

evalColorPickerTypeValue as background color, to be seen at list

protected evalCustomListType()

protected evalCustomListType($type, $record, $column, $value): void

evalCustomListType processes a custom list types registered by plugins and the app.

protected evalDateTypeValue()

protected evalDateTypeValue($record, $column, $value): void

evalDateTypeValue as a date value

protected evalDatetimeTypeValue()

protected evalDatetimeTypeValue($record, $column, $value): void

evalDatetimeTypeValue as a datetime value

protected evalFileTypeValue()

protected evalFileTypeValue($record, $column, $value): string 

evalFileTypeValue will process a file attachment value

protected evalImageTypeValue()

protected evalImageTypeValue($record, $column, $value): string 

evalImageTypeValue will process an image value

protected evalLinkageTypeValue()

protected evalLinkageTypeValue($record, $column, $value): void

protected evalNumberTypeValue()

protected evalNumberTypeValue($record, $column, $value): string 

evalNumberTypeValue process as number, proxy to text but uses different styling

protected evalPartialTypeValue()

protected evalPartialTypeValue($record, $column, $value): void

evalPartialTypeValue as partial reference

protected evalSelectableTypeValue()

protected evalSelectableTypeValue($record, $column, $value): void

evalSelectableTypeValue processes as selectable value types for 'dropdown', 'radio', 'balloon-selector' and similar form field types

protected evalSummaryTypeValue()

protected evalSummaryTypeValue($record, $column, $value): void

evalSummaryTypeValue will limit a value by words

protected evalSwitchTypeValue()

protected evalSwitchTypeValue($record, $column, $value): void

evalSwitchTypeValue as boolean switch

protected evalTextTypeValue()

protected evalTextTypeValue($record, $column, $value): string 

evalTextTypeValue as text and escape the value

protected evalTimeTypeValue()

protected evalTimeTypeValue($record, $column, $value): void

evalTimeTypeValue as a time value

protected evalTimesinceTypeValue()

protected evalTimesinceTypeValue($record, $column, $value): void

evalTimesinceTypeValue as diff for humans (1 min ago)

protected evalTimetenseTypeValue()

protected evalTimetenseTypeValue($record, $column, $value): void

evalTimetenseTypeValue as time as current tense (Today at 0:00)

protected getFileTypeIcon()

protected getFileTypeIcon($extension): string 

getFileTypeIcon returns the appropriate Phosphor icon for a file extension

protected isSafeLinkageUrl()

protected isSafeLinkageUrl($url): bool 

isSafeLinkageUrl allows relative URLs and a short list of schemes, since browsers ignore control characters inside a scheme.

protected validateDateTimeValue()

protected validateDateTimeValue($value, $column): void

validateDateTimeValue column type