NAME
OpenInteract2::Setup::InitializeContentGenerators - Initialize content generator objects
SYNOPSIS
my $setup = OpenInteract2::Setup->new( 'initialize content generators' );
$setup->run();
DESCRIPTION
This cycles through the data in the server configuration key content_generator and performs the following for each subitem:
Calls
require()on each class specified in that subitem's 'class' key. If no class is declared there we skip over the subitem entirely and log an error.Instantiates an object of that class and calls
initialize()on it, passing in the data (hashref) from the respective 'content_generator' configuration section as the only argument.Passes that object to the
add_generator()method along with its associated name.
Setup Metadata
name - 'initialize content generators'
dependencies - default
SEE ALSO
COPYRIGHT
Copyright (c) 2005 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHORS
Chris Winters <chris@cwinters.com>