depage-graphics
Loading...
Searching...
No Matches
Imgurl Class Reference

Detailed Description

Definition at line 11 of file Imgurl.php.

Public Member Functions

 __construct ($options=array())
 render ($url=null)
 display ()
 getUrl ($img)
 addBackground ($background)
 addCrop ($width, $height, $x=0, $y=0)
 addResize ($width, $height)
 addThumb ($width, $height)
 addThumbfill ($width, $height, $centerX=50, $centerY=50)
 setQuality ($quality)

Data Fields

 $id = ""
 $rendered = false

Protected Member Functions

 analyze ($url)
 analyzeActions ($actionString)

Protected Attributes

 $options = []
 $actions = []
 $srcImg = ''
 $outImg = ''
 $notFound = false
 $invalidAction = false
 $cachePath = ''
 $aliases

Constructor & Destructor Documentation

◆ __construct()

__construct ( $options = array())

Definition at line 47 of file Imgurl.php.

Member Function Documentation

◆ addBackground()

addBackground ( $background)

Definition at line 261 of file Imgurl.php.

◆ addCrop()

addCrop ( $width,
$height,
$x = 0,
$y = 0 )

Definition at line 267 of file Imgurl.php.

◆ addResize()

addResize ( $width,
$height )

Definition at line 273 of file Imgurl.php.

◆ addThumb()

addThumb ( $width,
$height )

Definition at line 279 of file Imgurl.php.

◆ addThumbfill()

addThumbfill ( $width,
$height,
$centerX = 50,
$centerY = 50 )

Definition at line 285 of file Imgurl.php.

◆ analyze()

analyze ( $url)
protected

Definition at line 55 of file Imgurl.php.

◆ analyzeActions()

analyzeActions ( $actionString)
protected

Definition at line 134 of file Imgurl.php.

◆ display()

display ( )

Definition at line 219 of file Imgurl.php.

◆ getUrl()

getUrl ( $img)

Definition at line 249 of file Imgurl.php.

◆ render()

render ( $url = null)

Definition at line 174 of file Imgurl.php.

◆ setQuality()

setQuality ( $quality)

Definition at line 296 of file Imgurl.php.

Field Documentation

◆ $actions

$actions = []
protected

Definition at line 14 of file Imgurl.php.

◆ $aliases

$aliases
protected
Initial value:
= array(
'quality' => "setQuality",
'q' => "setQuality",
'crop' => "addCrop",
'c' => "addCrop",
'resize' => "addResize",
'r' => "addResize",
'thumbfill' => "addThumbfill",
'tf' => "addThumbfill",
'thumb' => "addThumb",
't' => "addThumb",
'background' => "addBackground",
'bg' => "addBackground",
)

Definition at line 29 of file Imgurl.php.

◆ $cachePath

$cachePath = ''
protected

Definition at line 21 of file Imgurl.php.

◆ $id

$id = ""

Definition at line 18 of file Imgurl.php.

◆ $invalidAction

$invalidAction = false
protected

Definition at line 20 of file Imgurl.php.

◆ $notFound

$notFound = false
protected

Definition at line 17 of file Imgurl.php.

◆ $options

$options = []
protected

Definition at line 13 of file Imgurl.php.

◆ $outImg

$outImg = ''
protected

Definition at line 16 of file Imgurl.php.

◆ $rendered

$rendered = false

Definition at line 19 of file Imgurl.php.

◆ $srcImg

$srcImg = ''
protected

Definition at line 15 of file Imgurl.php.


The documentation for this class was generated from the following file: