continuing work on new discussion system
This commit is contained in:
parent
6fc3817f85
commit
df6d6fe93d
8 changed files with 223 additions and 25 deletions
|
|
@ -35,6 +35,7 @@ This package helps in the processing of the form variables that are returned fro
|
|||
$value = WebGUI::FormProcessor::checkbox("whichOne");
|
||||
$value = WebGUI::FormProcessor::checkList("dayOfWeek");
|
||||
$value = WebGUI::FormProcessor::combo("fruit");
|
||||
$value = WebGUI::FormProcessor::contentType("text");
|
||||
$value = WebGUI::FormProcessor::date("endDate");
|
||||
$value = WebGUI::FormProcessor::dateTime("whenToDoIt");
|
||||
$value = WebGUI::FormProcessor::email("emailAddress");
|
||||
|
|
@ -132,6 +133,26 @@ sub combo {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 contentType ( name )
|
||||
|
||||
Returns a content type. Defaults to "mixed".
|
||||
|
||||
=over
|
||||
|
||||
=item name
|
||||
|
||||
The name of the form variable to retrieve.
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
||||
sub contentType {
|
||||
return ($session{form}{$_[0]} || "mixed");
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 date ( name )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue