class Jumpbar (View source)

The autocomplete JSON data for jump bar component.

Methods

static Response
render(Automad $Automad)

Return a JSON formatted string to be used as autocomplete infomation in a jump field.

static array
inPage()

Generate autocomplete items for the in-page edit mode.

static array
packages()

Generate autocomplete items for packages.

static array
pages(array $pages)

Generate autocomplete items for pages.

static array
search()

Generate autocomplete items for search.

static array
settings()

Generate autocomplete items for settings.

static array
shared()

Generate autocomplete items for shared.

Details

static Response render(Automad $Automad)

Return a JSON formatted string to be used as autocomplete infomation in a jump field.

The collected data consists of all page titles, URLs and all available tags.

Parameters

Automad $Automad

Return Value

Response the response object

static private array inPage()

Generate autocomplete items for the in-page edit mode.

Return Value

array the generated items

static private array packages()

Generate autocomplete items for packages.

Return Value

array the generated items

static private array pages(array $pages)

Generate autocomplete items for pages.

Parameters

array $pages

Return Value

array the generated items

Generate autocomplete items for search.

Return Value

array the generated items

static private array settings()

Generate autocomplete items for settings.

Return Value

array the generated items

static private array shared()

Generate autocomplete items for shared.

Return Value

array the generated items