Quizzer::Element::Select - Base select input element


Quizzer documentation Contained in the Quizzer distribution.

Index


Code Index:

NAME

Top

Quizzer::Element::Select - Base select input element

DESCRIPTION

Top

This is a base Select input element.

METHODS

Top

show

Select elements are not really visible if there are less than two choices for them.

AUTHOR

Top

Joey Hess <joey@kitenet.net>


Quizzer documentation Contained in the Quizzer distribution.
#!/usr/bin/perl -w

package Quizzer::Element::Select;
use Quizzer::Element;
use strict;
use vars qw(@ISA);
@ISA=qw(Quizzer::Element);

my $VERSION='0.01';

sub visible {
	my $this=shift;
	
	my @choices=$this->question->choices_split;
	return ($#choices > 0);
}

1