PHP 클래스 SAL_Site, jetpack

파일 보기 프로젝트 열기: automattic/jetpack

공개 프로퍼티들

프로퍼티 타입 설명
$blog_id
$platform

공개 메소드들

메소드 설명
__construct ( $blog_id, $platform )
after_render ( &$response )
after_render_options ( &$options ) TODO - factor this out? Seems an odd thing to have on a site
allowed_file_types ( )
before_render ( )
default_ping_status ( )
featured_images_enabled ( )
get_admin_url ( )
get_ak_vp_bundle_enabled ( )
get_background_color ( )
get_capabilities ( )
get_default_category ( )
get_default_comment_status ( )
get_default_likes_enabled ( )
get_default_post_format ( )
get_default_sharing_status ( )
get_description ( )
get_frame_nonce ( )
get_gmt_offset ( )
get_header_image ( )
get_id ( )
get_image_default_link_type ( )
get_image_large_height ( )
get_image_large_width ( )
get_image_medium_height ( )
get_image_medium_width ( )
get_image_thumbnail_crop ( )
get_image_thumbnail_height ( )
get_image_thumbnail_width ( )
get_jetpack_modules ( )
get_jetpack_seo_front_page_description ( )
get_jetpack_seo_title_formats ( )
get_locale ( )
get_login_url ( )
get_logo ( )
get_name ( )
get_page_for_posts ( )
get_page_on_front ( )
get_permalink_structure ( )
get_plan ( )
get_post_by_id ( $post_id, $context )
get_post_by_name ( string $name, string $context ) : object Get post by name
get_post_count ( )
get_post_formats ( )
get_post_id_by_name ( string $name ) : integer | object Get post ID by name
get_registered_date ( )
get_show_on_front ( )
get_subscribers_count ( )
get_theme_slug ( )
get_timezone ( )
get_unmapped_url ( )
get_url ( )
get_verification_services_codes ( )
get_wordpress_version ( )
get_xmlrpc_url ( )
has_videopress ( )
has_wordads ( )
is_custom_front_page ( )
is_following ( )
is_headstart ( )
is_jetpack ( )
is_mapped_domain ( )
is_multisite ( )
is_private ( )
is_publicize_permanently_disabled ( )
is_redirect ( )
is_single_user_site ( )
is_vip ( )
is_visible ( )
upgraded_filetypes_enabled ( )
user_can_manage ( )
wrap_post ( $post, $context ) wrap a WP_Post object with SAL methods

비공개 메소드들

메소드 설명
_get_whitelisted_post_types ( ) : array Gets the whitelisted post types that JP should allow access to.
is_post_type_allowed ( $post_type ) copied from class.json-api-endpoints.php
user_can_view_post ( $post ) copied and modified a little from class.json-api-endpoints.php
validate_access ( $post ) : WP_Error Validate current user can access the post

메소드 상세

__construct() 공개 메소드

public __construct ( $blog_id, $platform )

after_render() 추상적인 공개 메소드

abstract public after_render ( &$response )

after_render_options() 추상적인 공개 메소드

TODO - factor this out? Seems an odd thing to have on a site
abstract public after_render_options ( &$options )

allowed_file_types() 추상적인 공개 메소드

abstract public allowed_file_types ( )

before_render() 추상적인 공개 메소드

abstract public before_render ( )

default_ping_status() 공개 메소드

public default_ping_status ( )

get_admin_url() 공개 메소드

public get_admin_url ( )

get_ak_vp_bundle_enabled() 추상적인 공개 메소드

abstract public get_ak_vp_bundle_enabled ( )

get_background_color() 공개 메소드

get_capabilities() 공개 메소드

public get_capabilities ( )

get_default_category() 공개 메소드

get_default_comment_status() 공개 메소드

get_default_likes_enabled() 공개 메소드

get_default_post_format() 공개 메소드

get_default_sharing_status() 공개 메소드

get_description() 공개 메소드

public get_description ( )

get_frame_nonce() 추상적인 공개 메소드

abstract public get_frame_nonce ( )

get_gmt_offset() 공개 메소드

