WebVIEP Plugin

ExternalInfoPlatformUrlRepositoryWp implements ExternalInfoPlatformUrlRepository

FinalYes

Table of Contents

Interfaces

ExternalInfoPlatformUrlRepository
Repository for ExternalInfoPlatform aggregate.

Constants

DEFAULT_FALLBACK  = ''
DEFAULT_HEADLINE  = ''
DEFAULT_HEIGHT  = 720
DEFAULT_ID  = 1
DEFAULT_INTRO  = ''
DEFAULT_LINK_LABEL  = ''
DEFAULT_MODE  = 'embed'
OPTION_FALLBACK  = 'webviep_external_platform_fallback'
OPTION_HEADLINE  = 'webviep_external_platform_headline'
OPTION_HEIGHT  = 'webviep_external_platform_height'
OPTION_ID  = 'webviep_external_platform_id'
OPTION_INTRO  = 'webviep_external_platform_intro'
OPTION_LINK_LABEL  = 'webviep_external_platform_link_label'
OPTION_MODE  = 'webviep_external_platform_mode'
OPTION_URL  = 'webviep_external_platform_url'

Methods

get()  : ExternalInfoPlatform|null
Load settings from WP options.
getFallbackText()  : string
Get stored fallback text.
getHeadline()  : string
Get stored headline.
getHeight()  : int
Get stored iframe height (min 200).
getIntro()  : string
Get stored intro text.
getLinkLabel()  : string
Get stored link label.
getMode()  : string
Get stored mode with fallback to default.
getUrl()  : string
Get stored URL (raw, sanitized).
save()  : void
Persist settings to WP options.
updateAll()  : void
Convenience method to update all relevant settings at once.
getIdValue()  : int
Get ID value from options with fallback.
sanitizeMode()  : string
Sanitize mode value.

Constants

Methods

updateAll()

Convenience method to update all relevant settings at once.

public updateAll(string $url, string $mode, string $headline, string $intro, string $fallbackText, string $linkLabel, int $height) : void
Parameters
$url : string

External platform URL.

$mode : string

embed|link|redirect.

$headline : string

Headline text.

$intro : string

Intro text.

$fallbackText : string

Fallback message.

$linkLabel : string

Link button label.

$height : int

Iframe height.


        
On this page

Search results