Contao Utils Bundle

AbstractChoice
in package

AbstractYes

Table of Contents

Properties

$cache  : FilesystemAdapter
Current file cache.
$cacheKey  : string
Current cache key name.
$context  : mixed
Current context.
$data  : array<string|int, mixed>
Context data.
$framework  : ContaoFrameworkInterface

Methods

__construct()  : mixed
getCachedChoices()  : mixed
getChoices()  : mixed
getContext()  : mixed
setContext()  : mixed
collect()  : array<string|int, mixed>

Properties

$cache

Current file cache.

protected FilesystemAdapter $cache = null

$data

Context data.

protected array<string|int, mixed> $data = []

Methods

__construct()

public __construct(ContaoFrameworkInterface $framework) : mixed
Parameters
$framework : ContaoFrameworkInterface

getCachedChoices()

public getCachedChoices([mixed $context = [] ]) : mixed
Parameters
$context : mixed = []

getChoices()

public getChoices([mixed $context = [] ]) : mixed
Parameters
$context : mixed = []

setContext()

public setContext(mixed $context) : mixed
Parameters
$context : mixed

collect()

protected abstract collect() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results