App::Toodledo::Task - class encapsulating a Toodledo task


App-Toodledo documentation  | view source Contained in the App-Toodledo distribution.

Index


NAME

Top

App::Toodledo::Task - class encapsulating a Toodledo task

SYNOPSIS

Top

  $task = App::Toodledo::Task->new;
  $task->title( 'Put the cat out' );
  $todo = App::Toodledo->new;
  $todo->login_from_rc;
  $todo->add_task( $task );

DESCRIPTION

Top

This class provides accessors for the properties of a Toodledo task. The following accessors are defined:

 id           
 parent       
 children     
 title        
 tag          
 folder       
 context      
 goal         
 added        
 modified     
 startdate    
 duedate      
 duetime      
 completed    
 repeat       
 rep_advanced 
 status       
 star         
 priority     
 length       
 timer        
 note         

Variant behaviors

The return value for the following accessors:

is not the Toodledo textual date but instead a Unix epoch time (integer seconds) like that returned by time(). Likewise, when supplying a value to these accessors, supply an epoch time. The object will convert the values coming and going to Toodledo.

CAVEAT

Top

This is a very basic implementation of Toodledo tasks. It only represents the contents of elements and does not capture the attributes of the few elements in Toodledo tasks that can have them. This is likely to have the most ramifications for programs working on repeating tasks.

AUTHOR

Top

Peter J. Scott, <cpan at psdt.com>

SEE ALSO

Top

Toodledo: http://www.toodledo.com/.

Toodledo API documentation: http://www.toodledo.com/info/api_doc.php.

COPYRIGHT & LICENSE

Top


App-Toodledo documentation  | view source Contained in the App-Toodledo distribution.