Revision 5a55ac86
Von Sven Schöling vor etwa 7 Jahren hinzugefügt
SL/Layout/ActionBar/Action.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
use parent qw(Rose::Object); |
5 | 5 |
|
6 |
use SL::Presenter; |
|
6 |
use SL::Presenter::Tag qw(name_to_id);
|
|
7 | 7 |
|
8 | 8 |
use Rose::Object::MakeMethods::Generic ( |
9 | 9 |
'scalar --get_set_init' => [ qw(id params text) ], |
... | ... | |
35 | 35 |
|
36 | 36 |
# shortcut for presenter |
37 | 37 |
|
38 |
sub p { |
|
39 |
SL::Presenter->get |
|
40 |
} |
|
41 |
|
|
42 | 38 |
sub init_params { |
43 | 39 |
+{} |
44 | 40 |
} |
45 | 41 |
|
46 | 42 |
# unique id to tie div and javascript together |
47 | 43 |
sub init_id { |
48 |
$_[0]->params->{id} // |
|
49 |
$_[0]->p->name_to_id('action[]') |
|
44 |
$_[0]->params->{id} // name_to_id('action[]') |
|
50 | 45 |
} |
51 | 46 |
|
52 | 47 |
1; |
Auch abrufbar als: Unified diff
Presenter: Neue Struktur im Layout umgesetzt