NAME
App::HWD::Task - Tasks for HWD
SYNOPSIS
Used only by the hwd application.
Note that these functions are pretty fragile, and do almost no data checking.
FUNCTIONS
App::HWD::Task->parse()
Returns an App::HWD::Task object from an input line
App::HWD::Task->new( { args } )
Creates a new task from the args passed in. They should include at least level, name and id, even if id is undef
.
my $task = App::HWD::Task->new( {
level => $level,
name => $name,
id => $id,
estimate => $estimate,
} );
$task->level()
Returns the level of the task
$task->name()
Returns the name of the task
$task->id()
Returns the ID of the task, or the empty string if there isn't one.
$task->estimate()
Returns the estimate, or 0 if it's not set.
$task->date_added()
Returns the date the task was added, or empty string if it's not set.
$task->work()
Returns the array of App::HWD::Work applied to the task.
$task->set( $key => $value )
Sets the $key field to $value.
add_work( $work )
Adds a Work record to the task, for later accumulating
hours_worked()
Returns the number of hours worked, but counting up all the work records added in "add_work".
completed()
Returns whether the task has been completed.
summary
Returns a simple one line description of the Work.
AUTHOR
Andy Lester, <andy at petdance.com>
BUGS
Please report any bugs or feature requests to bug-app-hwd-task@rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-HWD. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2005 Andy Lester, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.