Method |
Description |
|
__construct ( array $options, boolean $forceGd = false ) : Captcha |
Constructor |
|
factory ( array $options, boolean $forceGd = false ) : Captcha |
Static method to instantiate the CAPTCHA image object
and return itself to facilitate chaining methods together. |
|
generateToken ( ) : void |
Method to generate the token object |
|
getBackgroundColor ( ) : array |
Method to get the background color |
|
getBorderColor ( ) : array |
Method to get the border color |
|
getBorderWidth ( ) : mixed |
Method to get the border width |
|
getExpire ( ) : integer |
Method to get the expiration length in seconds |
|
getFont ( ) : string |
Method to get the font |
|
getGridColor ( ) : array |
Method to get the grid color |
|
getGridWidth ( ) : integer |
Method to get the grid spacing |
|
getLength ( ) : integer |
Method to get the string length |
|
getRotate ( ) : integer |
Method to get the rotation |
|
getSize ( ) : integer |
Method to get the font size |
|
getSwirl ( ) : integer |
Method to get the swirl |
|
getTextColor ( ) : array |
Method to get the text color |
|
getToken ( ) : array |
Method to get the token object, generating a new one if necessary |
|
getX ( ) : integer |
Method to get the X position |
|
getY ( ) : integer |
Method to get the Y position |
|
image ( ) : mixed |
Method to get the image object |
|
output ( ) : void |
Method to output the image object |
|
setBackgroundColor ( integer $r, integer $g, integer $b ) : Captcha |
Method to set the background color |
|
setBorderColor ( integer $r = null, integer $g = null, integer $b = null ) : Captcha |
Method to set the border color |
|
setBorderWidth ( mixed $border = 0.55 ) : Captcha |
Method to set the border width |
|
setExpire ( integer $expire = 300 ) : Captcha |
Method to set the expiration length in seconds |
|
setFont ( string $font = null ) : Captcha |
Method to set the font |
|
setGridColor ( integer $r = null, integer $g = null, integer $b = null ) : Captcha |
Method to set the grid color |
|
setGridWidth ( integer $grid = 5 ) : Captcha |
Method to set the grid spacing |
|
setLength ( integer $length = 4 ) : Captcha |
Method to set the string length |
|
setRotate ( integer $rotate = null ) : Captcha |
Method to set the rotation |
|
setSize ( integer $size = 20 ) : Captcha |
Method to set the font size |
|
setSwirl ( integer $swirl = null ) : Captcha |
Method to set the swirl |
|
setTextColor ( integer $r, integer $g, integer $b ) : Captcha |
Method to set the text color |
|
setX ( integer $x = null ) : Captcha |
Method to set the X position |
|
setXY ( integer $x = null, integer $y = null ) : Captcha |
Method to set the X, Y position |
|
setY ( integer $y = null ) : Captcha |
Method to set the Y position |
|