Varien_Image_Adapter Class Reference

List of all members.

Static Public Member Functions

static factory ($adapter)

Public Attributes

const ADAPTER_GD = 'GD'
const ADAPTER_GD2 = 'GD2'
const ADAPTER_IM = 'IMAGEMAGIC'
const ADAPTER_IME = 'IMAGEMAGIC_EXTERNAL'


Detailed Description

Definition at line 28 of file Adapter.php.


Member Function Documentation

static factory ( adapter  )  [static]

Definition at line 35 of file Adapter.php.

00036     {
00037         switch( $adapter ) {
00038             case self::ADAPTER_GD:
00039                 return new Varien_Image_Adapter_Gd();
00040                 break;
00041 
00042             case self::ADAPTER_GD2:
00043                 return new Varien_Image_Adapter_Gd2();
00044                 break;
00045 
00046             case self::ADAPTER_IM:
00047                 return new Varien_Image_Adapter_Imagemagic();
00048                 break;
00049 
00050             case self::ADAPTER_IME:
00051                 return new Varien_Image_Adapter_ImagemagicExternal();
00052                 break;
00053 
00054             default:
00055                 throw new Exception('Invalid adapter selected.');
00056                 break;
00057         }
00058     }


Member Data Documentation

const ADAPTER_GD = 'GD'

Definition at line 30 of file Adapter.php.

const ADAPTER_GD2 = 'GD2'

Definition at line 31 of file Adapter.php.

const ADAPTER_IM = 'IMAGEMAGIC'

Definition at line 32 of file Adapter.php.

const ADAPTER_IME = 'IMAGEMAGIC_EXTERNAL'

Definition at line 33 of file Adapter.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:25:03 2009 for Magento by  doxygen 1.5.8