class Search (View source)

The autocomplete JSON data for search component.

Methods

static string
render(object $Automad)

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

Details

static string render(object $Automad)

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

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

Parameters

object $Automad

Return Value

string The JSON encoded autocomplete data