datatablesCtrl
extends jController
in package
Table of Contents
Methods
- filteredFeaturesExtent() : jResponseJson
- Gets features via WFS and calculates the total extent.
- index() : mixed
- setErrorResponse() : jResponseJson
- Sets the error in the provided response object based on the given HTTP error code.
Methods
filteredFeaturesExtent()
Gets features via WFS and calculates the total extent.
public
filteredFeaturesExtent() : jResponseJson
It basically use the same logic of the main endpoint but ignores pagination to get all filtered features.
Return values
jResponseJsonindex()
public
index() : mixed
setErrorResponse()
Sets the error in the provided response object based on the given HTTP error code.
protected
setErrorResponse(jResponseJson $rep, int $code, string $errorMessage) : jResponseJson
Parameters
- $rep : jResponseJson
-
- the response object to which the error details will be assigned
- $code : int
-
- the HTTP error code
- $errorMessage : string
-
- the custom error message
Return values
jResponseJson —returns the updated response object containing the error details