trait AjaxHelperTrait (View source)

internal  
 

Provides a helper to determine if the current request is via AJAX.

Methods

bool
isAjax()

Determines if the current request is via AJAX.

string|null
getRequestWrapperFormat()

Gets the wrapper format of the current request.

Details

protected bool isAjax()

Determines if the current request is via AJAX.

Return Value

bool

TRUE if the current request is via AJAX, FALSE otherwise.

protected string|null getRequestWrapperFormat()

Gets the wrapper format of the current request.

Return Value

string|null

The wrapper format. NULL if the wrapper format is not set.