Class Savant3_Plugin_image

Description

Plugin to generate an <img ... /> tag.

Support for alpha transparency of PNG files in Microsoft IE added by Edward Ritter; thanks, Edward.

Located in /Savant3/resources/Savant3_Plugin_image.php (line 30)

Savant3_Plugin
   |
   --Savant3_Plugin_image
Variable Summary
string $documentRoot
string $imageDir
Method Summary
string image (string $file, [string $alt = null], [int $height = null], [int $width = null], [ $attr = null], int $border)
Variables
string $documentRoot = null (line 43)

The document root.

  • access: protected
string $imageDir = null (line 56)

The base directory for images within the document root.

  • access: protected

Inherited Variables

Inherited from Savant3_Plugin

Savant3_Plugin::$Savant
Methods
image (line 85)

Outputs an <img ... /> tag.

Microsoft IE alpha PNG support added by Edward Ritter.

  • return: An <img ... /> tag.
  • access: public
string image (string $file, [string $alt = null], [int $height = null], [int $width = null], [ $attr = null], int $border)
  • string $file: The path to the image on the local file system relative to $this->imageDir.
  • string $alt: Alternative descriptive text for the image; defaults to the filename of the image.
  • int $border: The border width for the image; defaults to zero.
  • int $width: The displayed image width in pixels; defaults to the width of the image.
  • int $height: The displayed image height in pixels; defaults to the height of the image.
  • $attr

Inherited Methods

Inherited From Savant3_Plugin

Savant3_Plugin::__construct()

Documentation generated on Tue, 31 Mar 2009 16:24:42 -0500 by phpDocumentor 1.4.2