Liz::ProjectSet::Done - generic module for Done objects
use xxLINK; $xxlink = new xxLINK; $projectset = $xxlink->ProjectSet; $done = $projectset->Done; $done = $projectset->Done( $doneID );
$doneID = $done->update;
Provide object oriented access to the Done object of the Liz::ProjectSet module family. Usually not accessed directly, but rather through a client module.
Create a new Done object from a client module object.
1 Liz::SQL object 2 ID to create Done object with 3 todoID/itemID/Description to create Done 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; $done = $projectset->Done; $done = $projectset->Done( $doneID );
Update a Done object in the database.
1 ID with which the object was updated (undef = error)
$done->update;
The following methods allow you to change the fields associated with the Liz::ProjectSet::Done object.
Return the ClientID of the Liz::ProjectSet::Done object. Its value can be used to create a new Liz::ProjectSet::Client object.
1 value of ContactID
$clientID = $done->ClientID;
Return or set the ContactID (of the client's contact of the project when this work was done) of the Liz::ProjectSet::Done object. Its value can be used to create a new Liz::ProjectSet::Contact object.
1 new value of ContactID (default: no change)
1 current/old value of ContactID
$done->ContactID( $contactID ); $contactID = $done->ContactID;
Return the Created information of the Liz::ProjectSet::Done object.
1 current timestamp of the Created
$created = $done->Created;
Return or set the Description (of the work done) of the Liz::ProjectSet::Done object.
1 new contents of Description (default: no change)
1 current/old contents of Description
$done->Description( 'Implementatie van Liz::ProjectSet' ); $description = $done->Description;
Return or set the DoneOn information (the timestamp of the date when the work was performed) of the Liz::ProjectSet::Done object.
1 new value of DoneOn (timestamp) (default: no change)
1 current/old value of DoneOn
$done->DoneOn( $done->Int2Timestamp( $year,$month,$day ); $doneon = $done->Timestamp2Date( '',$done->DoneOn );
Return or set the EmployeeID information (employeeID of the person who has done the work) of the Liz::ProjectSet::Done object.
1 new value of EmployeeID (default: no change)
1 current/old value of EmployeeID
$done->EmployeeID( $employeeID ); $employeeID = $done->EmployeeID;
Return or set the InvoiceID information (the ID of the invoice on which this work was charged) of the Liz::ProjectSet::Done object.
1 new value of InvoiceID (default: no change)
1 current/old value of InvoiceID
$done->InvoiceID( $invoiceID ); $invoiceID = $done->InvoiceID;
Return or set the InvoiceTypeID information (the categoryID for the type of invoicing to be performed) of the Liz::ProjectSet::Done object. Use method ParentInvoiceTypeID for the categoryID of the parent category of all InvoiceTypes, which can be used to e.g. create a pulldown.
1 new value of InvoiceTypeID (default: no change)
1 current/old value of InvoiceTypeID
$done->InvoiceTypeID( $invoicetypeID ); $invoicetypeID = $done->InvoiceTypeID;
Return or set the ItemID information (the ID of the Liz::Projectset::Item object to which this work applies) of the Liz::ProjectSet::Done object.
1 new value of ItemID (default: no change)
1 current/old value of ItemID
$done->ItemID( $itemID ); $itemID = $done->ItemID;
Return or set the LeaderID information (employeeID of the person leading the project) of the Liz::ProjectSet::Done object.
1 new value of LeaderID (default: no change)
1 current/old value of LeaderID
$done->LeaderID( $leaderID ); $leaderID = $done->LeaderID;
Return the OrderID (of the order for which this work was done) of the Liz::ProjectSet::Done object. Its value can be used to create a new Liz::ProjectSet::Order object.
1 value of OrderID
$orderID = $done->OrderID;
Return or set the OrderedByID information (contactID or employeeID of the person ordering to do the work) of the Liz::ProjectSet::Done object.
1 new value of OrderedByID (default: no change)
1 current/old value of OrderedByID
$done->OrderedByID( $orderedbyID ); $orderedbyID = $done->OrderedByID;
Return the ParentInvoiceTypeID (the categoryID of the parent of all possible InvoiceTypes) which can be used to e.g. create a pulldown. Use method InvoiceTypeID to actually set the type of invoice for this object.
1 current value of ParentInvoiceTypeID
$parentinvoicetypeID = $done->ParentInvoiceTypeID;
Return the ParentTariffID (the categoryID of the parent of all possible Tariffs) which can be used to e.g. create a pulldown. Use method TariffID to actually set the type of tariff for this object.
1 current value of ParentTariffID
$parenttariffID = $done->ParentTariffID;
Return the ParentWorkTimeID (the categoryID of the parent of all possible WorkTimes) which can be used to e.g. create a pulldown. Use method WorkTimeID to actually set the type of worktime for this object.
1 current value of ParentWorkTimeID
$parentworktimeID = $done->ParentWorkTimeID;
Return the ParentWorkTypeID (the categoryID of the parent of all possible WorkTypes) which can be used to e.g. create a pulldown. Use method WorkTypeID to actually set the type of work for this object.
1 current value of ParentWorkTypeID
$parentworktypeID = $done->ParentWorkTypeID;
Return the ProjectID (of the project for which this work was done) of the Liz::ProjectSet::Done object. Its value can be used to create a new Liz::ProjectSet::Project object.
1 value of ProjectID
$projectID = $done->ProjectID;
Return or set the Status information of the Liz::ProjectSet::Done object.
1 new value of the Status (default: no change)
1 current/old value of the Status
$done->Status( 1 ); $status = $done->Status;
Return or set the TariffID information (the categoryID for the tariff to be invoiced) of the Liz::ProjectSet::Done object. Use method ParentTariffID for the categoryID of the parent category of all Tariffes, which can be used to e.g. create a pulldown.
1 new value of TariffID (default: no change)
1 current/old value of TariffID
$done->TariffID( $tariffID ); $tariffID = $done->TariffID;
Return or set the TimeSpent info (number of minutes of work spent on this record) of the Liz::ProjectSet::Done object.
1 new value of TimeSpent (default: no change)
1 current/old value of TimeSpent
$done->TimeSpent( 30 ); $timespent = $done->TimeSpent;
Return or set the TravelDistance info (number of kilometers travelled on this record) of the Liz::ProjectSet::Done object.
1 new value of TravelDistance (default: no change)
1 current/old value of TravelDistance
$done->TravelDistance( 2*50 ); $traveltime = $done->TravelDistance;
Return or set the TravelTime info (number of minutes of work spent travelling on this record) of the Liz::ProjectSet::Done object.
1 new value of TravelTime (default: no change)
1 current/old value of TravelTime
$done->TravelTime( 30 ); $traveltime = $done->TravelTime;
Return the Updated information of the Liz::ProjectSet::Done object.
1 current timestamp of the Updated
$updated = $done->Updated;
Specify or return the URL associated with the Done object.
1 new value of the URL (default: no change)
1 previous/current version of the URL
$done->URL( $url ); $url = $done->URL;
Specify or return the URLID associated with the Liz::ProjectSet::Done object.
1 new value of the URLID (default: no change)
1 previous/current version of the URLID
$done->URLID( $urlID ); $urlID = $done->URLID;
Return or set the WorkTimeID information (the categoryID for the sort of time of work performed) of the Liz::ProjectSet::Done object. Use method ParentWorkTimeID for the categoryID of the parent category of all WorkTimes, which can be used to e.g. create a pulldown.
1 new value of WorkTimeID (default: no change)
1 current/old value of WorkTimeID
$done->WorkTimeID( $worktimeID ); $worktimeID = $done->WorkTimeID;
Return or set the WorkTypeID information (the categoryID for the type of work performed) of the Liz::ProjectSet::Done object. Use method ParentWorkTypeID for the categoryID of the parent category of all WorkTypes, which can be used to e.g. create a pulldown.
1 new value of WorkTypeID (default: no change)
1 current/old value of WorkTypeID
$done->WorkTypeID( $worktypeID ); $worktypeID = $done->WorkTypeID;
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.
Fixed case-problem with key in OrderID.
Now no longer adds Exporter to ISA: it wasn't necessary.
Support for extra fields added.
First version of this true Perl module.