You are here

function UserpointsTransaction::getCategory in User Points 7.2

The category of this transaction.

Return value

The name of the category as a string. Name of th default category the term of this category has been deleted.

See also

UserpointsTransaction::setTid()

UserpointsTransaction::getTid()

2 calls to UserpointsTransaction::getCategory()
UserpointsTransaction::getMessage in ./userpoints.transaction.inc
A message that can be displayed to the current user.
UserpointsTransaction::getTableRow in ./userpoints.transaction.inc
Returns a single row for a transaction listing.

File

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

Class

UserpointsTransaction
A Userpoints transaction.

Code

function getCategory() {

  // Load categories.
  $categories = userpoints_get_categories();
  return isset($categories[$this
    ->getTid()]) ? $categories[$this
    ->getTid()] : $categories[userpoints_get_default_tid()];
}