class CUserPoints


Located at : UKNOWVA_ROOT/components/com_community/libraries/userpoints.php

Methods

getPointsImage(user $user)

return the path to karma image

assignPoint($action, $userId = null)

add points to user based on the action.

_getActionPoint($action, $aid)

Private method. DO NOT call this method directly.

Details

at line 20
getPointsImage(user $user)

return the path to karma image

Parameters

user $user CUser object

at line 28
assignPoint($action, $userId = null)

add points to user based on the action.

Parameters

$action
$userId

at line 94
_getActionPoint($action, $aid)

Private method. DO NOT call this method directly.

Return points for various actions. Return value should be configurable from the backend.

Parameters

$action
$aid