PHP 클래스 WPDKAjaxResponse

부터: 1.4.0
저자: =undo= ([email protected])
상속: extends WPDKObject
파일 보기 프로젝트 열기: wpxtreme/wpdk 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$__version string Override version
$data mixed This property can be a string or - usually - an array.
$error string User define error code or string
$message string Usually an alert message feedback

공개 메소드들

메소드 설명
__construct ( ) : WPDKAjaxResponse Create an instance of WPDKAjaxResponse class
json ( ) Send a JSON response back to an Ajax request.

메소드 상세

__construct() 공개 메소드

Create an instance of WPDKAjaxResponse class
public __construct ( ) : WPDKAjaxResponse
리턴 WPDKAjaxResponse

json() 공개 메소드

Send a JSON response back to an Ajax request.
public json ( )

프로퍼티 상세

$__version 공개적으로 프로퍼티

Override version
public string $__version
리턴 string

$data 공개적으로 프로퍼티

This property can be a string or - usually - an array.
public mixed $data
리턴 mixed

$error 공개적으로 프로퍼티

User define error code or string
public string $error
리턴 string

$message 공개적으로 프로퍼티

Usually an alert message feedback
public string $message
리턴 string