CRM_Core_Page_AJAX
class CRM_Core_Page_AJAX
This is base class for all ajax calls
Methods
static
run()
Call generic ajax forms.
static
setIsQuickConfig()
Change is_quick_config priceSet to complex.
static bool
checkAuthz(string $type, string $className, string $fnName = NULL)
Determine whether the request is for a valid class/method name.
static
returnJsonResponse(array|string $response)
Outputs the CiviCRM standard json-formatted page/form response
static
setJsHeaders(int|null $ttl = NULL)
Set headers appropriate for a js file.
static array
defaultSortAndPagerParams(int $defaultOffset = 0, int $defaultRowCount = 25, string $defaultSort = NULL, string $defaultsortOrder = 'asc')
Set defaults for sort and pager.
static array
validateParams(array $requiredParams = [], array $optionalParams = [])
Validate ajax input parameters.
Details
at line 45
static
run()
Call generic ajax forms.
at line 95
static
setIsQuickConfig()
Change is_quick_config priceSet to complex.
at line 138
static bool
checkAuthz(string $type, string $className, string $fnName = NULL)
Determine whether the request is for a valid class/method name.
at line 168
static
returnJsonResponse(array|string $response)
Outputs the CiviCRM standard json-formatted page/form response
at line 204
static
setJsHeaders(int|null $ttl = NULL)
Set headers appropriate for a js file.
at line 224
static array
defaultSortAndPagerParams(int $defaultOffset = 0, int $defaultRowCount = 25, string $defaultSort = NULL, string $defaultsortOrder = 'asc')
Set defaults for sort and pager.
at line 264
static array
validateParams(array $requiredParams = [], array $optionalParams = [])
Validate ajax input parameters.