PHP Class Jetpack_JSON_API_Themes_Endpoint, jetpack

Inheritance: extends Jetpack_JSON_API_Endpoint
Datei anzeigen Open project: automattic/jetpack Class Usage Examples

Public Properties

Property Type Description
$_response_format

Protected Properties

Property Type Description
$bulk
$current_theme_id
$log
$themes

Protected Methods

Method Description
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

Method Details

check_query_args() protected method

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
return boolean | WP_Error a WP_Error object if the args are out of bounds, true if things are good.

format_theme() protected method

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

get_themes() protected method

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

result() protected method

protected result ( )

validate_input() protected method

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

validate_themes() protected method

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

Property Details

$_response_format static_oe public_oe property

static public $_response_format

$bulk protected_oe property

protected $bulk

$current_theme_id protected_oe property

protected $current_theme_id

$log protected_oe property

protected $log

$themes protected_oe property

protected $themes