Overview

Packages

  • None
  • Yaga

Classes

  • ActedModel
  • ActionController
  • ActionModel
  • AwardCombo
  • BadgeAwardModel
  • BadgeController
  • BadgeModel
  • BadgesController
  • BadgesModule
  • BestController
  • BestFilterModule
  • CakeDayPost
  • CommentCount
  • CommentMarathon
  • DiscussionBodyLength
  • DiscussionCategory
  • DiscussionCount
  • DiscussionPageCount
  • HasMentioned
  • HolidayVisit
  • LeaderBoardModule
  • LengthOfService
  • ManualAward
  • NecroPost
  • NewbieComment
  • PhotoExists
  • PostCount
  • PostReactions
  • QnAAnserCount
  • RankController
  • RankModel
  • ReactController
  • ReactionCount
  • ReactionModel
  • ReflexComment
  • RulesController
  • SocialConnection
  • Yaga
  • YagaController
  • YagaHooks

Interfaces

  • YagaRule
  • Overview
  • Package
  • Class
  • Tree
  • Todo
  • Download

Class ReactionModel

Reactions are the actions a user takes against another user's content

Events: AfterReactionSave

Gdn_Model
Extended by ReactionModel
Package: Yaga
Since: 1.0
Located at models/class.reactionmodel.php
Methods summary
public
# __construct( )

Defines the related database table name.

Defines the related database table name.

public DataSet
# GetList( integer $ID, string $Type )

Returns all available actions along with the current count specified by the $ID and $Type of content.

Returns all available actions along with the current count specified by the $ID and $Type of content.

Parameters

$ID
integer
$ID
$Type
string
$Type

Returns

DataSet
public mixed
# GetRecord( integer $ID, string $Type )

Returns the reaction records associated with the specified user content.

Returns the reaction records associated with the specified user content.

Parameters

$ID
integer
$ID
$Type
string
$Type is the kind of ID. Valid: comment, discussion, activity

Returns

mixed
DataSet if it exists, NULL otherwise
public DataSet
# GetByUser( integer $ID, string $Type, integer $UserID )

Return a list of reactions a user has received

Return a list of reactions a user has received

Parameters

$ID
integer
$ID
$Type
string
$Type activity, comment, discussion
$UserID
integer
$UserID

Returns

DataSet
public DataSet
# GetUserCount( integer $UserID, integer $ActionID )

Return the count of reactions received by a user

Return the count of reactions received by a user

Parameters

$UserID
integer
$UserID
$ActionID
integer
$ActionID

Returns

DataSet
public DataSet
# GetUserTakenCount( integer $UserID, integer $ActionID )

Return the count of actions taken by a user

Return the count of actions taken by a user

Parameters

$UserID
integer
$UserID
$ActionID
integer
$ActionID

Returns

DataSet
public DataSet
# Set( integer $ID, string $Type, integer $AuthorID, integer $UserID, integer $ActionID )

Sets a users reaction against another user's content. A user can only react in one way to each unique piece of content. This function makes sure to enforce this rule

Sets a users reaction against another user's content. A user can only react in one way to each unique piece of content. This function makes sure to enforce this rule

Events: AfterReactionSave

Parameters

$ID
integer
$ID
$Type
string
$Type activity, comment, discussion
$AuthorID
integer
$AuthorID
$UserID
integer
$UserID
$ActionID
integer
$ActionID

Returns

DataSet
Yaga API documentation generated by ApiGen 2.8.0