| Amiro.Ru / Manual | |||||
|
Packages:
DB Debug Driver_PaymentSystem Environment Library Module ModuleComponent Package Plugin Plugin_AJAXResponder Plugin_Sample Service Template TxCommand TxService Hyper_AmiCatalog Hyper_AmiClean Hyper_AmiEshopShipping Hyper_AmiExt Hyper_AmiFiles Hyper_AmiMultifeeds Hyper_AmiSearch Hyper_AmiUsers Config_AmiCatalog_Items Config_AmiClean_AmiNewsList Config_AmiClean_AmiSample Config_AmiClean_EshopOrder Config_AmiClean_Webservice Config_AmiEshopShipping_Fields Config_AmiEshopShipping_Methods Config_AmiEshopShipping_Types Config_AmiFake_AmiroPayDrvExample Config_AmiFiles_Files Config_AmiMultifeeds_Articles Config_AmiMultifeeds_Blog Config_AmiMultifeeds_FAQ Config_AmiMultifeeds_News Config_AmiMultifeeds_PhotoGallery Config_AmiMultifeeds_Stickers Config_AmiUsers_Users Module_Catalog Module_Pages Module_Sample Module_SearchHistory
Interfaces:
Classes:
AMI
AMI_BackgroundProcess AMI_Cache AMI_Captcha AMI_CaptchaImage AMI_Event AMI_Exception AMI_ExternalAuthDriver AMI_HTMLResponse AMI_HTTPRequest AMI_HTTPResponse AMI_Mail AMI_MailQueue AMI_PageManager AMI_Response AMI_Service AMI_UserSourceApp AMI_UserSourceAppDriver Amiro_UserSourceAppDriver Facebook_UserSourceAppDriver Loginza_UserSourceAppDriver Twitter_UserSourceAppDriver VBulletin_ExternalAuthDriver VKontakte_UserSourceAppDriver |
Loading search... The AMI_CaptchaImage class• IntroductionCaptcha image generator class. • Class synopsis
AMI_CaptchaImage
implements AMI_iCaptchaImage
{
/* Properties */
// Custiom generator options
// Array containig supported image types
// GDLib installed flag
// Current symbols set: AMI_iCaptcha::CHARSET_DIGITS, AMI_iCaptcha::CHARSET_LETTERS, AMI_iCaptcha::CHARSET_LETTERS|AMI_iCaptcha::CHARSET_DIGITS
// Final image height
// Final image width
// Default image type
// Image string to display
// Current image type ('png','jpg',...)
// Number of symbols in image
// Current GD image object
/* Methods */
// Constructor.
public
__construct ( [ int $numSymbols = 4 ], [ string $charset = AMI_iCaptcha::CHARSET_DIGITS ] ) returns AMI_CaptchaImage;
// Main class function.
public
createImage ( [ string $imageType = '' ], [ string $imageString = '' ] ) returns object Image;
// Generates random string for image.
// Getting custom option.
// Returns image object.
// Returns image string.
// Converting hex string into RGB values.
// Returns is GD lib installed or not.
// Output current image to output stream.
// Setting custom option.
// Setting string of symbols to generate image.
// Setting number of symbols in image.
// Modify current image by wave deformation.
// Checking on supported images types in current version of php graphics library.
}
• Class Details Example:
Tags:
• Class Properies
• Class Methods// Constructor.
public
__construct ( [ int $numSymbols = 4 ], [ string $charset = AMI_iCaptcha::CHARSET_DIGITS ] ) returns AMI_CaptchaImage;
Implementation of: AMI_iCaptchaImage::__construct(). Defines the default parameters and constants.
// Main class function.
public
createImage ( [ string $imageType = '' ], [ string $imageString = '' ] ) returns object Image;
Implementation of: AMI_iCaptchaImage::createImage(). Generation and return the image.
// Generates random string for image.
Implementation of: AMI_iCaptchaImage::generateRandomImageString(). // Getting custom option.
Implementation of: AMI_iCaptchaImage::getGenerateOption(). // Returns image object.
// Returns image string.
Implementation of: AMI_iCaptchaImage::getImageString(). // Converting hex string into RGB values.
// Returns is GD lib installed or not.
Implementation of: AMI_iCaptchaImage::isGDLibInstalled(). // Output current image to output stream.
Implementation of: AMI_iCaptchaImage::outToStream(). // Setting custom option.
Implementation of: AMI_iCaptchaImage::setGenerateOption(). // Setting string of symbols to generate image.
Implementation of: AMI_iCaptchaImage::setImageString(). // Setting number of symbols in image.
Implementation of: AMI_iCaptchaImage::setNumSymbols(). // Modify current image by wave deformation.
// Checking on supported images types in current version of php graphics library.
|