ZMObject
└─ZMController
└─ZMAjaxController
└─ZMAjaxCountryController
public class ZMAjaxCountryController
extends ZMAjaxController
| Method Summary | |
|---|---|
| void | __construct(string requestId) Create new instance. |
| void | getCountryListJSON(ZMRequest request) Generates a JSON list of all countries. |
| void | getZonesForCountryIdJSON(ZMRequest request) Generates a JSON list of all zones for the requested country id. |
| Methods inherited from org.zenmagick.mvc.controller\ZMAjaxController | |
|---|---|
| __construct, flattenObject, process, processGet, setJSONHeader, toJSON | |
| Methods inherited from org.zenmagick.mvc.controller\ZMController | |
|---|---|
| __construct, findView, getFormData, getId, getView, getViewData, isAjax, isFormSubmit, preProcess, process, processGet, processPost, setContentType, setId, setView, validate, validateFormData, validateSession | |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct(string requestId)
Create new instance.
null to use the request id.public void getCountryListJSON(ZMRequest request)
Generates a JSON list of all countries.
public void getZonesForCountryIdJSON(ZMRequest request)
Generates a JSON list of all zones for the requested country id.
Request parameter (either or):
Ajax controller for JSON country data.