The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OpenInteract2::ContentGenerator - Coordinator for classes generating content

SYNOPSIS

 OpenInteract2::ContentGenerator->initialize;
 my ( $class, $method, $sub ) = OpenInteract2::ContentGenerator->instance( 'TT' );

DESCRIPTION

This is a simple coordinating front end for the classes that actually generate the content -- template processors, SOAP response generators, etc. (You could probably put some sort of image generation in here too, but that would be mad.)

METHODS

initialize()

Normally only called from OpenInteract2::Setup -- call the initialize() method of each generator specified in the configuration key content_generator.

Returns: nothing. If errors occur in the generator classes we log them. (XXX: We may throw an error in the future.)

instance( $generator_name )

Return information about the given content generator. This takes the form of a three-item list: a class name, a method name and a subroutine reference.

If $generator_name is not found an exception is thrown.

Returns: a three-item list with a class name, a method name and a subroutine reference for the specified generator.

COPYRIGHT

Copyright (c) 2002-2003 Chris Winters. All rights reserved.

AUTHORS

Chris Winters <chris@cwinters.com>