Created
August 17, 2012 22:16
-
-
Save thecodedrift/3383215 to your computer and use it in GitHub Desktop.
Reversable Transaction Entities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?PHP | |
| /** | |
| * Required Include Files | |
| */ | |
| require_once(DIR_CLASSES . 'container/datatypecontainer.php'); | |
| class TransactionEntry | |
| { | |
| function TransactionEntry() | |
| { | |
| $this->Container = new DataTypeContainer(); | |
| } | |
| function importData($data) {} | |
| function exportData($preserveId = true) {} | |
| function setEntryId($v) {} | |
| function getEntryId() {} | |
| function setTransactionId($v) {} | |
| function getTransactionId() {} | |
| function setEntityId($v) {} | |
| function getEntityId() {} | |
| function setAccountType($v) {} | |
| function getAccountType() {} | |
| function setObjectId($v) {} | |
| function getObjectId() {} | |
| function setAttribute($v) {} | |
| function getAttribute() {} | |
| function setAsAdd() {} | |
| function setAsSubtract() {} | |
| function setPolarity($v) {} | |
| function getPolarity() {} | |
| function setTimestamp($v) {} | |
| function getTimestamp() {} | |
| function setStatus($v) {} | |
| function getStatus() {} | |
| function cloneInverse() | |
| { | |
| $obj = new TransactionEntry(); | |
| $data = $this->exportData(false); | |
| $data["polarity"] = $data["polarity"] * -1; | |
| $obj->importData($data); | |
| return $obj; | |
| } | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment