Phenotype API Documentation

Class PhenotypeImageStandard

Description
Description | Descendents | Vars (details) | Methods (details)

Located in /class/PhenotypeImage.class.php (line 26)

PhenotypeMediaObject
   |
   --PhenotypeImageStandard
Direct descendents
Description | Descendents | Vars (details) | Methods (details)
Class Description
PhenotypeImage
Variable Summary
mixed $align
mixed $class
mixed $style
mixed $thumburl
mixed $type
mixed $x
mixed $y
Method Summary
PhenotypeImageStandard __construct$img_id)
void createResizedJPGVersion$bez,  $kante, [ $y = 0], [ $quality = 0])
void display ([ $alt = NULL], [ $version = NULL])
void display_fixX$fixX, [ $alt = "NULL"])
void display_maxX$maxX, [ $alt = NULL])
void display_thumb ([ $alt = NULL])
void display_thumbX$fixX, [ $alt = NULL])
void display_XY$x,  $y, [ $alt = NULL])
void getUrl ()
void render ([ $alt = Null], [ $version = NULL])
void render_fixX$fixX, [ $alt = NULL])
void render_maxX$maxX, [ $alt = NULL])
void render_thumb ([ $alt = NULL])
void render_thumbX$fixX, [ $alt = NULL])
void render_XY$x,  $y, [ $alt = NULL])
boolean selectVersionOrCreate (string $name, integer $x, integer $y, [integer $method = 5], [integer $quality = 85], [integer $sharpening = 1])
void setAlign$align)
void setClass$class)
void setId$id)
void setName$name)
Variables
mixed $align = "" (line 31)
  • access: public
mixed $class = "" (line 32)
  • access: public
mixed $style = "" (line 33)
  • access: public
mixed $thumburl (line 34)
  • access: public
mixed $type = MB_IMAGE (line 28)
  • access: public
mixed $x (line 29)
  • access: public
mixed $y (line 30)
  • access: public
Methods
Constructor __construct (line 36)
PhenotypeImageStandard __construct$img_id)
  • $img_id
createResizedJPGVersion (line 318)
void createResizedJPGVersion$bez,  $kante, [ $y = 0], [ $quality = 0])
  • $bez
  • $kante
  • $y
  • $quality
display (line 164)
void display ([ $alt = NULL], [ $version = NULL])
  • $alt
  • $version
display_fixX (line 274)
void display_fixX$fixX, [ $alt = "NULL"])
  • $fixX
  • $alt
display_maxX (line 180)
void display_maxX$maxX, [ $alt = NULL])
  • $maxX
  • $alt
display_thumb (line 119)
void display_thumb ([ $alt = NULL])
  • $alt
display_thumbX (line 204)
void display_thumbX$fixX, [ $alt = NULL])
  • $fixX
  • $alt
display_XY (line 257)
void display_XY$x,  $y, [ $alt = NULL])
  • $x
  • $y
  • $alt
getUrl (line 86)
void getUrl ()
render (line 110)
void render ([ $alt = Null], [ $version = NULL])
  • $alt
  • $version
render_fixX (line 140)
void render_fixX$fixX, [ $alt = NULL])
  • $fixX
  • $alt
render_maxX (line 148)
void render_maxX$maxX, [ $alt = NULL])
  • $maxX
  • $alt
render_thumb (line 124)
void render_thumb ([ $alt = NULL])
  • $alt
render_thumbX (line 132)
void render_thumbX$fixX, [ $alt = NULL])
  • $fixX
  • $alt
render_XY (line 156)
void render_XY$x,  $y, [ $alt = NULL])
  • $x
  • $y
  • $alt
selectVersionOrCreate (line 346)

Select version of an image or create it (if not existing)

  • return: success
boolean selectVersionOrCreate (string $name, integer $x, integer $y, [integer $method = 5], [integer $quality = 85], [integer $sharpening = 1])
  • string $name: name of the version to be selected/created
  • integer $x: width $x
  • integer $y: heigth $y
  • integer $method: 4 = fixed target size, 5 fit into traget size and maintain ratio (default)
  • integer $quality: JPEG quality
  • integer $sharpening: sharpen 0->no 1-4->yes
setAlign (line 95)
void setAlign$align)
  • $align
setClass (line 90)
void setClass$class)
  • $class
setId (line 105)
void setId$id)
  • $id
setName (line 100)
void setName$name)
  • $name

Documentation generated on Fri, 17 Jul 2009 16:43:01 +0200 by phpDocumentor 1.4.2

Bookmark and Share