Class Image

Description

Class for inserting images into document.

  • todo: CHECK IF FILE EXISTS

Located in /Image.php (line 10)


	
			
Variable Summary
mixed $parFormat
Method Summary
Image Image (Rtf &$rtf, string $fileName, ParFormat &$parFormat, [float $width = 0], [flaot $height = 0])
string getContent ()
void setBorders (BorderFormat &$borderFormat, [boolean $left = true], [boolean $top = true], [boolean $right = true], [boolean $bottom = true])
void setHeight ([float $height = 0])
void setWidth ([float $width = 0])
Variables
mixed $parFormat (line 16)

Internal use.

  • access: public
Methods
Constructor Image (line 46)

Constructor. Internal use.

  • access: public
Image Image (Rtf &$rtf, string $fileName, ParFormat &$parFormat, float $width, flaot $height)
  • Rtf &$rtf
  • string $fileName: Name of file
  • ParFormat &$parFormat: Paragraph format
  • float $width
  • flaot $height
getContent (line 151)

Gets rtf code of image. Internal use.

  • access: public
string getContent ()
setBorders (line 92)

Sets borders of element.

  • access: public
void setBorders (BorderFormat &$borderFormat, [boolean $left = true], [boolean $top = true], [boolean $right = true], [boolean $bottom = true])
  • BorderFormat &$borderFormat
  • boolean $left: If false, left border is not set (default true)
  • boolean $top: If false, top border is not set (default true)
  • boolean $right: If false, right border is not set (default true)
  • boolean $bottom: If false, bottom border is not set (default true)
setHeight (line 79)

Sets height of image.

  • access: public
void setHeight (float $height)
  • float $height: Height. If not defined image is displayed by it's width.
setWidth (line 70)

Sets width of image.

  • access: public
void setWidth (float $width)
  • float $width: Width If not defined image is displayed by it's height.

Documentation generated on Fri, 25 Jan 2008 23:10:51 +0200 by phpDocumentor 1.3.1