Class TRenderImage

Description

Class TRenderImage.

Class TRenderImage. Genera una imagen tomada desde AbsoultePath, con las dimenciones especificadas (Width x Height) y guarda la imagen generada en dicho tamaño dentro de la carpeta especificada en AbsoultePath/resized. La imagen se guarda dentro de una tabla. Y estas son monitoreadas en tiempo real y mostradas desde ManagementPath o AbsoultePath segun sus dimensiones. Si estas dimensiones son menores a las predefinidas en Width x Height, la aplicacion no generara imagen alguna ni guardara nada en AbsoultePath/resized. Al recargar la misma imagen con exactamente las mismas dimensiones, la aplicacion tomara la imagen guardada en ManagementPath y acelerando el proceso de desacrga de la misma. Ademas gracias a este proceso se podrá tener mas de una version de la misma imagen guardada en ManagementPath y mostrada en diferentes lugares. (Ver ejemplo1 donde se muestran varias versiones de la misma imagen ). Imagenes soportadas -------------------------- gif jpg png Directrio AbsoultePath -------------------------- Debajo de este directorio se guardara informacion de mantenimiento y debajo de AbsoultePath/resized se guardaran las imagenes generadas con diferentes tamaños.Este directorio debe tener derecho de escritura para el servidor web. Requiere de la extension GD Version Beta 1.0

Located in /TRenderImage.php (line 39)

TModule
   |
   --TRenderImage
Variable Summary
string $_alt
integer $_height
string $_imageUrl
integer $_maint_delay
integer $_width
Method Summary
void do_maint (mixed $man_folder, unknown_type $this->getManagementPath())
string getAbsoultePath ()
string getAlt ()
integer getHeight ()
string getImageUrl ()
string getImageUrlPath ()
integer getLast_maint_date ()
integer getMaint_delay ()
string getManagementPath ()
integer getWidth ()
unknown image_mirror (unknown_type $input_image_resource)
void onInit (unknown_type $param)
string redimlogo ()
unknown reduire_all_images (unknown_type $tag_text, [unknown_type $taille = 200], [unknown_type $axes = 'both'], unknown_type $image_man_dir)
unknown reduire_image_check (unknown_type $img_code, [unknown_type $taille = 120], [unknown_type $axes = 'both'], unknown_type $image_man_dir)
unknown reduire_image_ex (unknown_type $img, [unknown_type $taille = 120], [unknown_type $axes = 'both'], unknown_type $image_man_dir)
string render (string $img, string $absp_img, string $man_img_dir, integer $ancho, integer $alto, [string $desc = ''], [string $add_att = ''], [mixed $radio = 200])
mixed resample (string $path, string $filename, integer $width, integer $height)
void setAbsoultePath (string $value)
void setAditionalAttributes (string $value)
void setAlt (string $value)
void setHeight (integer $value)
void setImageUrl (string $value)
void setImageUrlPath (string $value)
void setLast_maint_date (integer $value)
void setMaint_delay (integer $value)
void setManagementPath (string $value)
void setWidth (integer $value)
Variables
string $_absoultePath = 'DOCUMENT_ROOT."images/"' (line 64)
  • var: Image absolute path (DOCUMENT_ROOT."images/")
  • access: private
string $_aditionalAttributes = '' (line 72)
  • var: Additional image attributes ( properties of img HTML Tag)
  • access: private
string $_alt = '' (line 52)
  • var: Alt image description
  • access: private
integer $_height = 50 (line 60)
  • var: Image Height
  • access: private
string $_imageUrl = '' (line 44)
  • var: Image url
  • access: private
string $_imageUrlPath = '' (line 48)
  • var: Camino relativo de la imagen
  • access: private
integer $_last_maint_date (line 80)
  • var: ultima fecha de mantenimiento
  • access: private
integer $_maint_delay = 3600 (line 76)
  • var: Tiempo de mantenimiento y actualizacion de una imagen (una semana en segundos)
  • access: private
string $_managementPath = 'DOCUMENT_ROOT."images/img_management/"' (line 68)
  • var: Image management Path (DOCUMENT_ROOT."images/img_management/")
  • access: private
integer $_width = 50 (line 56)
  • var: Image Width
  • access: private
Methods
do_maint (line 603)

Enter description here.

Enter description here...

  • access: private
void do_maint (mixed $man_folder, unknown_type $this->getManagementPath())
  • unknown_type $this->getManagementPath()
getAbsoultePath (line 165)
  • return: Image absolute path (DOCUMENT_ROOT."images/") Defaults to 'DOCUMENT_ROOT."images/"'.
  • access: public
string getAbsoultePath ()
getAditionalAttributes (line 197)
  • return: Additional image attributes ( properties of img HTML Tag) Defaults to ''.
  • access: public
