Stud.IP  5.4
ForumLike Class Reference

Static Public Member Functions

static like ($topic_id)
 
static dislike ($topic_id)
 
static getLikes ($topic_id)
 
static receivedForUser ($user_id)
 

Member Function Documentation

◆ dislike()

static dislike (   $topic_id)
static

Revoke the liking of the posting denoted by the passed topic_id for the currently logged in user

Parameters
string$topic_id

◆ getLikes()

static getLikes (   $topic_id)
static

Get the user_id for all likers of the topic denoted by the passed id

Parameters
string$topic_id
Returns
array an array of user_id's

◆ like()

static like (   $topic_id)
static

Set the posting denoted by the passed topic_id as liked for the currently logged in user

Parameters
string$topic_id

◆ receivedForUser()

static receivedForUser (   $user_id)
static

count the number of likes the user has received - system-wide

type $entries

Parameters
string$user_idthe user's id to count the received likes for
Returns
int the number of likes received

The documentation for this class was generated from the following file: