Documentation

AjaxMethodsTrait

Base class of the ajax-application

Table of Contents

ajaxRequestError()  : void
Method finishes ajax requests processing
ajaxRequestResult()  : void
Method finishes ajax requests processing and returns result
ajaxRequestSuccess()  : void
Method finishes ajax requests processing

Methods

ajaxRequestError()

Method finishes ajax requests processing

protected ajaxRequestError(string $message[, int $code = -1 ]) : void
Parameters
$message : string

Error message

$code : int = -1

Error code

Return values
void

ajaxRequestResult()

Method finishes ajax requests processing and returns result

protected ajaxRequestResult(mixed $result) : void
Parameters
$result : mixed
Return values
void

ajaxRequestSuccess()

Method finishes ajax requests processing

protected ajaxRequestSuccess() : void
Return values
void

Search results

    Яндекс.Метрика