string getAditionalAttributes ()
getAlt (line 117)
  • return: Alt image description Defaults to ''.
  • access: public
string getAlt ()
getHeight (line 149)
  • return: Image Height Defaults to 50.
  • access: public
integer getHeight ()
getImageUrl (line 85)
  • return: Image url Defaults to ''.
  • access: public
string getImageUrl ()
getImageUrlPath (line 101)
  • return: Camino relativo de la imagen Defaults to ''.
  • access: public
string getImageUrlPath ()
getLast_maint_date (line 231)
  • return: ultima fecha de mantenimiento Defaults to 0.
  • access: public
integer getLast_maint_date ()
getMaint_delay (line 214)
  • return: Tiempo de mantenimiento y actualizacion de una imagen (una semana en segundos) Defaults to 3600.
  • access: public
integer getMaint_delay ()
getManagementPath (line 181)
  • return: Image management Path (DOCUMENT_ROOT."images/img_management/") Defaults to 'DOCUMENT_ROOT."images/img_management/"'.
  • access: public
string getManagementPath ()
getWidth (line 133)
  • return: Image Width Defaults to 50.
  • access: public
integer getWidth ()
image_mirror (line 458)

Enter description here.

Enter description here...

  • access: public
unknown image_mirror (unknown_type $input_image_resource)
  • unknown_type $input_image_resource
onInit (line 251)

Enter description here.

Enter description here...

  • access: public
void onInit (unknown_type $param)
  • unknown_type $param
redimlogo (line 523)

Enter description here.

Enter description here...

  • access: private
string redimlogo ()
reduire_all_images (line 574)

Enter description here.

Enter description here...

  • access: private
unknown reduire_all_images (unknown_type $tag_text, [unknown_type $taille = 200], [unknown_type $axes = 'both'], unknown_type $image_man_dir)
  • unknown_type $tag_text
  • unknown_type $image_man_dir
  • unknown_type $taille
  • unknown_type $axes
reduire_image_check (line 444)

Enter description here.

Enter description here...

  • access: private
unknown reduire_image_check (unknown_type $img_code, [unknown_type $taille = 120], [unknown_type $axes = 'both'], unknown_type $image_man_dir)
  • unknown_type $img_code
  • unknown_type $taille
  • unknown_type $axes
  • unknown_type $image_man_dir
reduire_image_ex (line 270)

Enter description here.

Enter description here...

  • access: private
unknown reduire_image_ex (unknown_type $img, [unknown_type $taille = 120], [unknown_type $axes = 'both'], unknown_type $image_man_dir)
  • unknown_type $img
  • unknown_type $taille
  • unknown_type $axes
  • unknown_type $image_man_dir
render (line 633)

Render method

Render method

  • access: public
string render (string $img, string $absp_img, string $man_img_dir, integer $ancho, integer $alto, [string $desc = ''], [string $add_att = ''], [mixed $radio = 200])
  • string $img
  • string $absp_img
  • string $man_img_dir
  • integer $ancho
  • integer $alto
  • string $desc
  • string $add_att
resample (line 483)

Direct Redimention funcion

Direct Redimention funcion

  • access: public
mixed resample (string $path, string $filename, integer $width, integer $height)
  • string $path
  • string $filename
  • integer $width
  • integer $height
setAbsoultePath (line 173)
  • access: public
void setAbsoultePath (string $value)
  • string $value: Image absolute path (DOCUMENT_ROOT."images/")
setAditionalAttributes (line 205)
  • access: public
void setAditionalAttributes (string $value)
  • string $value: Additional image attributes ( properties of img HTML Tag)
setAlt (line 125)
  • access: public
void setAlt (string $value)
  • string $value: Alt image description
setHeight (line 157)
  • access: public
void setHeight (integer $value)
  • integer $value: Image Height
setImageUrl (line 93)
  • access: public
void setImageUrl (string $value)
  • string $value: Image url
setImageUrlPath (line 109)
  • access: public
void setImageUrlPath (string $value)
  • string $value: Camino relativo de la imagen
setLast_maint_date (line 241)
  • access: public
void setLast_maint_date (integer $value)
  • integer $value: ultima fecha de mantenimiento
setMaint_delay (line 223)
  • access: public
void setMaint_delay (integer $value)
  • integer $value: Tiempo de mantenimiento y actualizacion de una imagen (una semana en segundos)
setManagementPath (line 189)
  • access: public
void setManagementPath (string $value)
  • string $value: Image management Path (DOCUMENT_ROOT."images/img_management/")
setWidth (line 141)
  • access: public
void setWidth (integer $value)
  • integer $value: Image Width

Documentation generated on Fri, 27 Jul 2007 11:06:11 -0300 by phpDocumentor 1.3.0RC3