Quizzer::Loader - Quizzer Loader
This package contains some helper functions taken by Joey Hess's ConfigDb module.
Pass in the name of the question and this will return the specified question object.
Pass in a string denoting the root of a tree of questions in the question hierarchy. All questions under that root will be returned.
Pass in a string denoting the root of a tree of questions in the question hierarchy, and a Question. If the Question is under that tree, a true value is returned.
Loads up a file containing templates (pass the filename to load). Creates Template objects and corresponding Question objects. The second parameter is the name of the owner of the created templates and questions.
Pass this a string containing one of more templates, and it will process it and instantiate the Template objects and corresponding Question objects.
The second parameter is the name of the owner of the created templates and questions.
Create a Question and add it to the database. Pass the name of the template the question will use, and the name to use for the question. Finally, pass the name of the owner of the new question.
If a question by this name already exists, it will be modified to add the new owner and to use the correct template.
Give up ownership of a given question. Pass the name of the question and the owner that is giving it up. When the number of owners reaches 0, the question itself is removed. If the template the question used has no more questions using it, it too is removed.
This runs disownquestion() on all Questions. Pass the owner.
Joey Hess <joey@kitenet.net> Modified by Stefano Corsi <ippo@madeinlinux.com>
To install Quizzer::Log, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quizzer::Log
CPAN shell
perl -MCPAN -e shell install Quizzer::Log
For more information on module installation, please visit the detailed CPAN module installation guide.