Contents

Backend\FormDesigns\PopupDesign

Overview

PopupDesign displays a form inside a modal popup dialog, typically used from a list page. Provides AJAX handlers for loading, saving, deleting, and canceling the popup form.

Extends

Public Properties

There are no public properties in the class.

Show inherited public properties

Inherited Public Properties

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties


Public Methods

public formRenderDesignButtons()

public formRenderDesignButtons(): string 

formRenderDesignButtons renders popup-specific buttons, which the controller can override with a _form_popup_buttons.php partial

public formRenderDesignError()

public formRenderDesignError($fatalError): string 

formRenderDesignError renders popup-specific error display, which the controller can override with a _form_popup_error.php partial

public index_onLoadPopupForm()

public index_onLoadPopupForm(): void

public index_onPopupCancel()

public index_onPopupCancel(): void

public index_onPopupDelete()

public index_onPopupDelete(): void

public index_onPopupSave()

public index_onPopupSave(): void

public init()

public init(): void 

init emulates the form action for popup forms

Show inherited public methods

Inherited Public Methods

Protected Methods

protected getPopupFormRecordId()

protected getPopupFormRecordId(): string 

getPopupFormRecordId returns the target identifier for the record, contained within the form_record_id postback value. The value is decoded since HTML attributes are escaped and it may be a string.

protected getPopupLang()

protected getPopupLang($name, $default = null): string 

getPopupLang returns a language string from the form config

Show inherited protected methods

Inherited Protected Methods