Phpfox_Image_Abstract

Description

Implements interfaces:

Abstract Layer for Image Libraries Common methods that can be used on all the image libraries are packed into this class.

  • author: Raymond Benc
  • version: $Id: abstract.class.php 1687 2010-07-22 03:13:27Z Raymond_Benc $
  • copyright: [PHPFOX_COPYRIGHT]
  • abstract:

Located in /include/library/phpfox/image/abstract.class.php (line 20)


	
			
Direct descendents
Class Description
 class Phpfox_Image_Library_Gd GD Image Layer Class is used to create/manipulate images using GD
Variable Summary
 arrat $_aInfo
 array $_aTypes
Method Summary
 Phpfox_Image_Abstract __construct ()
 bool isImage (string $sPath)
 bool isImageExtension (string $sExt)
 array _calcSize (int $nMaxW, int $nMaxH)
 void _destroy ()
 array _hex2rgb (string $sHex)
 bool _load (string $sPath)
Variables
arrat $_aInfo = array() (line 27)

Holds an ARRAY of meta information about an image

  • access: protected
array $_aTypes = array('', 'gif', 'jpg', 'png') (line 34)

Supported file types

  • access: protected
Methods
Constructor __construct (line 40)

Class constructor

  • access: public
Phpfox_Image_Abstract __construct ()

Redefined in descendants as:
isImage (line 50)

Verification to check if an image is well an image when it is first being uploaded

  • return: TRUE if it is an image and FALSE if it isn't
  • access: public
bool isImage (string $sPath)
  • string $sPath: Full path to where the image is located
isImageExtension (line 66)

Check to make sure the image being uploaded is a valid image extension that we support

  • return: TRUE is a valid file extension, FALSE if it isn't
  • access: public
bool isImageExtension (string $sExt)
  • string $sExt: File extension
_calcSize (line 166)

Calculates size for resizing.

  • return: new size (width, height)
  • access: protected
array _calcSize (int $nMaxW, int $nMaxH)
  • int $nMaxW: maximum width
  • int $nMaxH: maximum height
_destroy (line 131)

Destory all the variables associated with the current image in preperation to manipulate another image.

  • access: protected
void _destroy ()
_hex2rgb (line 147)

Transform a HEX to RGB

  • return: ARRAY of an RGB array(red, blue, green)
  • access: protected
array _hex2rgb (string $sHex)
  • string $sHex: HEX string
_load (line 90)

Load an image and attempt to get as much meta information about the image

  • return: TRUE on success, FALSE on failure
  • access: protected
bool _load (string $sPath)
  • string $sPath: Full path to where the image is located

Documentation generated on Tue, 28 Sep 2010 10:36:36 +0200 by phpDocumentor 1.4.0a2