Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Captcha_Dumb Class Reference

Public Member Functions

 setLabel ($label)
 Set the label for the CAPTCHA.
 
 getLabel ()
 Retrieve the label for the CAPTCHA.
 
 render (Zend_View_Interface $view=null, $element=null)
 Render the captcha.
 
- Public Member Functions inherited from Zend_Captcha_Word
 getSessionClass ()
 Retrieve session class to utilize.
 
 setSessionClass ($_sessionClass)
 Set session class for persistence.
 
 getWordlen ()
 Retrieve word length to use when genrating captcha.
 
 setWordlen ($wordlen)
 Set word length of captcha.
 
 getId ()
 Retrieve captcha ID.
 
 setTimeout ($ttl)
 Set timeout for session token.
 
 getTimeout ()
 Get session token timeout.
 
 setKeepSession ($keepSession)
 Sets if session should be preserved on generate()
 
 getUseNumbers ()
 Numbers should be included in the pattern?
 
 setUseNumbers ($_useNumbers)
 Set if numbers should be included in the pattern.
 
 getSession ()
 Get session object.
 
 setSession (Zend_Session_Namespace $session)
 Set session namespace object.
 
 getWord ()
 Get captcha word.
 
 generate ()
 Generate new session ID and new word.
 
 isValid ($value, $context=null)
 Validate the word.
 
 getDecorator ()
 Get captcha decorator.
 
- Public Member Functions inherited from Zend_Captcha_Base
 getName ()
 Get name.
 
 setName ($name)
 Set name.
 
 __construct ($options=null)
 Constructor.
 
 setOption ($key, $value)
 Set single option for the object.
 
 setOptions ($options=null)
 Set object state from options array.
 
 getOptions ()
 Retrieve options representing object state.
 
 setConfig (Zend_Config $config)
 Set object state from config object.
 
 getDecorator ()
 Get optional decorator.
 
- Public Member Functions inherited from Zend_Validate_Abstract
 getMessages ()
 Returns array of validation failure messages.
 
 getMessageVariables ()
 Returns an array of the names of variables that are used in constructing validation failure messages.
 
 getMessageTemplates ()
 Returns the message templates from the validator.
 
 setMessage ($messageString, $messageKey=null)
 Sets the validation failure message template for a particular key.
 
 setMessages (array $messages)
 Sets validation failure message templates given as an array, where the array keys are the message keys, and the array values are the message template strings.
 
 __get ($property)
 Magic function returns the value of the requested property, if and only if it is the value or a message variable.
 
 getErrors ()
 Returns array of validation failure message codes.
 
 setObscureValue ($flag)
 Set flag indicating whether or not value should be obfuscated in messages.
 
 getObscureValue ()
 Retrieve flag indicating whether or not value should be obfuscated in messages.
 
 setTranslator ($translator=null)
 Set translation object.
 
 getTranslator ()
 Return translation object.
 
 hasTranslator ()
 Does this validator have its own specific translator?
 
 setDisableTranslator ($flag)
 Indicate whether or not translation should be disabled.
 
 translatorIsDisabled ()
 Is translation disabled?
 
- Public Member Functions inherited from Zend_Validate_Interface
 isValid ($value)
 Returns true if and only if $value meets the validation requirements.
 

Protected Attributes

 $_label = 'Please type this word backwards'
 CAPTCHA label string.
 
- Protected Attributes inherited from Zend_Captcha_Word
 $_id
 
 $_word
 
 $_session
 
 $_sessionClass = 'Zend_Session_Namespace'
 
 $_useNumbers = true
 
 $_timeout = 300
 
 $_keepSession = false
 
 $_messageTemplates
 
 $_wordlen = 8
 
- Protected Attributes inherited from Zend_Captcha_Base
 $_name
 
 $_options = array()
 
 $_skipOptions
 
- Protected Attributes inherited from Zend_Validate_Abstract
 $_value
 
 $_messageVariables = array()
 
 $_messageTemplates = array()
 
 $_messages = array()
 
 $_obscureValue = false
 
 $_errors = array()
 
 $_translator
 
 $_translatorDisabled = false
 

Additional Inherited Members

- Static Public Member Functions inherited from Zend_Validate_Abstract
static setDefaultTranslator ($translator=null)
 Set default translation object for all validate objects.
 
static getDefaultTranslator ()
 Get default translation object for all validate objects.
 
static hasDefaultTranslator ()
 Is there a default translation object set?
 
static getMessageLength ()
 Returns the maximum allowed message length.
 
static setMessageLength ($length=-1)
 Sets the maximum allowed message length.
 
- Public Attributes inherited from Zend_Captcha_Word
const MISSING_VALUE = 'missingValue'
 #@+ Error codes
 
const MISSING_ID = 'missingID'
 
const BAD_CAPTCHA = 'badCaptcha'
 
- Static Public Attributes inherited from Zend_Captcha_Word
static $V = array("a", "e", "i", "o", "u", "y")
 
static $VN = array("a", "e", "i", "o", "u", "y","2","3","4","5","6","7","8","9")
 
static $C = array("b","c","d","f","g","h","j","k","m","n","p","q","r","s","t","u","v","w","x","z")
 
static $CN = array("b","c","d","f","g","h","j","k","m","n","p","q","r","s","t","u","v","w","x","z","2","3","4","5","6","7","8","9")
 
- Protected Member Functions inherited from Zend_Captcha_Word
 _setId ($id)
 Set captcha identifier.
 
 _setWord ($word)
 Set captcha word.
 
 _generateWord ()
 Generate new random word.
 
 _generateRandomId ()
 
- Static Protected Attributes inherited from Zend_Validate_Abstract
static $_defaultTranslator
 
static $_messageLength = -1
 

Member Function Documentation

getLabel ( )

Retrieve the label for the CAPTCHA.

Returns
string
render ( Zend_View_Interface  $view = null,
  $element = null 
)

Render the captcha.

Parameters
Zend_View_Interface$view
mixed$element
Returns
string

Implements Zend_Captcha_Adapter.

setLabel (   $label)

Set the label for the CAPTCHA.

Parameters
string$label

Member Data Documentation

$_label = 'Please type this word backwards'
protected

CAPTCHA label string.