You are here

function UserpointsTransaction::getParent in User Points 7.2

Returns the parent transaction if there is any.

Return value

UserpointsTransaction A userpoints transaction or NULL.

See also

UserpointsTransaction::setParent()

File

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

Class

UserpointsTransaction
A Userpoints transaction.

Code

function getParent() {
  if (!empty($this->parent_txn_id)) {
    return userpoints_transaction_load($this->parent_txn_id);
  }
}