App::TimeClock::Daily::PrinterInterface
Interface class. All printer objects given to App::TimeClock::Daily::Report constructor must be derived from PrinterInterface.
package App::TimeClock::Daily::MyPrinter; our @ISA = qw(App::TimeClock::Daily::PrinterInterface); ... sub print_header { ... } sub print_day { ... } sub print_footer { ... }
Creates a new object.
Private print method that uses handle specified by _set_ouput_fh or stdout by default. All implementing classes should use _print to print instead of print. This makes testing much easier.
Get the file handle used by _print.
Set the file handle used by _print.
Called once at the start of a report.
Called for each day in the report.
Called once at the end of a report.
Søren Lund, <soren at lund.org>
<soren at lund.org>
timeclock.pl
Copyright (C) 2012-2015 Søren Lund
This file is part of App::TimeClock.
App::TimeClock is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
App::TimeClock is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with App::TimeClock. If not, see <http://www.gnu.org/licenses/>.
To install App::TimeClock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::TimeClock
CPAN shell
perl -MCPAN -e shell install App::TimeClock
For more information on module installation, please visit the detailed CPAN module installation guide.