NAME

Liz::MiniSum::Record - module for Record objects of the MiniSum


SYNOPSIS

 use Liz::MiniSum;
 $minisum = new Liz::MiniSum;

 $record = $minisum->Record;
 $record = $minisum->Record( $ID );

 $record->update;


EXAMPLES


DESCRIPTION

Provide object oriented access to records in a MiniSum. Usually not accessed directly, but rather through the Liz::MiniSum object and its Record method.


BASIC METHODS


new

Create a new Record object from a MiniSum object.

Input Parameters

 1 Liz::MiniSum object
 2 ID to created Record object with
   (default: none = new record)
Output Parameters

 1 instantiated object
Note

It is not intended to call this method directly, but rather indirectly through the Liz::MiniSum module.

Example

 $minisum = new Liz::MiniSum;
 $record = $minisum->Record;
 $record = $minisum->Record( $ID );


update

Update a Record object in the Liz::MiniSum database.

Output Parameters

 1 ID with which the object was updated (undef = error)
Example

 $ID = $record->update;


delete

Delete the Liz::MiniSum::Record object from the database.

Output Parameters

 1 flag: whether action was successful
Example

 $record->delete;


CONTENT METHODS

The following methods allow you to inspect and/or change certain fields of the Liz::MiniSum::Record object.


Created

Return the Created timestamp of the Liz::MiniSum::Record object.

Output Parameters

 1 current timestamp value of the Created date
Example

 $created = $record->Created;


Client

Return or set the Client of the Liz::MiniSum::Record object.

Input Parameters

 1 new Client
   (default: no change)
Output Parameters

 1 current/old Client
Example

 $record->Client( $client );
 $client = $record->Client;


Contact

Return or set the Contact of the Liz::MiniSum::Record object.

Input Parameters

 1 new Contact
   (default: no change)
Output Parameters

 1 current/old Contact
Example

 $record->Contact( $contact );
 $contact = $record->Contact;


Done

Return or set the Done of the Liz::MiniSum::Record object.

Input Parameters

 1 new Done
   (default: no change)
Output Parameters

 1 current/old Done
Example

 $record->Done( $done );
 $done = $record->Done;


DoneBy

Return or set the DoneBy of the Liz::MiniSum::Record object.

Input Parameters

 1 new DoneBy
   (default: no change)
Output Parameters

 1 current/old DoneBy
Example

 $record->DoneBy( $doneby );
 $doneby = $record->DoneBy;


DoneOn

Return or set the DoneOn timestamp of the Liz::MiniSum::Record object.

Input Parameters

 1 new timestamp of the DoneOn date
   (default: no change)
Output Parameters

 1 current/old timestamp value of the DoneOn date
Example

 $record->DoneOn( $doneon );
 $doneon = $record->DoneOn;


ID

Return the ID of the Liz::MiniSum::Record object.

Output Parameters

 1 current ID of the object
Example

 $ID = $record->ID;


Invoice

Return or set the Invoice of the Liz::MiniSum::Record object.

Input Parameters

 1 new Invoice
   (default: no change)
Output Parameters

 1 current/old Invoice
Example

 $record->Invoice( $invoice );
 $invoice = $record->Invoice;


Minutes

Return or set the Minutes of the Liz::MiniSum::Record object.

Input Parameters

 1 new Minutes
   (default: no change)
Output Parameters

 1 current/old Minutes
Example

 $record->Minutes( $minutes );
 $minutes = $record->Minutes;


Project

Return or set the Project of the Liz::MiniSum::Record object.

Input Parameters

 1 new Project
   (default: no change)
Output Parameters

 1 current/old Project
Example

 $record->Project( $project );
 $project = $record->Project;


Status

Return or set the Status of the Liz::MiniSum::Record object.

Input Parameters

 1 new Status
   (default: no change)
Output Parameters

 1 current/old Status
Example

 $record->Status( $status );
 $status = $record->Status;


SubProject

Return or set the SubProject of the Liz::MiniSum::Record object.

Input Parameters

 1 new SubProject
   (default: no change)
Output Parameters

 1 current/old SubProject
Example

 $record->SubProject( $subproject );
 $subproject = $record->SubProject;


Updated

Return the Updated timestamp of the Liz::MiniSum::Record object.

Output Parameters

 1 current timestamp value of the Updated date
Example

 $updated = $record->Updated;


AUTHOR

Elizabeth Mattijsen ( lizperl@INC.nl )


COPYRIGHT

(C) 1998-1999 International Network Consultants


HISTORY

Version 0.11, 7 November 1999

Fixed problem in method update that would not update the Status field.

Fixed problem in method new that would not load the fields SubProject and Invoice.

Fixed problem in method update which would cause method new to skip the invoice field on subsequent fetches.

Version 0.10, 18 October 1999

First version of this true Perl module.