UserSlick
extends UserRendered
in package
Uses
SlickRenderer
Renders a user field as a slick carousel
Table of Contents
- $handle : mixed
- $_field : Field
- $_options : Model
- afterValidate() : mixed
- beforeRender() : bool
- Callback before rendering, returning false will skip the field rendering.
- eagerLoad() : array<string|int, mixed>
- fields() : mixed
- getCanBeCached() : bool
- getDescription() : string
- getErrors() : mixed
- getField() : FieldInterface
- getFieldTargets() : array<string|int, mixed>
- getHandle() : string
- getHasOptions() : bool
- getName() : string
- getOptions() : FieldDisplayerOptions
- Get options
- getTheme() : ThemeInterface
- Theme getter
- getUserLayout() : LayoutInterface
- Get the layout associated to users
- getViewModes() : array<string|int, mixed>
- Get view modes available, based on the field users
- hasErrors() : mixed
- isDefault() : bool
- Is this displayer the default for a field class
- setField() : mixed
- Field setter
- setOptions() : mixed
- Options setter
- getOptionsModel() : string
- Get options model class
Properties
$handle
public
static mixed
$handle
= 'user-slick'
Tags
$_field
protected
Field
$_field
$_options
protected
Model
$_options
Methods
afterValidate()
public
afterValidate() : mixed
Tags
Return values
mixed —beforeRender()
Callback before rendering, returning false will skip the field rendering.
public
beforeRender(mixed &$value) : bool
Parameters
- $value : mixed
Tags
Return values
bool —eagerLoad()
public
eagerLoad(array<string|int, mixed> $eagerLoad[, string $prefix = '' ], int $level) : array<string|int, mixed>
Parameters
- $eagerLoad : array<string|int, mixed>
- $prefix : string = ''
- $level : int
Tags
Return values
array<string|int, mixed> —fields()
public
fields() : mixed
Tags
Return values
mixed —getCanBeCached()
public
getCanBeCached() : bool
Tags
Return values
bool —getDescription()
public
getDescription() : string
Tags
Return values
string —getErrors()
public
getErrors([mixed $attribute = null ]) : mixed
Parameters
- $attribute : mixed = null
Tags
Return values
mixed —getField()
public
getField() : FieldInterface
Tags
Return values
FieldInterface —getFieldTargets()
public
static getFieldTargets() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getHandle()
public
static getHandle() : string
Tags
Return values
string —getHasOptions()
public
getHasOptions() : bool
Tags
Return values
bool —getName()
public
getName() : string
Tags
Return values
string —getOptions()
Get options
public
getOptions() : FieldDisplayerOptions
Tags
Return values
FieldDisplayerOptions —getTheme()
Theme getter
public
getTheme() : ThemeInterface
Tags
Return values
ThemeInterface —getUserLayout()
Get the layout associated to users
public
getUserLayout() : LayoutInterface
Return values
LayoutInterface —getViewModes()
Get view modes available, based on the field users
public
getViewModes() : array<string|int, mixed>
Return values
array<string|int, mixed> —hasErrors()
public
hasErrors([mixed $attribute = null ]) : mixed
Parameters
- $attribute : mixed = null
Tags
Return values
mixed —isDefault()
Is this displayer the default for a field class
public
static isDefault(string $fieldClass) : bool
Parameters
- $fieldClass : string
Tags
Return values
bool —setField()
Field setter
public
setField(FieldInterface $field) : mixed
Parameters
- $field : FieldInterface
Tags
Return values
mixed —setOptions()
Options setter
public
setOptions(array<string|int, mixed> $options) : mixed
Parameters
- $options : array<string|int, mixed>
Tags
Return values
mixed —getOptionsModel()
Get options model class
protected
getOptionsModel() : string