Liz::ProjectSet::Todo - generic module for Todo objects
use xxLINK; $xxlink = new xxLINK; $projectset = $xxlink->ProjectSet; $todo = $projectset->Todo; $todo = $projectset->Todo( $todoID );
$todoID = $todo->update;
Provide object oriented access to the Todo object of the Liz::ProjectSet module family. Usually not accessed directly, but rather through a client module.
Create a new Todo object from a client module object.
1 Liz::SQL object 2 ID/Description to create Todo object with 3 itemID to create Todo Object with
1 instantiated object
It is not intended to call this method directly, but rather indirectly through a client module.
$xxlink = new xxLINK; $projectset = $xxlink->ProjectSet; $todo = $projectset->Todo; $todo = $projectset->Todo( $todoID );
Update a Todo object in the database.
1 ID with which the object was updated (undef = error)
$todo->update;
The following methods allow you to change the fields associated with the Liz::ProjectSet::Todo object.
Return the ClientID (of the client for which this work was todo) of the Liz::ProjectSet::Todo object. Its value can be used to create a new Liz::ProjectSet::Client object.
1 current value of clientID
$clientID = $todo->ClientID;
Return the ContactID (of the client for which this work was todo) of the Liz::ProjectSet::Todo object. Its value can be used to create a new Liz::ProjectSet::Contact object.
1 current value of contactID
$contactID = $todo->ContactID;
Return the Created information of the Liz::ProjectSet::Todo object.
1 current timestamp of the Created
$created = $todo->Created;
Return or set the Deadline information (the timestamp of the date when the work should be finished) of the Liz::ProjectSet::Todo object.
1 new value of Deadline (timestamp) (default: no change)
1 current/old value of Deadline
$todo->Deadline( $todo->Int2Timestamp( $year,$month,$day ); $todoon = $todo->Timestamp2Date( '',$todo->Deadline );
Return or set the Description (of the work todo) of the Liz::ProjectSet::Todo object.
1 new contents of Description (default: no change)
1 current/old contents of Description
$todo->Description( 'Implementatie van Liz::ProjectSet' ); $description = $todo->Description;
Return or set the DoneID (of the Done record for which this work was todo) of the Liz::ProjectSet::Todo object. Its value can be used to create a new Liz::ProjectSet::Done object.
1 new value of DoneID (default: no change)
1 current/old value of DoneID
$todo->DoneID( $doneID ); $doneID = $todo->DoneID;
Return or set the EmployeeID information (employeeID of the person or group who has todo the work) of the Liz::ProjectSet::Todo object.
1 new value of EmployeeID (default: no change)
1 current/old value of EmployeeID
$todo->EmployeeID( $employeeID ); $employeeID = $todo->EmployeeID;
Return or set the ItemID information (the ID of the Liz::Projectset::Order:Item object to which this work applies) of the Liz::ProjectSet::Todo object.
1 new value of ItemID (default: no change)
1 current/old value of ItemID
$todo->ItemID( $itemID ); $itemID = $todo->ItemID;
Return the orderID information (the ID of the Liz::Projectset::Order object to which this work applies) of the Liz::ProjectSet::Todo object.
1 current value of OrderID
$orderID = $todo->OrderID;
Return the ProjectID (of the project for which this work was todo) of the Liz::ProjectSet::Todo object. Its value can be used to create a new Liz::ProjectSet::Project object.
1 current value of ProjectID
$projectID = $todo->ProjectID;
Return or set the Status information of the Liz::ProjectSet::Todo object.
1 new value of the Status (default: no change)
1 current/old value of the Status
$todo->Status( 1 ); $status = $todo->Status;
Return or set the TimeToSpend info (number of minutes of work expected to be spent on this record) of the Liz::ProjectSet::Todo object.
1 new value of TimeToSpend (default: no change)
1 current/old value of TimeToSpend
$todo->TimeToSpend( 30 ); $timetospend = $todo->TimeToSpend;
Return or set the TodoOn information (the timestamp of the date when the work should be done) of the Liz::ProjectSet::Todo object.
1 new value of TodoOn (timestamp) (default: no change)
1 current/old value of TodoOn
$todo->TodoOn( $todo->Int2Timestamp( $year,$month,$day ); $todoon = $todo->Timestamp2Date( '',$todo->TodoOn );
Return the Updated information of the Liz::ProjectSet::Todo object.
1 current timestamp of the Updated
$updated = $todo->Updated;
Elizabeth Mattijsen ( lizperl@INC.nl )
(C) 1998-1999 International Network Consultants
Now, update sets the alteredbyID-field to the current user ID. Now inherits the PROJECTSET from the object.
Added stuff for alteredbyID-field.
Now no longer adds Exporter to ISA: it wasn't necessary.
Fixed problem in new introduced on August 20th.
First version of this true Perl module.