Imgurl Class Reference

Detailed Description

Definition at line 11 of file Imgurl.php.

Public Member Functions

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

Protected Member Functions

 analyze ()
 
 analyzeActions ($actionString)
 

Protected Attributes

 $options = array()
 
 $actions = array()
 
 $invalidAction = false
 
 $cachePath = ''
 
 $aliases
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $options = array())

Definition at line 41 of file Imgurl.php.

Member Function Documentation

◆ addBackground()

addBackground (   $background)

Definition at line 216 of file Imgurl.php.

◆ addCrop()

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

Definition at line 220 of file Imgurl.php.

◆ addResize()

addResize (   $width,
  $height 
)

Definition at line 224 of file Imgurl.php.

◆ addThumb()

addThumb (   $width,
  $height 
)

Definition at line 228 of file Imgurl.php.

◆ addThumbfill()

addThumbfill (   $width,
  $height 
)

Definition at line 232 of file Imgurl.php.

◆ analyze()

analyze ( )
protected

Definition at line 49 of file Imgurl.php.

◆ analyzeActions()

analyzeActions (   $actionString)
protected

Definition at line 98 of file Imgurl.php.

◆ display()

display ( )

Definition at line 185 of file Imgurl.php.

◆ getUrl()

getUrl (   $img)

Definition at line 204 of file Imgurl.php.

◆ render()

render ( )

Definition at line 140 of file Imgurl.php.

◆ setQuality()

setQuality (   $quality)

Definition at line 236 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 23 of file Imgurl.php.

◆ $cachePath

$cachePath = ''
protected

Definition at line 16 of file Imgurl.php.

◆ $invalidAction

$invalidAction = false
protected

Definition at line 15 of file Imgurl.php.

◆ $options

$options = array()
protected

Definition at line 13 of file Imgurl.php.


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