PHP Image

AbstractGdValidation extends AbstractTemporary
in package

AbstractYes

This is a simple GD Validation implementation that other GD Validation can inherit from.

Table of Contents

Properties

$temporary  : array<string|int, string>

Methods

__destruct()  : mixed
addTemporary()  : static
Return an instance with the added temprary filename.
clearTemporary()  : static
Clear temporary data.
getRandomFilename()  : string
Retrieve a random temporary filename.
validateArc()  : static
Return an instance with valid draw arc.
validateArea()  : static
Return an instance with valid draw area.
validateBlur()  : static
Return an instance with valid blur filter.
validateBrightness()  : static
Return an instance with valid brightness filter.
validateColorize()  : static
Return an instance with valid colorize filter.
validateContrast()  : static
Return an instance with valid contrast filter.
validateCopy()  : static
Return an instance with valid copy transform.
validateCorner()  : static
Return an instance with valid corner transform.
validatePixelate()  : static
Return an instance with valid pixelate filter.
validatePolygon()  : static
Return an instance with valid draw polygon.
validateScatter()  : static
Return an instance with valid scatetr filter.
validateSelection()  : static
Return an instance with valid selection.
validateSmooth()  : static
Return an instance with valid smooth filter.
validateTtf()  : static
Return an instance with valid TTF.

Properties

Methods

addTemporary()

Return an instance with the added temprary filename.

protected addTemporary(string $Filename) : static
Parameters
$Filename : string

The temporary filename.

Return values
static

clearTemporary()

Clear temporary data.

protected clearTemporary() : static
Return values
static

getRandomFilename()

Retrieve a random temporary filename.

protected getRandomFilename(string $Namespace[, string $Extension = "tmp" ]) : string
Parameters
$Namespace : string

The file namespace.

$Extension : string = "tmp"

The file extension.

Return values
string

validateArc()

Return an instance with valid draw arc.

protected validateArc(array<string, int> $Arc, bool $WithStyle) : static
Parameters
$Arc : array<string, int>

The draw arc.

$WithStyle : bool

With style key.

Tags
throws
ValidationException

If invalid.

Return values
static

validateArea()

Return an instance with valid draw area.

protected validateArea(array<string, int> $Area) : static
Parameters
$Area : array<string, int>

The draw area.

Tags
throws
ValidationException

If invalid.

Return values
static

validateBlur()

Return an instance with valid blur filter.

protected validateBlur(array<string, int> $Blur) : static
Parameters
$Blur : array<string, int>

The blur filter.

Tags
throws
ValidationException

If invalid.

Return values
static

validateBrightness()

Return an instance with valid brightness filter.

protected validateBrightness(array<string, int> $Brightness) : static
Parameters
$Brightness : array<string, int>

The brightness filter.

Tags
throws
ValidationException

If invalid.

Return values
static

validateColorize()

Return an instance with valid colorize filter.

protected validateColorize(array<string, mixed> $Colorize) : static
Parameters
$Colorize : array<string, mixed>

The colorize filter.

Tags
throws
ValidationException

If invalid.

Return values
static

validateContrast()

Return an instance with valid contrast filter.

protected validateContrast(array<string, int> $Contrast) : static
Parameters
$Contrast : array<string, int>

The contrast filter.

Tags
throws
ValidationException

If invalid.

Return values
static

validateCopy()

Return an instance with valid copy transform.

protected validateCopy(array<string, mixed> $Copy) : static
Parameters
$Copy : array<string, mixed>

The copy transform.

Tags
throws
ValidationException

If invalid.

Return values
static

validateCorner()

Return an instance with valid corner transform.

protected validateCorner(array<string, int> $Corner) : static
Parameters
$Corner : array<string, int>

The corner transform.

Tags
throws
ValidationException

If invalid.

Return values
static

validatePixelate()

Return an instance with valid pixelate filter.

protected validatePixelate(array<string, mixed> $Pixelate) : static
Parameters
$Pixelate : array<string, mixed>

The pixelate filter.

Tags
throws
ValidationException

If invalid.

Return values
static

validatePolygon()

Return an instance with valid draw polygon.

protected validatePolygon(array<string, mixed> $Polygon) : static
Parameters
$Polygon : array<string, mixed>

The draw polygon.

Tags
throws
ValidationException

If invalid.

Return values
static

validateScatter()

Return an instance with valid scatetr filter.

protected validateScatter(array<string, mixed> $Scatter) : static
Parameters
$Scatter : array<string, mixed>

The scatetr filter.

Tags
throws
ValidationException

If invalid.

Return values
static

validateSelection()

Return an instance with valid selection.

protected validateSelection(array<string, int> $Selection) : static
Parameters
$Selection : array<string, int>

The selection.

Tags
throws
ValidationException

If invalid.

Return values
static

validateSmooth()

Return an instance with valid smooth filter.

protected validateSmooth(array<string, int> $Smooth) : static
Parameters
$Smooth : array<string, int>

The smooth filter.

Tags
throws
ValidationException

If invalid.

Return values
static

validateTtf()

Return an instance with valid TTF.

protected validateTtf(array<string, mixed> $Ttf, bool $WithEngrave) : static
Parameters
$Ttf : array<string, mixed>

The TTF.

$WithEngrave : bool

With engrave key.

Tags
throws
ValidationException

If invalid.

Return values
static

        
On this page

Search results