Method | Description | |
---|---|---|
__construct ( ) | VideoPress_Edit_Attachment constructor. | |
configure_meta_boxes ( string $post_type = 'unknown', object $post = NULL ) | ||
fields_to_edit ( array $fields, stdClass $post ) : array | Creates an array of video fields to edit based on transcoded videos. | |
init ( ) : VideoPress_Edit_Attachment | Singleton method to initialize the object only once. | |
make_video_api_path ( string $guid ) : string | Get the upload api path. | |
save_fields ( array $post, array | null $attachment = null ) : array | ||
videopress_information_box ( stdClass $post ) |
Method | Description | |
---|---|---|
display_embed_choice ( object $info ) : string | Build HTML to display a form checkbox for embedcode display preference | |
display_rating ( object $info ) : string | Build HTML to display a form input radio button for video ratings |
public __construct ( ) |
public configure_meta_boxes ( string $post_type = 'unknown', object $post = NULL ) | ||
$post_type | string | |
$post | object |
protected display_embed_choice ( object $info ) : string | ||
$info | object | database row from the videos table |
return | string | input element of type checkbox set to checked state based on stored embed preference |
protected display_rating ( object $info ) : string | ||
$info | object | database row from the videos table |
return | string | input elements of type radio with existing stored value selected |
public fields_to_edit ( array $fields, stdClass $post ) : array | ||
$fields | array | video fields of interest |
$post | stdClass | post object |
return | array | modified version of video fields for administrative interface display |
public static init ( ) : VideoPress_Edit_Attachment | ||
return | VideoPress_Edit_Attachment |
public make_video_api_path ( string $guid ) : string | ||
$guid | string | |
return | string |
public videopress_information_box ( stdClass $post ) | ||
$post | stdClass |