txId = $txId; $this->subTxId = $subTxId; $this->parentSubTxId = $parentSubTxId; $this->logger = new HMCLogger("Transaction:" . $this->toString()); } public function toString() { return $this->txId."-".$this->subTxId."-".$this->parentSubTxId; } public function createSubTransaction() { return new Transaction($this->txId, ++$GLOBALS["SUB_TXN_ID"], $this->subTxId); } public function getNextSubTransaction() { return new Transaction($this->txId, ++$GLOBALS["SUB_TXN_ID"], $this->parentSubTxId); } } ?>