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);
}
$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) = @_;