From: Sven Schöling Date: Fri, 28 Feb 2014 10:00:32 +0000 (+0100) Subject: GetModels: count Methode X-Git-Tag: release-3.2.0beta~486 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b300864de9a326b31df725cf555ed65e3455f954;p=kivitendo-erp.git GetModels: count Methode --- diff --git a/SL/Controller/Helper/GetModels.pm b/SL/Controller/Helper/GetModels.pm index 481f1ee29..6d852288c 100644 --- a/SL/Controller/Helper/GetModels.pm +++ b/SL/Controller/Helper/GetModels.pm @@ -27,6 +27,13 @@ sub get { return $self->manager->get_all(%params); } +sub count { + my ($self) = @_; + my %params = $self->finalize; + + return $self->manager->get_all_count(%params); +} + sub disable_plugin { my ($self, $plugin) = @_; die 'cannot change internal state after finalize was called' if $self->finalized;