Revision 36d7ceb2
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Presenter/GL.pm | ||
---|---|---|
6 | 6 |
use SL::Presenter::Tag qw(link_tag); |
7 | 7 |
|
8 | 8 |
use Exporter qw(import); |
9 |
our @EXPORT_OK = qw(gl_transaction); |
|
9 |
our @EXPORT_OK = qw(show gl_transaction);
|
|
10 | 10 |
|
11 | 11 |
use Carp; |
12 | 12 |
|
13 |
sub show {goto &gl_transaction}; |
|
14 |
|
|
13 | 15 |
sub gl_transaction { |
14 | 16 |
my ($gl_transaction, %params) = @_; |
15 | 17 |
|
... | ... | |
42 | 44 |
|
43 | 45 |
my $object = SL::DB::Manager::GLTransaction->get_first(); |
44 | 46 |
my $html = SL::Presenter::GL::gl_transaction($object, display => 'inline'); |
47 |
# or |
|
48 |
my $html = $object->presenter->show(); |
|
45 | 49 |
|
46 | 50 |
=head1 FUNCTIONS |
47 | 51 |
|
48 | 52 |
=over 4 |
49 | 53 |
|
54 |
=item C<show $object %params> |
|
55 |
|
|
56 |
Alias for C<gl_transaction $object %params>. |
|
57 |
|
|
50 | 58 |
=item C<gl_transaction $object, %params> |
51 | 59 |
|
52 | 60 |
Returns a rendered version (actually an instance of |
Auch abrufbar als: Unified diff
S:Presenter:Record: Alias Funktion "show" in verwendeten Objekten