PHP 클래스 Papi_REST_API_Settings, papi

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

보호된 프로퍼티들

프로퍼티 타입 설명
$entries Papi_Post_Store The post store class.

공개 메소드들

메소드 설명
__construct ( ) REST API Settings construct.
get_setting ( string $key, string $value ) : mixed Get setting value for a property.
pre_get_setting ( mixed $value ) : mixed Setup request after callbacks filter so it's only runs on settings endpoint.
prepare_response ( WP_HTTP_Response $response ) : array Prepare settings response.
register ( ) Register options properties.

메소드 상세

__construct() 공개 메소드

REST API Settings construct.
public __construct ( )

get_setting() 공개 메소드

Get setting value for a property.
public get_setting ( string $key, string $value ) : mixed
$key string
$value string
리턴 mixed

pre_get_setting() 공개 메소드

When the filter is added the rest_pre_get_setting will be removed since it's not used to anything good.
public pre_get_setting ( mixed $value ) : mixed
$value mixed
리턴 mixed

prepare_response() 공개 메소드

Prepare settings response.
public prepare_response ( WP_HTTP_Response $response ) : array
$response WP_HTTP_Response
리턴 array

register() 공개 메소드

Register options properties.
public register ( )

프로퍼티 상세

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

The post store class.
protected Papi_Post_Store $entries
리턴 Papi_Post_Store