final class ZoneStartingLettersPresenter (View source)

Describes the 0-9, a-z, IDN and "Show all" filter links on the forward zone list page.

items() feeds templates/default/_partials/letters.html; present() is the pre-rendered string still exposed as the letters template variable for theme forks.

Methods

array
items(array $availableChars, bool $digitsAvailable, string $letterStart, string $baseUrlPrefix = '', int|null $rowsPerPage = null)

The digits bucket, a-z, the IDN bucket for punycode zones and "Show all", in display order.

string
present(array $availableChars, bool $digitsAvailable, string $letterStart, string $baseUrlPrefix = '', int|null $rowsPerPage = null)

No description

Details

array items(array $availableChars, bool $digitsAvailable, string $letterStart, string $baseUrlPrefix = '', int|null $rowsPerPage = null)

The digits bucket, a-z, the IDN bucket for punycode zones and "Show all", in display order.

letter is the raw filter value ('1' for the digits bucket, 'idn', 'all' for the last item).

Parameters

array $availableChars
bool $digitsAvailable
string $letterStart
string $baseUrlPrefix
int|null $rowsPerPage

Return Value

array

string present(array $availableChars, bool $digitsAvailable, string $letterStart, string $baseUrlPrefix = '', int|null $rowsPerPage = null)

No description

Parameters

array $availableChars
bool $digitsAvailable
string $letterStart
string $baseUrlPrefix
int|null $rowsPerPage

Return Value

string