public get_gmt_offset ( )

get_header_image() 공개 메소드

public get_header_image ( )

get_id() 공개 메소드

public get_id ( )

get_image_large_height() 공개 메소드

get_image_large_width() 공개 메소드

get_image_medium_height() 공개 메소드

get_image_medium_width() 공개 메소드

get_image_thumbnail_crop() 공개 메소드

get_image_thumbnail_height() 공개 메소드

get_image_thumbnail_width() 공개 메소드

get_jetpack_modules() 추상적인 공개 메소드

abstract public get_jetpack_modules ( )

get_jetpack_seo_front_page_description() 추상적인 공개 메소드

get_jetpack_seo_title_formats() 추상적인 공개 메소드

abstract public get_jetpack_seo_title_formats ( )

get_locale() 추상적인 공개 메소드

abstract public get_locale ( )

get_login_url() 공개 메소드

public get_login_url ( )

get_name() 공개 메소드

public get_name ( )

get_page_for_posts() 공개 메소드

public get_page_for_posts ( )

get_page_on_front() 공개 메소드

public get_page_on_front ( )

get_plan() 추상적인 공개 메소드

abstract public get_plan ( )

get_post_by_id() 공개 메소드

public get_post_by_id ( $post_id, $context )

get_post_by_name() 공개 메소드

Attempts to match name on post title and page path
public get_post_by_name ( string $name, string $context ) : object
$name string
$context string (display or edit)
리턴 object Post object on success, WP_Error object on failure

get_post_count() 공개 메소드

public get_post_count ( )

get_post_formats() 추상적인 공개 메소드

abstract public get_post_formats ( )

get_post_id_by_name() 공개 메소드

Attempts to match name on post title and page path
public get_post_id_by_name ( string $name ) : integer | object
$name string
리턴 integer | object Post ID on success, WP_Error object on failure

get_registered_date() 공개 메소드

public get_registered_date ( )

get_show_on_front() 공개 메소드

public get_show_on_front ( )

get_subscribers_count() 추상적인 공개 메소드

abstract public get_subscribers_count ( )

get_theme_slug() 공개 메소드

public get_theme_slug ( )

get_timezone() 공개 메소드

public get_timezone ( )

get_unmapped_url() 공개 메소드

public get_unmapped_url ( )

get_url() 공개 메소드

public get_url ( )

get_verification_services_codes() 추상적인 공개 메소드

abstract public get_verification_services_codes ( )

get_wordpress_version() 공개 메소드

get_xmlrpc_url() 공개 메소드

public get_xmlrpc_url ( )

has_videopress() 추상적인 공개 메소드

abstract public has_videopress ( )

has_wordads() 추상적인 공개 메소드

abstract public has_wordads ( )

is_custom_front_page() 공개 메소드

is_following() 추상적인 공개 메소드

abstract public is_following ( )

is_headstart() 공개 메소드

public is_headstart ( )

is_jetpack() 추상적인 공개 메소드

abstract public is_jetpack ( )

is_mapped_domain() 추상적인 공개 메소드

abstract public is_mapped_domain ( )

is_multisite() 추상적인 공개 메소드

abstract public is_multisite ( )

is_private() 추상적인 공개 메소드

abstract public is_private ( )

is_publicize_permanently_disabled() 공개 메소드

is_redirect() 추상적인 공개 메소드

abstract public is_redirect ( )

is_single_user_site() 추상적인 공개 메소드

abstract public is_single_user_site ( )

is_vip() 추상적인 공개 메소드

abstract public is_vip ( )

is_visible() 공개 메소드

public is_visible ( )

upgraded_filetypes_enabled() 추상적인 공개 메소드

abstract public upgraded_filetypes_enabled ( )

user_can_manage() 공개 메소드

public user_can_manage ( )

wrap_post() 추상적인 공개 메소드

wrap a WP_Post object with SAL methods
abstract public wrap_post ( $post, $context )

프로퍼티 상세

$blog_id 공개적으로 프로퍼티

public $blog_id

$platform 공개적으로 프로퍼티

public $platform