Documentation

BlockedResult
in package

A blocked result defines a "blocked" content while processing the content blocker itself.

Table of Contents

Properties

$attributes  : mixed
$blocked  : mixed
$blockedExpressions  : mixed
$data  : mixed
$markup  : mixed
$tag  : mixed

Methods

__construct()  : mixed
C'tor.
addBlocked()  : mixed
Add blocked description (to allow multiple blockables cover this blocked content).
addBlockedExpression()  : mixed
Mark the content to be blocked through a given expression.
disableBlocking()  : mixed
Disable blocking.
getAttributes()  : mixed
Getter.
getBlocked()  : mixed
Getter.
getBlockedExpressions()  : mixed
Getter.
getData()  : mixed
Get additional blocking data.
getFirstBlocked()  : mixed
Getter.
getMarkup()  : mixed
Getter.
getTag()  : mixed
Getter.
isBlocked()  : mixed
Should this content be blocked?
setBlocked()  : mixed
Mark the content to be blocked.
setBlockedExpressions()  : mixed
Mark the content to be blocked through given expressions.
setData()  : mixed
Allows to set additional data for this blocked result.

Properties

Methods

__construct()

C'tor.

public __construct(string $tag, array<string|int, mixed> $attributes, string $markup) : mixed
Parameters
$tag : string
$attributes : array<string|int, mixed>
$markup : string
Tags
codeCoverageIgnore

addBlockedExpression()

Mark the content to be blocked through a given expression.

public addBlockedExpression(string $expression) : mixed
Parameters
$expression : string

disableBlocking()

Disable blocking.

public disableBlocking() : mixed

getAttributes()

Getter.

public getAttributes() : mixed
Tags
codeCoverageIgnore

getBlocked()

Getter.

public getBlocked() : mixed
Tags
codeCoverageIgnore

getBlockedExpressions()

Getter.

public getBlockedExpressions() : mixed
Tags
codeCoverageIgnore

getData()

Get additional blocking data.

public getData(string $key) : mixed
Parameters
$key : string

getFirstBlocked()

Getter.

public getFirstBlocked() : mixed
Tags
codeCoverageIgnore

getMarkup()

Getter.

public getMarkup() : mixed
Tags
codeCoverageIgnore

getTag()

Getter.

public getTag() : mixed
Tags
codeCoverageIgnore

isBlocked()

Should this content be blocked?

public isBlocked() : mixed

setBlockedExpressions()

Mark the content to be blocked through given expressions.

public setBlockedExpressions(array<string|int, string> $expressions) : mixed
Parameters
$expressions : array<string|int, string>

Can also be []

setData()

Allows to set additional data for this blocked result.

public setData(string $key, mixed $data) : mixed
Parameters
$key : string
$data : mixed

        
On this page

Search results