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 = array()
 
 $actions = array()
 
 $notFound = false
 
 $invalidAction = false
 
 $cachePath = ''
 
 $aliases
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $options = array())

Definition at line 44 of file Imgurl.php.

Member Function Documentation

◆ addBackground()

addBackground (   $background)

Definition at line 255 of file Imgurl.php.

◆ addCrop()

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

Definition at line 261 of file Imgurl.php.

◆ addResize()

addResize (   $width,
  $height 
)

Definition at line 267 of file Imgurl.php.

◆ addThumb()

addThumb (   $width,
  $height 
)

Definition at line 273 of file Imgurl.php.

◆ addThumbfill()

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

Definition at line 279 of file Imgurl.php.

◆ analyze()

analyze (   $url)
protected

Definition at line 52 of file Imgurl.php.

◆ analyzeActions()

analyzeActions (   $actionString)
protected

Definition at line 128 of file Imgurl.php.

◆ display()

display ( )

Definition at line 213 of file Imgurl.php.

◆ getUrl()

getUrl (   $img)

Definition at line 243 of file Imgurl.php.

◆ render()

render (   $url = null)

Definition at line 168 of file Imgurl.php.

◆ setQuality()

setQuality (   $quality)

Definition at line 290 of file Imgurl.php.

Field Documentation

◆ $actions

$actions = array()
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 26 of file Imgurl.php.

◆ $cachePath

$cachePath = ''
protected

Definition at line 19 of file Imgurl.php.

◆ $id

$id = ""

Definition at line 16 of file Imgurl.php.

◆ $invalidAction

$invalidAction = false
protected

Definition at line 18 of file Imgurl.php.

◆ $notFound

$notFound = false
protected

Definition at line 15 of file Imgurl.php.

◆ $options

$options = array()
protected

Definition at line 13 of file Imgurl.php.

◆ $rendered

$rendered = false

Definition at line 17 of file Imgurl.php.


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