Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5a55ac86

Von Sven Schöling vor etwa 7 Jahren hinzugefügt

  • ID 5a55ac869e35f61a8ae018d0e54b4fe6dc89c6a7
  • Vorgänger 0e5e3501
  • Nachfolger 6ef53d3f

Presenter: Neue Struktur im Layout umgesetzt

Unterschiede anzeigen:

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