Skip to main content

ProgressBar

Helper for rendering progress bar


Methods

__invoke

Generates a 'progressbar' element

public __invoke(mixed $min = 0, mixed $max = 0, mixed $current = 0, bool $escape = true): string

Parameters:

ParameterTypeDescription
$minmixed
$maxmixed
$currentmixed
$escapebool

render

public render(iterable $optionsAndAttributes, bool $escape): string

Parameters:

ParameterTypeDescription
$optionsAndAttributesiterable
$escapebool

renderProgressBarContent

public renderProgressBarContent(iterable $optionsAndAttributes, bool $escape): string

Parameters:

ParameterTypeDescription
$optionsAndAttributesiterable
$escapebool