PHP 클래스 Jetpack_JSON_API_Themes_Endpoint, jetpack

상속: extends Jetpack_JSON_API_Endpoint
파일 보기 프로젝트 열기: automattic/jetpack 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_response_format

보호된 프로퍼티들

프로퍼티 타입 설명
$bulk
$current_theme_id
$log
$themes

보호된 메소드들

메소드 설명
check_query_args ( ) : boolean | WP_Error Checks the query_args our collection endpoint was passed to ensure that it's in the proper bounds.
format_theme ( object $theme ) : array Format a theme for the public API
get_themes ( ) : array Format a list of themes for public display, using the supplied offset and limit args
result ( )
validate_input ( $theme ) : boolean Walks through either the submitted theme or list of themes and creates the global array
validate_themes ( ) : boolean | WP_Error Walks through submitted themes to make sure they are valid

메소드 상세

check_query_args() 보호된 메소드

Checks the query_args our collection endpoint was passed to ensure that it's in the proper bounds.
protected check_query_args ( ) : boolean | WP_Error
리턴 boolean | WP_Error a WP_Error object if the args are out of bounds, true if things are good.

format_theme() 보호된 메소드

Format a theme for the public API
protected format_theme ( object $theme ) : array
$theme object WP_Theme object
리턴 array Named array of theme info used by the API

get_themes() 보호된 메소드

Format a list of themes for public display, using the supplied offset and limit args
protected get_themes ( ) : array
리턴 array Public API theme objects

result() 보호된 메소드

protected result ( )

validate_input() 보호된 메소드

Walks through either the submitted theme or list of themes and creates the global array
protected validate_input ( $theme ) : boolean
$theme
리턴 boolean

validate_themes() 보호된 메소드

Walks through submitted themes to make sure they are valid
protected validate_themes ( ) : boolean | WP_Error
리턴 boolean | WP_Error

프로퍼티 상세

$_response_format 정적으로 공개적으로 프로퍼티

static public $_response_format

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

protected $bulk

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

protected $current_theme_id

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

protected $log

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

protected $themes