All pastes #451990 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-21 23:38 UTC
rendered paste body
<?
/*
 *
 * Skreet's Personal Finance Manager 2.0
 *
 * Transaction Class
 *
 */

class Transaction {

	/* Transaction() */
	/*  If $transaction_id is null, create a new empty transaction */
	function Transaction( $transaction_id = null )
	{
		if( $transaction_id == null )
		{
			/* generate a new transaction, with no data */
		} else {
			/* load the transaction from the database, or return an error code */
		}
	}

	/* return the data array */
	function getData()
	{
	}

	/* set the data array */
	function setData()
	{
	}

	/* return error/success code of last action */
	function lastError()
	{
	}

}
?>