Revision 25b5d0eb
Von Tamino Steinert vor 10 Monaten hinzugefügt
SL/Controller/RecordBase.pm | ||
---|---|---|
144 | 144 |
|
145 | 145 |
=head1 SYNOPSIS |
146 | 146 |
|
147 |
In a record controller: |
|
148 |
|
|
149 |
# RecordBase as parent class |
|
150 |
use parent qw(SL::Controller::RecordBase); |
|
151 |
|
|
152 |
# overwrite function 'foo_fun' of parent RecordBase |
|
153 |
sub foo_func { |
|
154 |
my ($self) = @_; |
|
155 |
|
|
156 |
# do stuff ... |
|
157 |
|
|
158 |
my $foo = $self->SUPER::foo_func() |
|
159 |
|
|
160 |
# do more stuff ... |
|
161 |
|
|
162 |
return $foo; |
|
163 |
} |
|
164 |
|
|
165 |
=head1 DESCRIPTION |
|
166 |
|
|
147 | 167 |
This is a base implementation of the functionality of a controller for handling |
148 | 168 |
records with items. |
149 | 169 |
|
Auch abrufbar als: Unified diff
S:C:RecordBase: Dokumentation: Synopsis