\com\bmj\jnp\plugins\jnp_brightcoveBrightcoveSiteList

Site list

Summary

Methods
Properties
Constants
__construct()
keys()
__get()
__set()
__isset()
__unset()
offsetSet()
offsetExists()
offsetUnset()
offsetGet()
rewind()
current()
key()
next()
valid()
No public properties found
READ_ONLY
No protected methods found
$pos
$sites
N/A
No private methods found
No private properties found
N/A

Constants

READ_ONLY

READ_ONLY

Properties

$pos

$pos : integer

Type

integer — Iterator position

$sites

$sites : array<mixed,\WP_Site>

Type

array<mixed,\WP_Site> — WP_Site objects

Methods

__construct()

__construct(boolean  $clear = false) 

Constructor

Parameters

boolean $clear

Clear previous errors

keys()

keys() : array<mixed,string>

Substitute for array_keys() support

Returns

array<mixed,string> —

List of corpus codes

__get()

__get(string  $key) : \WP_Site|null

Get WP_Site by corpus code

Parameters

string $key

Corpus code

Returns

\WP_Site|null —

WP_Site

__set()

__set(string  $key, integer  $value) 

Set blog_id by corpus code

Read-only - always throws

Parameters

string $key

Corpus code

integer $value

blog_id

Throws

\BadMethodCallException

__isset()

__isset(string  $key) : boolean

Check if corpus code set

Parameters

string $key

Corpus code

Returns

boolean

__unset()

__unset(string  $key) 

Unset corpus code

Read-only - always throws

Parameters

string $key

Corpus code

Throws

\BadMethodCallException

offsetSet()

offsetSet(string  $offset, integer  $value) 

Set blog_id by corpus code

Read-only - always throws

Parameters

string $offset

Corpus code

integer $value

blog_id

Throws

\OutOfBoundsException

offsetExists()

offsetExists(string  $offset) : boolean

Check if corpus code set

Parameters

string $offset

Corpus code

Returns

boolean

offsetUnset()

offsetUnset(string  $offset) 

Unset corpus code

Read-only - always throws

Parameters

string $offset

Corpus code

Throws

\OutOfBoundsException

offsetGet()

offsetGet(string  $offset) : integer|null

Get blog_id by corpus code

Parameters

string $offset

Corpus code

Returns

integer|null —

blog_id

rewind()

rewind() 

Iterator::rewind

current()

current() : \WP_Site

Iterator::current

Returns

\WP_Site —

Current site

key()

key() : integer

Iterator::key

Returns

integer —

Current blog_id

next()

next() 

Itereator::next

valid()

valid() : boolean

Itereator::valid

Returns

boolean —

Is valid