JSBuilder
extends BaseBuilder
in package
implements
BuilderInterface
Table of Contents
Interfaces
Properties
Methods
- __construct() : mixed
- JSBuilder constructor.
- buildTags() : array<string|int, mixed>
- getCustomTags() : array<string|int, mixed>
- getHeadTags() : void
- getNonce() : void
- getOwner() : CSPBackend
- getSriBuilder() : SRIBuilder
- setOwner() : void
- setSriBuilder() : void
- getBaseCustomTags() : void
- getBaseHeadTags() : void
Properties
$owner
protected
CSPBackend
$owner
$sriBuilder
protected
SRIBuilder
$sriBuilder
Methods
__construct()
JSBuilder constructor.
public
__construct(CSPBackend $backend) : mixed
Parameters
- $backend : CSPBackend
buildTags()
public
buildTags(string $file, array<string|int, mixed> $attributes, array<string|int, mixed> $requirements, string $path) : array<string|int, mixed>
Parameters
- $file : string
- $attributes : array<string|int, mixed>
- $requirements : array<string|int, mixed>
- $path : string
Tags
Return values
array<string|int, mixed>getCustomTags()
public
getCustomTags([array<string|int, mixed> $requirements = [] ]) : array<string|int, mixed>
Parameters
- $requirements : array<string|int, mixed> = []
Return values
array<string|int, mixed>getHeadTags()
public
getHeadTags(array<string|int, mixed> &$requirements) : void
Parameters
- $requirements : array<string|int, mixed>
getNonce()
public
static getNonce(array<string|int, mixed> &$options) : void
Parameters
- $options : array<string|int, mixed>
getOwner()
public
getOwner() : CSPBackend
Return values
CSPBackendgetSriBuilder()
public
getSriBuilder() : SRIBuilder
Return values
SRIBuildersetOwner()
public
setOwner(CSPBackend $owner) : void
Parameters
- $owner : CSPBackend
setSriBuilder()
public
setSriBuilder(SRIBuilder $sriBuilder) : void
Parameters
- $sriBuilder : SRIBuilder
getBaseCustomTags()
protected
getBaseCustomTags([array<string|int, mixed> &$requirements = [] ][, array<string|int, mixed> $scripts = [] ][, string $type = '' ]) : void
Parameters
- $requirements : array<string|int, mixed> = []
- $scripts : array<string|int, mixed> = []
- $type : string = ''
getBaseHeadTags()
protected
getBaseHeadTags(array<string|int, mixed> &$requirements, array<string|int, mixed> $scripts[, string $type = '' ]) : void
Parameters
- $requirements : array<string|int, mixed>
- $scripts : array<string|int, mixed>
- $type : string = ''