You are here

function UserpointsTransaction::setParent in User Points 7.2

Define a parent transaction for this.

For example, when expiring another transaction, this allows to add a reference to the expired transaction.

Parameters

$txn_id: The transaction id of the referenced transaction.

Return value

UserpointsTransaction

File

./userpoints.transaction.inc, line 401
Contains the UserpointsTransaction and related classes.

Class

UserpointsTransaction
A Userpoints transaction.

Code

function setParent($txn_id) {
  $this
    ->checkChange();
  $this->parent_txn_id = $txn_id;
  return $this;
}