securityheadersOptions
in package
Options handler for http_security_headers plugin
Table of Contents
- __construct() : mixed
- getContentSecurityPolicyFetchSources() : type
- Checkbox options for CSP fetch directive except for - frame-ancestors - plugin-types - sandbox
- getContentSecurityPolicyFrameAncestorsSources() : array<string|int, mixed>
- Returns the array for the options list for CSP frame-ancestors header
- getCOntentSecurityPolicyHostSourceDoc() : mixed
- getContentSecurityPolicySandboxSources() : array<string|int, mixed>
- Returns the array for the checkbox option list for the CSP Sandbox header
- getContentSecuritytPolicyPluginTypes() : array<string|int, mixed>
- Gets the formatted mimetype list for the CSP plugin-types directive
- getOptionsSupported() : mixed
- getStandardDesc() : string
- Returns default text with basically just a link to detailed documentation.
- getXframeSources() : array<string|int, mixed>
- Returns the array for the checkbox option list for X-Frame-Option header
- handleOption() : mixed
- handleOptionSave() : mixed
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getContentSecurityPolicyFetchSources()
Checkbox options for CSP fetch directive except for - frame-ancestors - plugin-types - sandbox
public
static getContentSecurityPolicyFetchSources([mixed $baseoption = '' ]) : type
Parameters
- $baseoption : mixed = ''
Return values
type —getContentSecurityPolicyFrameAncestorsSources()
Returns the array for the options list for CSP frame-ancestors header
public
static getContentSecurityPolicyFrameAncestorsSources() : array<string|int, mixed>
Return values
array<string|int, mixed> —getCOntentSecurityPolicyHostSourceDoc()
public
static getCOntentSecurityPolicyHostSourceDoc() : mixed
Return values
mixed —getContentSecurityPolicySandboxSources()
Returns the array for the checkbox option list for the CSP Sandbox header
public
static getContentSecurityPolicySandboxSources() : array<string|int, mixed>
Return values
array<string|int, mixed> —getContentSecuritytPolicyPluginTypes()
Gets the formatted mimetype list for the CSP plugin-types directive
public
static getContentSecuritytPolicyPluginTypes([mixed $suffix_as_key = false ]) : array<string|int, mixed>
Parameters
- $suffix_as_key : mixed = false
Tags
Return values
array<string|int, mixed> —getOptionsSupported()
public
getOptionsSupported() : mixed
Return values
mixed —getStandardDesc()
Returns default text with basically just a link to detailed documentation.
public
static getStandardDesc(string $link[, bool $csptext = false ]) : string
Parameters
- $link : string
-
Link to the full documentation
- $csptext : bool = false
-
Show additional optional text for CSP directives
Return values
string —getXframeSources()
Returns the array for the checkbox option list for X-Frame-Option header
public
static getXframeSources() : array<string|int, mixed>
Return values
array<string|int, mixed> —handleOption()
public
handleOption(mixed $option, mixed $currentValue) : mixed
Parameters
- $option : mixed
- $currentValue : mixed
Return values
mixed —handleOptionSave()
public
handleOptionSave(mixed $themename, mixed $themealbum) : mixed
Parameters
- $themename : mixed
- $themealbum : mixed