C:\cpanrun\depot\main\contrib-patched\perl\CPAN\src\Authen-PluggableCaptcha\blib/lib/Authen/PluggableCaptcha/Render.pm


NAME

Authen::PluggableCaptcha::Render


SYNOPSIS

Base Render Class


CONSTRUCTOR

There is no constructor. Calling ->new() will die . new() must be subclassed.


OBJECT METHODS

_init PARAMS

base render setup. PARAMS are required name/value pairs. Required PARAMS are:

challenge_instance TYPE

an instance of an the Authen::PluggableCaptcha::Challenge manpage object

It's often easiest for derived classes to call

        Authen::PluggableCaptcha::Render::_init( $self , \%kw_args );
        
        in their constructors
_challenge_instance TYPE

sets the internal stash of the the Authen::PluggableCaptcha::Challenge manpage object. you probably don't want to call this , unless you replace _init_render

challenge_instance

gets the internal stash of the the Authen::PluggableCaptcha::Challenge manpage object.

is_rendered BOOL

gets/sets a bool if the object is rendered or not

expired_message TEXT

gets/sets the expired message

as_string

returns a rendering of the captcha as a string. this MUST be subclassed

render

runs the render logic. this MUST be subclassed

init_expired

called by the Authen::PluggableCaptcha manpage when initializing a new captcha render object for an expired key

init_valid

called by the Authen::PluggableCaptcha manpage when initializing a new captcha render object for a valid key


DEBUGGING

Set the Following envelope variables for debugging

        $ENV{'Authen::PluggableCaptcha::Render-DEBUG_FUNCTION_NAME'}

debug messages are sent to STDERR via the ErrorLoggingObject package