Parent Directory
|
Revision Log
++ ChangeLog 20 Jul 2008 14:58:20 -0000 2008-07-20 Wakaba <wakaba@suika.fam.cx> * cc.cgi: Modularized. * WebHACC/: New directory.
| 1 | wakaba | 1.1 | package WebHACC::Input; |
| 2 | use strict; | ||
| 3 | |||
| 4 | sub new ($) { | ||
| 5 | return bless {id_prefix => ''}, shift; | ||
| 6 | } # new | ||
| 7 | |||
| 8 | sub id_prefix ($;$) { | ||
| 9 | if (@_ > 1) { | ||
| 10 | if (defined $_[1]) { | ||
| 11 | $_[0]->{id_prefix} = ''.$_[1]; | ||
| 12 | } else { | ||
| 13 | $_[0]->{id_prefix} = ''; | ||
| 14 | } | ||
| 15 | } | ||
| 16 | |||
| 17 | return $_[0]->{id_prefix}; | ||
| 18 | } # id_prefix | ||
| 19 | |||
| 20 | sub nested ($;$) { | ||
| 21 | if (@_ > 1) { | ||
| 22 | if ($_[1]) { | ||
| 23 | $_[0]->{nested} = 1; | ||
| 24 | } else { | ||
| 25 | delete $_[0]->{nested}; | ||
| 26 | } | ||
| 27 | } | ||
| 28 | |||
| 29 | return $_[0]->{nested}; | ||
| 30 | } # nested | ||
| 31 | |||
| 32 | 1; |
| admin@suikawiki.org | ViewVC Help |
| Powered by ViewVC 1.1.24 |