Cms\Widgets\PageLookup

Overview

PageLookup widget

Extends

Public Properties

public string $title

title text to display for the title of the popup list form

Show inherited public properties

Inherited Public Properties

Protected Properties

protected string $defaultAlias

defaultAlias to identify this widget.

protected Backend\Classes\WidgetBase $selectFormWidget

selectWidget reference to the widget used for selecting a page.

protected bool $searchTerm

Show inherited protected properties

Inherited Protected Properties


Public Methods

public bindToController()

public bindToController(): void

public getLoadValue()

public getLoadValue(): void

public init()

public init(): void

init the widget, called by the constructor and free from its parameters.

public onInsertReference()

public onInsertReference(): void

public onLoadPopup()

public onLoadPopup(): void

onLoadPopup AJAX handler

public onRefreshReference()

public onRefreshReference(): void

onRefreshReference AJAX handler

public onSearchReference()

public onSearchReference(): void

onSearchReference AJAX handler

public prepareVars()

public prepareVars(): void

prepareVars for display

public render()

public render(): void

render the widget's primary contents.

Show inherited public methods

Inherited Public Methods

Protected Methods

protected getMatches()

protected getMatches(): void

protected getSearchTerm()

protected getSearchTerm(): void

protected getSelectFormWidget()

protected getSelectFormWidget(): void

protected handleResolverRedirect()

protected handleResolverRedirect(): void

protected isSingleMode()

protected isSingleMode(): bool 

protected loadAssets()

protected loadAssets(): void

loadAssets adds widget specific asset files. Use $this->addJs() and $this->addCss() to register new assets to include on the page.

protected setSearchTerm()

protected setSearchTerm($term): void

protected shouldIncludeTitle()

protected shouldIncludeTitle(): bool 

protected textMatchesSearch()

protected textMatchesSearch(&$words, $text): void

Show inherited protected methods

Inherited Protected Methods