AbstractGdValidation
extends AbstractTemporary
in package
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
$temporary
private
array<string|int, string>
$temporary
= []
Methods
__destruct()
public
__destruct() : mixed
addTemporary()
Return an instance with the added temprary filename.
protected
addTemporary(string $Filename) : static
Parameters
- $Filename : string
-
The temporary filename.
Return values
staticclearTemporary()
Clear temporary data.
protected
clearTemporary() : static
Return values
staticgetRandomFilename()
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
stringvalidateArc()
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
Return values
staticvalidateArea()
Return an instance with valid draw area.
protected
validateArea(array<string, int> $Area) : static
Parameters
- $Area : array<string, int>
-
The draw area.
Tags
Return values
staticvalidateBlur()
Return an instance with valid blur filter.
protected
validateBlur(array<string, int> $Blur) : static
Parameters
- $Blur : array<string, int>
-
The blur filter.
Tags
Return values
staticvalidateBrightness()
Return an instance with valid brightness filter.
protected
validateBrightness(array<string, int> $Brightness) : static
Parameters
- $Brightness : array<string, int>
-
The brightness filter.
Tags
Return values
staticvalidateColorize()
Return an instance with valid colorize filter.
protected
validateColorize(array<string, mixed> $Colorize) : static
Parameters
- $Colorize : array<string, mixed>
-
The colorize filter.
Tags
Return values
staticvalidateContrast()
Return an instance with valid contrast filter.
protected
validateContrast(array<string, int> $Contrast) : static
Parameters
- $Contrast : array<string, int>
-
The contrast filter.
Tags
Return values
staticvalidateCopy()
Return an instance with valid copy transform.
protected
validateCopy(array<string, mixed> $Copy) : static
Parameters
- $Copy : array<string, mixed>
-
The copy transform.
Tags
Return values
staticvalidateCorner()
Return an instance with valid corner transform.
protected
validateCorner(array<string, int> $Corner) : static
Parameters
- $Corner : array<string, int>
-
The corner transform.
Tags
Return values
staticvalidatePixelate()
Return an instance with valid pixelate filter.
protected
validatePixelate(array<string, mixed> $Pixelate) : static
Parameters
- $Pixelate : array<string, mixed>
-
The pixelate filter.
Tags
Return values
staticvalidatePolygon()
Return an instance with valid draw polygon.
protected
validatePolygon(array<string, mixed> $Polygon) : static
Parameters
- $Polygon : array<string, mixed>
-
The draw polygon.
Tags
Return values
staticvalidateScatter()
Return an instance with valid scatetr filter.
protected
validateScatter(array<string, mixed> $Scatter) : static
Parameters
- $Scatter : array<string, mixed>
-
The scatetr filter.
Tags
Return values
staticvalidateSelection()
Return an instance with valid selection.
protected
validateSelection(array<string, int> $Selection) : static
Parameters
- $Selection : array<string, int>
-
The selection.
Tags
Return values
staticvalidateSmooth()
Return an instance with valid smooth filter.
protected
validateSmooth(array<string, int> $Smooth) : static
Parameters
- $Smooth : array<string, int>
-
The smooth filter.
Tags
Return values
staticvalidateTtf()
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.