PHP 클래스 Papi_Admin_Ajax, papi

파일 보기 프로젝트 열기: wp-papi/papi

보호된 프로퍼티들

프로퍼티 타입 설명
$action_prefix string The action prefix for Papi ajax actions.

공개 메소드들

메소드 설명
__construct ( ) The construct.
add_endpoint ( ) Add ajax endpoint.
ajax_url ( ) Add ajax url to Papi JavaScript object.
get_posts ( ) Get posts via GET.
get_properties ( ) Get properties via POST.
get_property ( ) Get property html via GET.
get_rules_result ( ) Get rules result via GET.
get_shortcode ( ) Get shortcode via GET.
get_terms ( ) Get terms via GET.
handle_papi_ajax ( ) Handle Papi ajax.
render_error ( string $message ) Render error message.

보호된 메소드들

메소드 설명
setup_actions ( ) Setup action hooks.

메소드 상세

__construct() 공개 메소드

The construct.
public __construct ( )

add_endpoint() 공개 메소드

Add ajax endpoint.
public add_endpoint ( )

ajax_url() 공개 메소드

Add ajax url to Papi JavaScript object.
public ajax_url ( )

get_posts() 공개 메소드

Posts with empty title will be ignored. GET /papi-ajax/?action=get_posts
public get_posts ( )

get_properties() 공개 메소드

POST /papi-ajax/?action=get_properties
public get_properties ( )

get_property() 공개 메소드

GET /papi-ajax/?action=get_property
public get_property ( )

get_rules_result() 공개 메소드

GET /papi-ajax/?action=get_rules_result
public get_rules_result ( )

get_shortcode() 공개 메소드

GET /papi-ajax/?action=get_shortcode
public get_shortcode ( )

get_terms() 공개 메소드

GET /papi-ajax/?action=get_terms
public get_terms ( )

handle_papi_ajax() 공개 메소드

Handle Papi ajax.
public handle_papi_ajax ( )

render_error() 공개 메소드

Render error message.
public render_error ( string $message )
$message string

setup_actions() 보호된 메소드

Setup action hooks.
protected setup_actions ( )

프로퍼티 상세

$action_prefix 보호되어 있는 프로퍼티

The action prefix for Papi ajax actions.
protected string $action_prefix
리턴 string