\VoteControllerExtension
Synopsis
class VoteControllerExtension
extends DataExtension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public string vote()
- protected string|null voteByCurrentUser()
- private string|null voteBy()
- public string|null VoteStatus()
- public string|null VoteStatusByCurrentUser()
Hierarchy
Extends
- DataExtension
Members
private
- $allowed_actions — array
Methods
private
- voteBy() — Creates a Vote object for the currently logged in member, and sets the status to the provided value
protected
- voteByCurrentUser() — Sends a vote as the current user
public
- VoteStatus() — Gets the status of the vote - like|dislike
- VoteStatusByCurrentUser() — Gets the status of the vote based on the current user
- vote() — Returns a json encoded string containing the number of likes and dislikes for the specified vote object.