TuringImage Class Reference
[CAPTCHA's implementation]

List of all members.

Public Member Functions

 __construct ($width, $height)
 getTextColors ()
 getBackgroundColors ()
 getWidth ()
 getHeight ()
 getImageId ()
 getFont ()
 setFont ($font)
 setTextDrawer (TextDrawer $drawer)
 
Returns:
TuringImage

 setBackgroundDrawer (BackgroundDrawer $drawer)
 
Returns:
TuringImage

 getCodeGenerator ()
 getColorIdentifier (Color $color)
 getOneCharacterColor ()
 toImage (ImageType $imageType)
 
Returns:
TuringImage


Static Public Member Functions

static getCode ()

Public Attributes

const SESSION_LABEL = 'turning_number'

Protected Member Functions

 setCode ($code)
 
Returns:
TuringImage


Private Member Functions

 init ()
 
Returns:
TuringImage

 drawBackGround ()
 
Returns:
TuringImage

 outputImage (ImageType $imageType)
 
Returns:
TuringImage


Private Attributes

 $textColors = null
 $backgroundColors = null
 $font = null
 $imageId = null
 $width = null
 $height = null
 $generator = null
 $drawer = null
 $backgroundDrawer = null


Detailed Description

Definition at line 16 of file TuringImage.class.php.


Constructor & Destructor Documentation

TuringImage::__construct ( width,
height 
)

Definition at line 40 of file TuringImage.class.php.

References $height, and $width.


Member Function Documentation

static TuringImage::getCode (  )  [static]

Definition at line 35 of file TuringImage.class.php.

References Session::get().

Here is the call graph for this function:

TuringImage::getTextColors (  ) 

Definition at line 50 of file TuringImage.class.php.

TuringImage::getBackgroundColors (  ) 

Definition at line 55 of file TuringImage.class.php.

TuringImage::getWidth (  ) 

Definition at line 60 of file TuringImage.class.php.

Referenced by drawBackGround(), and init().

TuringImage::getHeight (  ) 

Definition at line 65 of file TuringImage.class.php.

Referenced by drawBackGround(), and init().

TuringImage::getImageId (  ) 

Definition at line 70 of file TuringImage.class.php.

Referenced by toImage().

TuringImage::getFont (  ) 

Definition at line 75 of file TuringImage.class.php.

TuringImage::setFont ( font  ) 

Definition at line 80 of file TuringImage.class.php.

References $font.

TuringImage::setTextDrawer ( TextDrawer drawer  ) 

Returns:
TuringImage

Definition at line 90 of file TuringImage.class.php.

References Drawer::setTuringImage().

Here is the call graph for this function:

TuringImage::setBackgroundDrawer ( BackgroundDrawer drawer  ) 

Returns:
TuringImage

Definition at line 101 of file TuringImage.class.php.

References Drawer::setTuringImage().

Here is the call graph for this function:

TuringImage::getCodeGenerator (  ) 

Definition at line 109 of file TuringImage.class.php.

TuringImage::getColorIdentifier ( Color color  ) 

Definition at line 114 of file TuringImage.class.php.

Referenced by drawBackGround(), getOneCharacterColor(), and init().

TuringImage::getOneCharacterColor (  ) 

Definition at line 136 of file TuringImage.class.php.

References getColorIdentifier().

Here is the call graph for this function:

TuringImage::toImage ( ImageType imageType  ) 

Returns:
TuringImage

Definition at line 146 of file TuringImage.class.php.

References drawBackGround(), getImageId(), init(), outputImage(), and setCode().

Here is the call graph for this function:

TuringImage::setCode ( code  )  [protected]

Returns:
TuringImage

Definition at line 171 of file TuringImage.class.php.

References Session::assign().

Referenced by toImage().

Here is the call graph for this function:

TuringImage::init (  )  [private]

Returns:
TuringImage

Definition at line 181 of file TuringImage.class.php.

References $imageId, getColorIdentifier(), getHeight(), and getWidth().

Referenced by toImage().

Here is the call graph for this function:

TuringImage::drawBackGround (  )  [private]

Returns:
TuringImage

Definition at line 194 of file TuringImage.class.php.

References getColorIdentifier(), getHeight(), and getWidth().

Referenced by toImage().

Here is the call graph for this function:

TuringImage::outputImage ( ImageType imageType  )  [private]

Returns:
TuringImage

Definition at line 222 of file TuringImage.class.php.

References ImageType::GIF, ImageType::JPEG, ImageType::PNG, and ImageType::WBMP.

Referenced by toImage().


Member Data Documentation

const TuringImage::SESSION_LABEL = 'turning_number'

Definition at line 18 of file TuringImage.class.php.

TuringImage::$textColors = null [private]

Definition at line 20 of file TuringImage.class.php.

TuringImage::$backgroundColors = null [private]

Definition at line 21 of file TuringImage.class.php.

TuringImage::$font = null [private]

Definition at line 23 of file TuringImage.class.php.

Referenced by setFont().

TuringImage::$imageId = null [private]

Definition at line 25 of file TuringImage.class.php.

Referenced by init().

TuringImage::$width = null [private]

Definition at line 27 of file TuringImage.class.php.

Referenced by __construct().

TuringImage::$height = null [private]

Definition at line 28 of file TuringImage.class.php.

Referenced by __construct().

TuringImage::$generator = null [private]

Definition at line 30 of file TuringImage.class.php.

TuringImage::$drawer = null [private]

Definition at line 32 of file TuringImage.class.php.

TuringImage::$backgroundDrawer = null [private]

Definition at line 33 of file TuringImage.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:40 2007 for onPHP by  doxygen 1.5.4