You are here

protected function UserpointsTransactionController::updateTotals in User Points 7.2

Update the total aggregations of the corresponding user.

1 call to UserpointsTransactionController::updateTotals()
UserpointsTransactionController::save in ./userpoints.transaction.inc
Overrides EntityAPIController::save().

File

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

Class

UserpointsTransactionController
Userpoints transaction controller.

Code

protected function updateTotals($tid, $uid, $points) {

  // Update this category.
  $this
    ->updateTotalsCategory($tid, $uid, $points);

  // Update the total over all categories.
  $this
    ->updateTotalsCategory('all', $uid, $points);
}