\Points

Points class

Summary

Methods
Properties
Constants
get_points_by_user()
get_user_total_points()
get_users_total_points()
get_users()
set_points()
get_points()
get_point()
remove_points()
update_points()
get_label()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_points_by_user()

get_points_by_user(  $user_id,   $limit = null,   $order_by = null,   $order = null,   $output = OBJECT,   $offset) 

Parameters

$user_id
$limit
$order_by
$order
$output
$offset

get_user_total_points()

get_user_total_points(  $user_id,   $status = null) 

Parameters

$user_id
$status

get_users_total_points()

get_users_total_points(  $limit = null,   $order_by = null,   $order = null,   $status = null) 

Parameters

$limit
$order_by
$order
$status

get_users()

get_users() : array

Get users id who have some points

Returns

array

set_points()

set_points(  $points,   $user_id,   $info = array()) 

Parameters

$points
$user_id
$info

get_points()

get_points(integer  $limit = null, string  $order_by = null, string  $order = null,   $output = OBJECT) : \Ambigous

Get a points list.

Parameters

integer $limit
string $order_by
string $order
$output

Returns

\Ambigous —

<mixed, NULL, multitype:, multitype:multitype: , multitype:Ambigous <multitype:, NULL> >

get_point()

get_point(  $point_id = null) 

Parameters

$point_id

remove_points()

remove_points(  $point_id) 

Parameters

$point_id

update_points()

update_points(  $point_id,   $info = array()) 

Parameters

$point_id
$info

get_label()

get_label(  $points) 

Parameters

$points