applications/vanilla/models/class.categorymodel.php
public static function GivePoints($UserID, $Points, $Source = 'Other', $CategoryID = 0, $Timestamp = FALSE) {
      // Figure out whether or not the category tracks points seperately.
      if ($CategoryID) {
         $Category = self::Categories($CategoryID);
         if ($Category)
            $CategoryID = GetValue('PointsCategoryID', $Category);
         else
            $CategoryID = 0;
      }
      
      UserModel::GivePoints($UserID, $Points, array($Source, 'CategoryID' => $CategoryID), $Timestamp);
   }
public static function GivePoints($UserID, $Points, $Source = 'Other', $CategoryID = 0, $Timestamp = FALSE) {
      // Figure out whether or not the category tracks points seperately.
      if ($CategoryID) {
         $Category = self::Categories($CategoryID);
         if ($Category)
            $CategoryID = GetValue('PointsCategoryID', $Category);
         else
            $CategoryID = 0;
      }
      
      UserModel::GivePoints($UserID, $Points, array($Source, 'CategoryID' => $CategoryID), $Timestamp);
   }
public static function GivePoints ( $ UserID , $ Points , $ Source = 'Other' , $ CategoryID = 0 , $ Timestamp = FALSE ) { // Figure out whether or not the category tracks points seperately. if ( $ CategoryID ) { $ Category = self :: Categories ( $ CategoryID ) ; if ( $ Category ) $ CategoryID = GetValue ( 'PointsCategoryID' , $ Category ) ; else $ CategoryID = 0 ; } UserModel :: GivePoints ( $ UserID , $ Points , array ( $ Source , 'CategoryID' => $ CategoryID ) , $ Timestamp ) ; }
Give a user points specific to this category.

@param int $UserID The user to give the points to.
@param int $Points The number of points to give.
@param string $Source The source of the points.
@param int $CategoryID The category to give the points for.
@param int $Timestamp The time the points were given.
Give a user points specific to this category .