Jonathan Vanasco > Authen-PluggableCaptcha-0.05 > Authen::PluggableCaptcha::Render

Download:
Authen-PluggableCaptcha-0.05.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

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 Authen::PluggableCaptcha::Challenge 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 Authen::PluggableCaptcha::Challenge object. you probably don't want to call this , unless you replace _init_render

challenge_instance

gets the internal stash of the Authen::PluggableCaptcha::Challenge 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 Authen::PluggableCaptcha when initializing a new captcha render object for an expired key

init_valid

called by Authen::PluggableCaptcha 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

syntax highlighting: