EasyBlogReactions
extends EasyBlog
in package
Table of Contents
Properties
- $app : mixed
- $config : mixed
- $db : mixed
- $doc : mixed
- $input : mixed
- $jconfig : mixed
- $lang : mixed
- $my : mixed
- $string : mixed
- $model : mixed
- $post : mixed
Methods
- __construct() : mixed
- canReact() : mixed
- Checks admin setting to allow user react on post
- enabled() : mixed
- Retrieves the user reactions to this post
- getError() : mixed
- getErrors() : mixed
- getReactions() : mixed
- Retrieve the reaction types for a post
- getTokenKey() : mixed
- Generates the token key that is stored on session
- getUserReaction() : mixed
- Retrieve the default reaction for a post
- hasError() : mixed
- hasErrors() : mixed
- html() : mixed
- Retrieves the user reactions to this post
- isMobile() : mixed
- Determines if this is a mobile layout
- isTablet() : mixed
- Determines if this is a tablet layout
- loadLanguage() : mixed
- Helper method to load language
- setError() : mixed
- update() : mixed
- updates current reaction counter and reset previously selected reactions if any
Properties
$app
public
mixed
$app
= \null
$config
public
mixed
$config
= \null
$db
public
mixed
$db
= \null
$doc
public
mixed
$doc
= \null
$input
public
mixed
$input
= \null
$jconfig
public
mixed
$jconfig
= \null
$lang
public
mixed
$lang
= \null
$my
public
mixed
$my
= \null
$string
public
mixed
$string
= \null
$model
private
mixed
$model
= \null
$post
private
mixed
$post
= \null
Methods
__construct()
public
__construct(EasyBlogPost $post) : mixed
Parameters
- $post : EasyBlogPost
canReact()
Checks admin setting to allow user react on post
public
canReact() : mixed
Tags
enabled()
Retrieves the user reactions to this post
public
enabled() : mixed
Tags
getError()
public
getError() : mixed
getErrors()
public
getErrors() : mixed
getReactions()
Retrieve the reaction types for a post
public
getReactions() : mixed
Tags
getTokenKey()
Generates the token key that is stored on session
public
getTokenKey() : mixed
Tags
getUserReaction()
Retrieve the default reaction for a post
public
getUserReaction() : mixed
Tags
hasError()
public
hasError() : mixed
hasErrors()
public
hasErrors() : mixed
html()
Retrieves the user reactions to this post
public
html() : mixed
Tags
isMobile()
Determines if this is a mobile layout
public
isMobile() : mixed
Tags
isTablet()
Determines if this is a tablet layout
public
isTablet() : mixed
Tags
loadLanguage()
Helper method to load language
public
loadLanguage([mixed $admin = false ]) : mixed
Parameters
- $admin : mixed = false
Tags
setError()
public
setError(mixed $msg) : mixed
Parameters
- $msg : mixed
update()
updates current reaction counter and reset previously selected reactions if any
public
update(mixed $reactionId) : mixed
Parameters
- $reactionId : mixed