PHP 클래스 Ooyala, vip-mu-plugins-public

파일 보기 프로젝트 열기: Automattic/vip-mu-plugins-public 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$allowed_values
$paramMapping mapping of shortcode param => API param
$playerDefaults some of these field names differ from the player API bc WP lowercases shortcode params, they are mapped below
$settings_default

공개 메소드들

메소드 설명
action_init ( ) Register shortcodes
admin_enqueue ( ) Enqueue all assets used for admin view. Localize scripts.
admin_init ( ) Register settings screen and validation callback
admin_notices ( ) Notify the user if the API credentials have not been entered
ajax_check ( ) Check against a nonce to limit exposure, all AJAX handlers must use this
ajax_download ( ) Process download, return image ID to use as featured image.
ajax_error ( $message = null, $data = [] ) Emit an error result via AJAX
ajax_get_image_id ( ) Look up an attachment ID from a preview URL
ajax_sign_request ( ) Process signing request
ajax_success ( $message = null, $data = [] ) Emit a success message via AJAX
configured ( ) : boolean Is this module configured?
get_attachment_id ( string $url ) : integer Look up an attachment ID based on a given Ooyala thumbnail URL
get_settings ( ) : array Get the user's saved settings for this plugin, filled in with default values.
instance ( )
is_default ( string $field, mixed $value ) : boolean Determine if the supplied shortcode param is the default for the player
media_buttons ( $editor_id = 'content' ) Add "Ooyala.
print_media_templates ( ) Include all of the templates used by Backbone views
settings_fields ( ) Emit settings fields
shortcode ( $atts, $content = null ) Render the Ooyala shortcode
validate_settings ( $settings ) Validate option value

비공개 메소드들

메소드 설명
__clone ( )
__construct ( ) : null Register actions and filters

메소드 상세

action_init() 공개 메소드

Register shortcodes
public action_init ( )

admin_enqueue() 공개 메소드

Enqueue all assets used for admin view. Localize scripts.
public admin_enqueue ( )

admin_init() 공개 메소드

Register settings screen and validation callback
public admin_init ( )

admin_notices() 공개 메소드

Notify the user if the API credentials have not been entered
public admin_notices ( )

ajax_check() 공개 메소드

Check against a nonce to limit exposure, all AJAX handlers must use this
public ajax_check ( )

ajax_download() 공개 메소드

Process download, return image ID to use as featured image.
public ajax_download ( )

ajax_error() 공개 메소드

Emit an error result via AJAX
public ajax_error ( $message = null, $data = [] )

ajax_get_image_id() 공개 메소드

Look up an attachment ID from a preview URL
public ajax_get_image_id ( )

ajax_sign_request() 공개 메소드

Process signing request
public ajax_sign_request ( )

ajax_success() 공개 메소드

Emit a success message via AJAX
public ajax_success ( $message = null, $data = [] )

configured() 공개 메소드

Is this module configured?
public configured ( ) : boolean
리턴 boolean

get_attachment_id() 공개 메소드

Look up an attachment ID based on a given Ooyala thumbnail URL
public get_attachment_id ( string $url ) : integer
$url string
리턴 integer

get_settings() 공개 메소드

Get the user's saved settings for this plugin, filled in with default values.
public get_settings ( ) : array
리턴 array settings or defaults

instance() 공개 정적인 메소드

public static instance ( )

is_default() 공개 메소드

Determine if the supplied shortcode param is the default for the player
public is_default ( string $field, mixed $value ) : boolean
$field string shortcode field name
$value mixed
리턴 boolean determination

media_buttons() 공개 메소드

.." button to edit screen
public media_buttons ( $editor_id = 'content' )

print_media_templates() 공개 메소드

Include all of the templates used by Backbone views

settings_fields() 공개 메소드

Emit settings fields
public settings_fields ( )

shortcode() 공개 메소드

Render the Ooyala shortcode
public shortcode ( $atts, $content = null )

validate_settings() 공개 메소드

Validate option value
public validate_settings ( $settings )

프로퍼티 상세

$allowed_values 공개적으로 프로퍼티

public $allowed_values

$paramMapping 공개적으로 프로퍼티

mapping of shortcode param => API param
public $paramMapping

$playerDefaults 공개적으로 프로퍼티

some of these field names differ from the player API bc WP lowercases shortcode params, they are mapped below
public $playerDefaults

$settings_default 공개적으로 프로퍼티

public $settings_default