oxCaptcha Class Reference

Inheritance diagram for oxCaptcha:

Inheritance graph
[legend]
Collaboration diagram for oxCaptcha:

Collaboration graph
[legend]

List of all members.


Detailed Description

Class handling CAPTCHA image This class requires utility file utils/verificationimg.php as image generator

Public Member Functions

 getText ()
 getHash ($sText=null)
 getImageUrl ()
 isImageVisible ()
 pass ($sMac, $sMacHash)

Protected Attributes

 $_dMacLength = 5
 $_sText = null

Private Attributes

 $_sMacChars = 'abcdefghijkmnpqrstuvwxyz23456789'

Member Function Documentation

oxCaptcha.getText (  ) 

Returns text

Returns:
string

oxCaptcha.getHash ( sText = null  ) 

Returns text hash

Returns:
string

oxCaptcha.getImageUrl (  ) 

Returns url to CAPTCHA image generator.

Returns:
string

oxCaptcha.isImageVisible (  ) 

Checks if image could be generated

Returns:
bool

oxCaptcha.pass ( sMac,
sMacHash 
)

Verifies captcha input vs supplied hash. Returns true on success.

Parameters:
string $sMac User supplie text
string $sMacHash Generated hash
Returns:
bool


Member Data Documentation

oxCaptcha.$_dMacLength = 5 [protected]

oxCaptcha.$_sText = null [protected]

oxCaptcha.$_sMacChars = 'abcdefghijkmnpqrstuvwxyz23456789' [private]


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

Generated on Wed Oct 29 23:43:23 2008 for OXID eShop CE by  doxygen 1.5.5