Quizzer::Element::Web::Container - A group of releated questions


Quizzer documentation Contained in the Quizzer distribution.

Index


Code Index:

NAME

Top

Quizzer::Element::Web::Container - A group of releated questions

DESCRIPTION

Top

This element handles a group of related questions on a web form.

METHODS

Top

show

Calls all elements inside it and collects the text they return.

process

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