X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FHelper%2FGetModels%2FBase.pm;h=ee69c8316bddce3142bab6d428b4175b80bd3ae3;hb=5534d9cb025cc4036f6fcce28a24c5e5b164641e;hp=6a9a9cda779d01029e64f209cc19ad2d212beb92;hpb=d5cb059bfa6c56fb74bf2a89c5625cb0b442e48e;p=kivitendo-erp.git diff --git a/SL/Controller/Helper/GetModels/Base.pm b/SL/Controller/Helper/GetModels/Base.pm index 6a9a9cda7..ee69c8316 100644 --- a/SL/Controller/Helper/GetModels/Base.pm +++ b/SL/Controller/Helper/GetModels/Base.pm @@ -43,3 +43,56 @@ sub is_enabled { } 1; + +__END__ + +=encoding utf-8 + +=head1 NAME + +SL::Controller::Helper::GetModels::Base - base class for GetModels plugins + +=head1 SYNOPSIS + + package SL::Controller::Helper::Getmodels::...; + use parent 'SL::Controller::Helper::Getmodels::Base' + + sub read_params { ... } + + sub finalize { ... } + +=head1 DESCRIPTION + +This is a base class for plugins of the GetModels framework for controllers. It +provides some common ground. + +=head1 FUNCTIONS + +=over 4 + +=item read_params + +This will be called when GetModels transitions to C phase. +Make sure that you don't need anything from source after that. + +=item finalize + +This will be called when GetModels transitions to C phase. Make sure +that no internal state or configuration gets changed after this. + +=item merge_args + +Common function to merge the output of various callbacks. + +=back + +=head1 BUGS AND CAVEATS + +None yet :) + +=head1 AUTHOR + +Sven Schöling Es.schoeling@linet-services.deE + +=cut +