summaryrefslogtreecommitdiff
path: root/LedgerSMB/Template/Elements.pm
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-16 02:47:11 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-16 02:47:11 +0000
commitbc7aa50d96c4f70e3f44bf41e4976424d8928564 (patch)
treeae13e9896b408c25fd51e7d42f5ccfe0d568159b /LedgerSMB/Template/Elements.pm
parentdbc295b18c12363990a8c27db49f580178df0432 (diff)
Adding constructor to LedgerSMB::Template::Elements
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1614 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/Template/Elements.pm')
-rw-r--r--LedgerSMB/Template/Elements.pm23
1 files changed, 21 insertions, 2 deletions
diff --git a/LedgerSMB/Template/Elements.pm b/LedgerSMB/Template/Elements.pm
index e504c40c..53dfe373 100644
--- a/LedgerSMB/Template/Elements.pm
+++ b/LedgerSMB/Template/Elements.pm
@@ -11,6 +11,27 @@ templates
=over
+=item LedgerSMB::Template::Elements->new()
+
+Returns a blessed hashref from this namespace.
+
+=back
+
+=cut
+
+package LedgerSMB::Template::Elements;
+use strict;
+
+
+sub new {
+ my ($class) = @_;
+ my $self = {};
+ bless $self, $class;
+ return $self;
+}
+
+=over
+
=item $object->generate_hidden_elements([...]);
Builds data structure for hidden form fields. Values from the
@@ -26,8 +47,6 @@ A reference to this structure is returned as well.
=cut
-package LedgerSMB::Template::Elements;
-use strict;
sub generate_hidden_elements {
my $self = shift;