FacturaScripts

ProvinceCityFilterTrait

Provides the cascading autocomplete used by the "provincias" and "ciudades" filters: provinces are filtered by the selected country (filtercountry) and cities by the selected province (filterprovincia).

The using class must be a controller with requestGet(), the codeModel and request properties, and a parent autocompleteAction() to fall back to.

Table of Contents

Methods

autocompleteAction()  : array<string|int, mixed>
autocompleteCity()  : array<string|int, mixed>
autocompleteProvince()  : array<string|int, mixed>

Methods

autocompleteAction()

protected autocompleteAction() : array<string|int, mixed>
Return values
array<string|int, mixed>

autocompleteCity()

private autocompleteCity(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

autocompleteProvince()

private autocompleteProvince(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results