Property | Type | Description | |
---|---|---|---|
$action | The singular action word (like, unlike, view, download, etc) | ||
$action_query | The action query populated by the default query | ||
$actions | The plural of the action (likes, unlikes, etc) | ||
$increase | Whether the action increases the count or decreases the count | ||
$interactor | |||
$media | |||
$model | The db model | ||
$owner | |||
$privacy |
Method | Description | |
---|---|---|
__construct ( array $args = [] ) | Initialise the user interaction | |
before_render ( ) | ||
button_filter ( $buttons ) | ||
init ( ) | ||
interactor_privacy ( ) | ||
is_clickable ( ) | ||
is_visible ( ) | ||
preprocess ( ) | Checks if an id is set Creates pre and post process hooks for the action Calls the process | |
process ( ) : integer | Updates count of the action | |
register ( array $actions ) : array | ||
render ( ) | ||
set_interactor ( ) | ||
set_label ( ) | Checks if there's a label, if not creates from the action name | |
set_media ( ) | ||
set_plural ( ) |
public __construct ( array $args = [] ) | ||
$args | array |
public preprocess ( ) |
public set_label ( ) |
public $action |
public $action_query |
public $increase |