\com\bmj\jnp\plugins\jnp_brightcoveBrightcoveVideo

'brightcove-video' CPT wrapper class

Summary

Methods
Properties
Constants
__construct()
getPostName()
getCorpusCode()
sync()
No public properties found
SYNC_NEW
SYNC_OLD
getPostTitle()
getPostContent()
getPostExcerpt()
getPostDateGmt()
$video
$custom
$slug
$args
N/A
No private methods found
No private properties found
N/A

Constants

SYNC_NEW

SYNC_NEW

SYNC_OLD

SYNC_OLD

Properties

$video

$video : \Brightcove\API\Video

Type

\Brightcove\API\Video — Brightcove API video

$custom

$custom : array<mixed,mixed>

Type

array<mixed,mixed> — Brightcove video custom fields

$slug

$slug : string

Type

string — Post slug

$args

$args : array

Type

array — Post args

Methods

__construct()

__construct(\Brightcove\Object\Video\Video  $video) 

Constructor

Parameters

\Brightcove\Object\Video\Video $video

Brightcove video

getPostName()

getPostName() : string

post_name

Returns

string —

post slug

getCorpusCode()

getCorpusCode() : string|null

Get corpus code

Returns

string|null —

Highwire journal code

sync()

sync() 

Sync Brightcove video to post

Throws

\com\bmj\jnp\plugins\jnp_brightcove\BrightcoveWpInsertPostException
\com\bmj\jnp\plugins\jnp_brightcove\BrightcoveWpInsertTermException
\com\bmj\jnp\plugins\jnp_brightcove\BrightcoveWpSetObjectTermsException

getPostTitle()

getPostTitle() : string

post_title

Returns

string —

post title if set, slug if not

getPostContent()

getPostContent() : string

post_content

Returns

string —

post content if set, empty string if not

getPostExcerpt()

getPostExcerpt() : string

post_excerpt

Returns

string —

post excerpt if set, empty string if not

getPostDateGmt()

getPostDateGmt() : string

post_date

Returns

string —

post date, GMT