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 ActionModel

Describe the available actions one can react with to other user content.

Events:

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

Defines the related database table name.

Defines the related database table name.

public dataset
# Get( )

Returns a list of all available actions

Returns a list of all available actions

Returns

dataset
public dataset
# GetByID( integer $ActionID )

Returns data for a specific action

Returns data for a specific action

Parameters

$ActionID
integer
$ActionID

Returns

dataset
public DataSet
# GetNewestAction( )

Gets the last inserted Action

Gets the last inserted Action

Returns

DataSet
public boolean
# Exists( integer $ActionID )

Determine if a specified action exists

Determine if a specified action exists

Parameters

$ActionID
integer
$ActionID

Returns

boolean
public boolean
# Delete( integer $ActionID, integer $ReplacementID = NULL )

Remove an action from the db

Remove an action from the db

Parameters

$ActionID
integer
$ActionID
$ReplacementID
integer
$ReplacementID what action ID existing reactions should report to. Null will delete the associated reactions.

Returns

boolean
Whether or not the deletion was successful
public boolean
# SaveSort( array $SortArray )

Updates the sort field for each action in the sort array

Updates the sort field for each action in the sort array

Parameters

$SortArray
array
$SortArray

Returns

boolean
Yaga API documentation generated by ApiGen 2.8.0