X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0f4915834072e2f689ad80709b0801f46d786de9..fa7a37a2e2d294b1dfe6ef5b89e5acb0f8c4eb3b:/SL/Controller/Helper/GetModels.pm diff --git a/SL/Controller/Helper/GetModels.pm b/SL/Controller/Helper/GetModels.pm index 054bd0b35..0dad791ec 100644 --- a/SL/Controller/Helper/GetModels.pm +++ b/SL/Controller/Helper/GetModels.pm @@ -23,7 +23,6 @@ use constant PRIV => '__getmodelshelperpriv'; sub get { my ($self) = @_; my %params = $self->finalize; - %params = $self->_run_handlers('get_models', %params); return $self->manager->get_all(%params); } @@ -32,6 +31,7 @@ sub disable_plugin { my ($self, $plugin) = @_; die 'cannot change internal state after finalize was called' if $self->finalized; die 'unsupported plugin' unless $self->can($plugin) && $self->$plugin && $self->$plugin->isa('SL::Controller::Helper::GetModels::Base'); + $self->$plugin->disabled(1); } @@ -63,6 +63,18 @@ sub get_paginate_args { $self->paginated->get_current_paginate_params(%params); } +sub get_sort_spec { + my ($self) = @_; + + $self->sorted->specs; +} + +sub get_current_sort_params { + my ($self) = @_; + + $self->sorted->read_params; +} + sub init { my ($self, %params) = @_; @@ -160,7 +172,6 @@ sub _run_handlers { sub init_handlers { { callback => [], - get_models => [], } }