Revision 7ff7dd01
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Controller/Helper/GetModels.pm | ||
---|---|---|
157 | 157 |
$self->register_handlers('callback' => $callback); |
158 | 158 |
} |
159 | 159 |
|
160 |
sub get_callback { |
|
160 |
sub get_callback_params {
|
|
161 | 161 |
my ($self, %override_params) = @_; |
162 | 162 |
|
163 | 163 |
my %default_params = $self->_run_handlers('callback', action => $self->controller->action_name); |
164 |
} |
|
165 |
|
|
166 |
sub get_callback { |
|
167 |
my ($self, %override_params) = @_; |
|
168 |
|
|
169 |
my %default_params = $self->get_callback_params(%override_params); |
|
164 | 170 |
|
165 | 171 |
return $self->controller->url_for(%default_params, %override_params); |
166 | 172 |
} |
Auch abrufbar als: Unified diff
GetModels: get_callback_params
liefert statt der fertigen URL die parameter für Controller::url_for