NAME

Liz::FlavioSet::Transaction - module for Transaction objects of the FlavioSet


SYNOPSIS

 use Liz::FlavioSet;
 $flavioset = new Liz::FlavioSet;

 $transaction = $flavioset->Transaction;
 $transaction = $flavioset->Transaction( $transactionID );

 $transaction->update;


EXAMPLES


DESCRIPTION

Provide object oriented access to transactions in a FlavioSet. Usually not accessed directly, but rather through the Liz::FlavioSet object and its Transaction method.


BASIC METHODS


new

Create a new Transaction object from a FlavioSet object.

Input Parameters

 1 Liz::FlavioSet object
 2 ID to created Transaction object with
   (default: none = new transaction)
Output Parameters

 1 instantiated object
Note

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

Example

 $flavioset = new Liz::FlavioSet;
 $transaction = $flavioset->Transaction;
 $transaction = $flavioset->Transaction( $transactionID );


update

Update a Transaction object in the Liz::FlavioSet database.

Output Parameters

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

 $transactionID = $transaction->update;


delete

Delete a Liz::FlavioSet::Transaction object from the database.

Output Parameters

 1 flag: whether action was successful
Example

 $transaction->delete;


CONTENT METHODS

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


Amount

Return or set the Amount of the Liz::FlavioSet::Transaction object.

Input Parameters

 1 new amount
   (default: no change)
Output Parameters

 1 current/old amount
Example

 $transaction->Amount( $amount );
 $amount = $transaction->amount;


Created

Return the Created timestamp of the Liz::FlavioSet::Transaction object.

Output Parameters

 1 current timestamp value of the Created date
Example

 $created = $transaction->Created;


CreditorID

Return or set the CreditorID of the Liz::FlavioSet::Transaction object.

Input Parameters

 1 new creditorID
   (default: no change)
Output Parameters

 1 current/old creditorID
Example

 $transaction->CreditorID( $creditorID );
 $creditorID = $transaction->CreditorID;


DebtorID

Return or set the DebtorID of the Liz::FlavioSet::Transaction object.

Input Parameters

 1 new debtorID
   (default: no change)
Output Parameters

 1 current/old debtorID
Example

 $transaction->DebtorID( $debtorID );
 $debtorID = $transaction->DebtorID;


Description

Return or set the Description of the Liz::FlavioSet::Transaction object.

Input Parameters

 1 new description
   (default: no change)
Output Parameters

 1 current/old description
Example

 $transaction->Description( $description );
 $description = $transaction->Description;


ID

Return the ID of the Liz::FlavioSet::Transaction object.

Output Parameters

 1 current ID of the object
Example

 $ID = $transaction->ID;


IP

Return the IP-number from where the Liz::FlavioSet::Transaction object was created or last changed.

Output Parameters

 1 IP-number from which created or last changed
Example

 $IP = $transaction->IP;


Options

Return or set the Options information of the Liz::FlavioSet::Transaction object.

Input Parameters

 1 new name value of the Options
   (default: no change)
Output Parameters

 1 current/old name value of the Options
Example

 $transaction->Options( $options );
 $options = $transaction->Options;


Status

Return or set the Status information of the Liz::FlavioSet::Transaction object.

Input Parameters

 1 new value of the Status
   (default: no change)
Output Parameters

 1 current/old value of the Status
Example

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


Updated

Return the Updated timestamp of the Liz::FlavioSet::Transaction object.

Output Parameters

 1 current timestamp value of the Updated date
Example

 $updated = $transaction->Updated;


AUTHOR

Elizabeth Mattijsen ( lizperl@INC.nl )


COPYRIGHT

(C) 2000 International Network Consultants


HISTORY

Version 0.10, 18 April 2000

First version of this true Perl module.