| Quizzer documentation | Contained in the Quizzer distribution. |
Quizzer::Element::Web::Container - A group of releated questions
This element handles a group of related questions on a web form.
Calls all elements inside it and collects the text they return.
This gets called once the user has entered a value, to process it before it is stored.
| Quizzer documentation | Contained in the Quizzer distribution. |
#!/usr/bin/perl -w
package Quizzer::Element::Web::Container; use strict; use Quizzer::Element::Container; use vars qw(@ISA); @ISA=qw(Quizzer::Element::Container); my $VERSION='0.01';
sub show { my $this=shift; my @contained=@{$this->contained}; my $ret=''; foreach my $elt (@contained) { $ret.=$elt->show; } return $ret; }
sub process { my $this=shift; # TODO: need to process values of all elements contained within. Ugh. } 1